Bug 213469
Summary: | r8169: lost support for some type(s) of RTL8168 cards | ||
---|---|---|---|
Product: | Drivers | Reporter: | petr.bahula |
Component: | Network | Assignee: | drivers_network (drivers_network) |
Status: | NEW --- | ||
Severity: | normal | CC: | hkallweit1, wes.turner |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 5.10.27 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
Hotfix for this problem.
attachment-23118-0.html |
Description
petr.bahula
2021-06-16 16:10:00 UTC
Hi, we have two GIGABITE MB with this onboard chip. The chip is detected differ on each MB: [ 1.702543] r8169 0000:03:00.0: no dedicated PHY driver found for PHY ID 0xc2077002, maybe realtek.ko needs to be added to initramfs? [ 1.702544] r8169 0000:03:00.0: no dedicated PHY driver found for PHY ID 0xc1071002, maybe realtek.ko needs to be added to initramfs? In my case following (not fully correct, but working) patch for kernel 5.10.27 helped: --- a/drivers/net/phy/realtek.c 2020-12-13 23:41:30.000000000 +0100 +++ b/drivers/net/phy/realtek.c 2021-06-17 11:51:00.854994117 +0200 @@ -674,6 +674,14 @@ .config_intr = genphy_no_config_intr, .suspend = genphy_suspend, .resume = genphy_resume, + }, { + .phy_id = 0xc0070002, + .phy_id_mask = 0xf0ff0fff, + .name = "Generic RTL PHY", + .get_features = genphy_read_abilities, + .suspend = genphy_suspend, + .resume = genphy_resume, + .set_loopback = genphy_loopback, }, }; Created attachment 297429 [details]
Hotfix for this problem.
Hmm, preview not work correctly. Patch attached.
What would be the best way to test this locally to add "Tested-by: " if there are no known collisions with that (apparently rogue Gigabyte) phy id? https://kernel.org/doc/html/latest/process/submitting-patches.html #respond-to-review-comments https://kernel.org/doc/html/latest/process/submitting-patches.html#reviewer-s-statement-of-oversight https://fedoraproject.org/wiki/Building_a_custom_kernel#Building_Only_Kernel_Modules_.28Out_Of_Tree_Modules.29 OT, somewhat-distro-specific notes re: custom kernel packages in [*Fedora COPR*] and thereby Grub boot menu entries for testers https://github.com/bengtfredh/pinebook-pro-fedora-installer/issues/5#issuecomment-710067197 (In reply to petr.bahula from comment #1) > Hi, > we have two GIGABITE MB with this onboard chip. > The chip is detected differ on each MB: > > [ 1.702543] r8169 0000:03:00.0: no dedicated PHY driver found for PHY > ID 0xc2077002, maybe realtek.ko needs to be added to initramfs? > [ 1.702544] r8169 0000:03:00.0: no dedicated PHY driver found for PHY > ID 0xc1071002, maybe realtek.ko needs to be added to initramfs? > > In my case following (not fully correct, but working) patch for kernel > 5.10.27 helped: > > --- a/drivers/net/phy/realtek.c 2020-12-13 23:41:30.000000000 +0100 > +++ b/drivers/net/phy/realtek.c 2021-06-17 11:51:00.854994117 +0200 > @@ -674,6 +674,14 @@ > .config_intr = genphy_no_config_intr, > .suspend = genphy_suspend, > .resume = genphy_resume, > + }, { > + .phy_id = 0xc0070002, > + .phy_id_mask = 0xf0ff0fff, > + .name = "Generic RTL PHY", > + .get_features = genphy_read_abilities, > + .suspend = genphy_suspend, > + .resume = genphy_resume, > + .set_loopback = genphy_loopback, > }, > }; This is a hack that won't make it to mainline. Root cause of the issue a BIOS bug on a number of Gigabyte boards (AFAIK mainly from 2009/2010). There's a number of threads covering this issue. Partially upgrading BIOS helped, for some users also enabling network boot ROM in BIOS. Created attachment 301136 [details] attachment-23118-0.html Thanks. IIRC I tried a BIOS parameter grid, but should've recorded which parameter sets I tested; unfortunate that the onboard NIC regressed to failing. On Thu, Jun 9, 2022, 4:00 AM <bugzilla-daemon@kernel.org> wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=213469 > > Heiner Kallweit (hkallweit1@gmail.com) changed: > > What |Removed |Added > > ---------------------------------------------------------------------------- > CC| |hkallweit1@gmail.com > > --- Comment #5 from Heiner Kallweit (hkallweit1@gmail.com) --- > (In reply to petr.bahula from comment #1) > > Hi, > > we have two GIGABITE MB with this onboard chip. > > The chip is detected differ on each MB: > > > > [ 1.702543] r8169 0000:03:00.0: no dedicated PHY driver found for > PHY > > ID 0xc2077002, maybe realtek.ko needs to be added to initramfs? > > [ 1.702544] r8169 0000:03:00.0: no dedicated PHY driver found for > PHY > > ID 0xc1071002, maybe realtek.ko needs to be added to initramfs? > > > > In my case following (not fully correct, but working) patch for kernel > > 5.10.27 helped: > > > > --- a/drivers/net/phy/realtek.c 2020-12-13 23:41:30.000000000 +0100 > > +++ b/drivers/net/phy/realtek.c 2021-06-17 11:51:00.854994117 +0200 > > @@ -674,6 +674,14 @@ > > .config_intr = genphy_no_config_intr, > > .suspend = genphy_suspend, > > .resume = genphy_resume, > > + }, { > > + .phy_id = 0xc0070002, > > + .phy_id_mask = 0xf0ff0fff, > > + .name = "Generic RTL PHY", > > + .get_features = genphy_read_abilities, > > + .suspend = genphy_suspend, > > + .resume = genphy_resume, > > + .set_loopback = genphy_loopback, > > }, > > }; > > This is a hack that won't make it to mainline. Root cause of the issue a > BIOS > bug on a number of Gigabyte boards (AFAIK mainly from 2009/2010). > There's a number of threads covering this issue. Partially upgrading BIOS > helped, for some users also enabling network boot ROM in BIOS. > > -- > You may reply to this email to add a comment. > > You are receiving this mail because: > You are on the CC list for the bug. |