Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo-sources-2.6.17-r4 & r8169 patch
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
kwisatz_haderais
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2004
Posts: 143

PostPosted: Sat Aug 05, 2006 8:44 am    Post subject: gentoo-sources-2.6.17-r4 & r8169 patch Reply with quote

The patch from Francois Romieu fails at one hunk on the gentoo kernel 2.6.17-r4 where it works fine with 2.6.17-r3.
So far I didn't have to time to see why exactly it fails and if it also fails on the vanilla kernel. (I'll be off to my doctor's and look into it afterwards, [if my internet is not down again])

Thought this might be of interest to you, considering this mail from Daniel:
http://www.mail-archive.com/netdev@vger.kernel.org/msg16755.html

Quote:
manion net # patch <~/r8169_patches/0005-r8169-sync-with-vendor-s-driver.txt
patching file r8169.c
Hunk #3 FAILED at 179.


r8169.c.rej:
Code:
***************
*** 175,192 ****
        u8 mac_version;
        u32 RxConfigMask;       /* Clears the bits supported by this chip */
  } rtl_chip_info[] = {
-       _R("RTL8169",           RTL_GIGA_MAC_VER_B, 0xff7e1880),
-       _R("RTL8169s/8110s",    RTL_GIGA_MAC_VER_D, 0xff7e1880),
-       _R("RTL8169s/8110s",    RTL_GIGA_MAC_VER_E, 0xff7e1880),
-       _R("RTL8169s/8110s",    RTL_GIGA_MAC_VER_X, 0xff7e1880),
  };
  #undef _R

  static struct pci_device_id rtl8169_pci_tbl[] = {
-       { PCI_DEVICE(PCI_VENDOR_ID_REALTEK,     0x8169), },
-       { PCI_DEVICE(PCI_VENDOR_ID_DLINK,       0x4300), },
-       { PCI_DEVICE(0x16ec,                    0x0116), },
-       { PCI_VENDOR_ID_LINKSYS,                0x1032, PCI_ANY_ID, 0x0024, },
        {0,},
  };

--- 179,206 ----
        u8 mac_version;
        u32 RxConfigMask;       /* Clears the bits supported by this chip */
  } rtl_chip_info[] = {
+       _R("RTL8169",           RTL_GIGA_MAC_VER_01, 0xff7e1880),
+       _R("RTL8169s/8110s",    RTL_GIGA_MAC_VER_02, 0xff7e1880),
+       _R("RTL8169s/8110s",    RTL_GIGA_MAC_VER_03, 0xff7e1880),
+       _R("RTL8169sb/8110sb",  RTL_GIGA_MAC_VER_04, 0xff7e1880),
+       _R("RTL8169sc/8110sc",  RTL_GIGA_MAC_VER_05, 0xff7e1880),
+       _R("RTL8168b/8111b",    RTL_GIGA_MAC_VER_11, 0xff7e1880), // PCI-E
+       _R("RTL8168b/8111b",    RTL_GIGA_MAC_VER_12, 0xff7e1880), // PCI-E
+       _R("RTL8101e",          RTL_GIGA_MAC_VER_13, 0xff7e1880), // PCI-E 8139
+       _R("RTL8100e",          RTL_GIGA_MAC_VER_14, 0xff7e1880), // PCI-E 8139
+       _R("RTL8100e",          RTL_GIGA_MAC_VER_15, 0xff7e1880)  // PCI-E 8139
+       _R("RTL8100e",          RTL_GIGA_MAC_VER_14, 0xff7e1880), // PCI-E 8139
+       _R("RTL8100e",          RTL_GIGA_MAC_VER_15, 0xff7e1880)  // PCI-E 8139
  };
  #undef _R

  static struct pci_device_id rtl8169_pci_tbl[] = {
+       { PCI_DEVICE(PCI_VENDOR_ID_REALTEK,     0x8136), 0, 0, 2 },
+       { PCI_DEVICE(PCI_VENDOR_ID_REALTEK,     0x8167), 0, 0, 2 },
+       { PCI_DEVICE(PCI_VENDOR_ID_REALTEK,     0x8168), 0, 0, 2 },
+       { PCI_DEVICE(PCI_VENDOR_ID_REALTEK,     0x8169), 0, 0, 1 },
+       { PCI_DEVICE(PCI_VENDOR_ID_DLINK,       0x4300), 0, 0, 1 },
+       { PCI_DEVICE(0x16ec,                    0x0116), 0, 0, 1 },
+       { PCI_VENDOR_ID_LINKSYS,                0x1032,
+               PCI_ANY_ID, 0x0024, 0, 0, 1 },
        {0,},
  };
Back to top
View user's profile Send private message
kwisatz_haderais
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2004
Posts: 143

PostPosted: Sat Aug 05, 2006 10:44 am    Post subject: Reply with quote

Ok, its this line (187) in r8169.c of r4
Quote:


{ PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8129), },


Which is supplied by the 4025_r8169-new-id.patch in genpatches-2.6.17-5.extras.tar.bz2
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum