* [sky2, solved] transmit timeouts and firmware update... @ 2008-08-25 14:42 Daniel J Blueman 2008-08-25 19:03 ` Krzysztof Oledzki 0 siblings, 1 reply; 11+ messages in thread From: Daniel J Blueman @ 2008-08-25 14:42 UTC (permalink / raw) To: Linux Netdev, Linux Networking I (and a lot of other users) have been experiencing the frequent sky2 transmit timeout problem [1] (on 88E8053/Yukon2 EC gig hardware); this is a result of the embedded NIC controller locking up, and I've found that updating the firmware addresses this issue. I'm still seeing a previous and different issue [2] from time to time though (silicon bug?). Marvell shipping broken firmware is completely unpublicised or acknowledged, however updated firmware is available through your motherboard vendor, so all hope it not lost after all... My 8053/EC is using firmware 2.2 (previously 1.9) - you can check in DOS with 'yukondg.exe' from http://www.marvell.com/drivers/files/yukondg_v6.53.4.3.zip . Thanks, Daniel --- [1] NETDEV WATCHDOG: eth0 (sky2): transmit timed out sky2 eth0: tx timeout sky2 eth0: transmit ring 20 .. 491 report=20 done=20 ... --- [2] sky2 eth0: hung mac 1:119 fifo 7 (90:163) sky2 eth0: receiver hang detected sky2 eth0: disabling interface sky2 eth0: enabling interface -- Daniel J Blueman ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [sky2, solved] transmit timeouts and firmware update... 2008-08-25 14:42 [sky2, solved] transmit timeouts and firmware update Daniel J Blueman @ 2008-08-25 19:03 ` Krzysztof Oledzki 2008-08-25 19:22 ` Stephen Hemminger 2008-08-25 19:46 ` Daniel J Blueman 0 siblings, 2 replies; 11+ messages in thread From: Krzysztof Oledzki @ 2008-08-25 19:03 UTC (permalink / raw) To: Stephen Hemminger; +Cc: Linux Netdev, Linux Networking, Daniel J Blueman [-- Attachment #1: Type: TEXT/PLAIN, Size: 1155 bytes --] On Mon, 25 Aug 2008, Daniel J Blueman wrote: > I (and a lot of other users) have been experiencing the frequent sky2 > transmit timeout problem [1] (on 88E8053/Yukon2 EC gig hardware); this > is a result of the embedded NIC controller locking up, and I've found > that updating the firmware addresses this issue. I'm still seeing a > previous and different issue [2] from time to time though (silicon > bug?). Thanks for the info. I've been dealing with this problem for some long time, hopefully sky driver from the latest kernels is able to recover from such hangs, so it is not that critical problem now. > Marvell shipping broken firmware is completely unpublicised or > acknowledged, however updated firmware is available through your > motherboard vendor, so all hope it not lost after all... Unfortunately not through all vendors. :( Or maybe not *yet*? > My 8053/EC is using firmware 2.2 (previously 1.9) - you can check in > DOS with 'yukondg.exe' from > http://www.marvell.com/drivers/files/yukondg_v6.53.4.3.zip . Stephen, is it possible for sky2 driver to check and print the firmware version? Best regards, Krzysztof Olędzki ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [sky2, solved] transmit timeouts and firmware update... 2008-08-25 19:03 ` Krzysztof Oledzki @ 2008-08-25 19:22 ` Stephen Hemminger 2008-08-27 20:27 ` Stephen Hemminger 2008-08-25 19:46 ` Daniel J Blueman 1 sibling, 1 reply; 11+ messages in thread From: Stephen Hemminger @ 2008-08-25 19:22 UTC (permalink / raw) To: Krzysztof Oledzki; +Cc: Linux Netdev, Linux Networking, Daniel J Blueman On Mon, 25 Aug 2008 21:03:25 +0200 (CEST) Krzysztof Oledzki <ole@ans.pl> wrote: > > > On Mon, 25 Aug 2008, Daniel J Blueman wrote: > > > I (and a lot of other users) have been experiencing the frequent sky2 > > transmit timeout problem [1] (on 88E8053/Yukon2 EC gig hardware); this > > is a result of the embedded NIC controller locking up, and I've found > > that updating the firmware addresses this issue. I'm still seeing a > > previous and different issue [2] from time to time though (silicon > > bug?). > > Thanks for the info. I've been dealing with this problem for some long > time, hopefully sky driver from the latest kernels is able to recover > from such hangs, so it is not that critical problem now. > > > Marvell shipping broken firmware is completely unpublicised or > > acknowledged, however updated firmware is available through your > > motherboard vendor, so all hope it not lost after all... > > Unfortunately not through all vendors. :( Or maybe not *yet*? > > > My 8053/EC is using firmware 2.2 (previously 1.9) - you can check in > > DOS with 'yukondg.exe' from > > http://www.marvell.com/drivers/files/yukondg_v6.53.4.3.zip . > > Stephen, is it possible for sky2 driver to check and print the > firmware version? It is possible to dump and program eeprom from linux, and the version maybe buried in the VPD, but some hardware has non-functional VPD. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [sky2, solved] transmit timeouts and firmware update... 2008-08-25 19:22 ` Stephen Hemminger @ 2008-08-27 20:27 ` Stephen Hemminger 2008-08-27 21:37 ` Daniel J Blueman 0 siblings, 1 reply; 11+ messages in thread From: Stephen Hemminger @ 2008-08-27 20:27 UTC (permalink / raw) To: Stephen Hemminger Cc: Krzysztof Oledzki, Linux Netdev, Linux Networking, Daniel J Blueman On Mon, 25 Aug 2008 15:22:06 -0400 Stephen Hemminger <shemminger@vyatta.com> wrote: > On Mon, 25 Aug 2008 21:03:25 +0200 (CEST) > Krzysztof Oledzki <ole@ans.pl> wrote: > > > > > > > On Mon, 25 Aug 2008, Daniel J Blueman wrote: > > > > > I (and a lot of other users) have been experiencing the frequent sky2 > > > transmit timeout problem [1] (on 88E8053/Yukon2 EC gig hardware); this > > > is a result of the embedded NIC controller locking up, and I've found > > > that updating the firmware addresses this issue. I'm still seeing a > > > previous and different issue [2] from time to time though (silicon > > > bug?). > > > > Thanks for the info. I've been dealing with this problem for some long > > time, hopefully sky driver from the latest kernels is able to recover > > from such hangs, so it is not that critical problem now. > > > > > Marvell shipping broken firmware is completely unpublicised or > > > acknowledged, however updated firmware is available through your > > > motherboard vendor, so all hope it not lost after all... > > > > Unfortunately not through all vendors. :( Or maybe not *yet*? > > > > > My 8053/EC is using firmware 2.2 (previously 1.9) - you can check in > > > DOS with 'yukondg.exe' from > > > http://www.marvell.com/drivers/files/yukondg_v6.53.4.3.zip . > > > > Stephen, is it possible for sky2 driver to check and print the > > firmware version? > > It is possible to dump and program eeprom from linux, and the version > maybe buried in the VPD, but some hardware has non-functional VPD. The revision number in the VPD matches the revision number (from PCI) that is already printed by the driver. Since I don't have enough documentation on the firmware to know the format, there is no way to print anything really useful. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [sky2, solved] transmit timeouts and firmware update... 2008-08-27 20:27 ` Stephen Hemminger @ 2008-08-27 21:37 ` Daniel J Blueman 2008-08-27 21:42 ` Stephen Hemminger 0 siblings, 1 reply; 11+ messages in thread From: Daniel J Blueman @ 2008-08-27 21:37 UTC (permalink / raw) To: Stephen Hemminger; +Cc: Krzysztof Oledzki, Linux Netdev, Linux Networking On Wed, Aug 27, 2008 at 9:27 PM, Stephen Hemminger <shemminger@vyatta.com> wrote: > On Mon, 25 Aug 2008 15:22:06 -0400 > Stephen Hemminger <shemminger@vyatta.com> wrote: > >> On Mon, 25 Aug 2008 21:03:25 +0200 (CEST) >> Krzysztof Oledzki <ole@ans.pl> wrote: >> >> > >> > >> > On Mon, 25 Aug 2008, Daniel J Blueman wrote: >> > >> > > I (and a lot of other users) have been experiencing the frequent sky2 >> > > transmit timeout problem [1] (on 88E8053/Yukon2 EC gig hardware); this >> > > is a result of the embedded NIC controller locking up, and I've found >> > > that updating the firmware addresses this issue. I'm still seeing a >> > > previous and different issue [2] from time to time though (silicon >> > > bug?). >> > >> > Thanks for the info. I've been dealing with this problem for some long >> > time, hopefully sky driver from the latest kernels is able to recover >> > from such hangs, so it is not that critical problem now. >> > >> > > Marvell shipping broken firmware is completely unpublicised or >> > > acknowledged, however updated firmware is available through your >> > > motherboard vendor, so all hope it not lost after all... >> > >> > Unfortunately not through all vendors. :( Or maybe not *yet*? >> > >> > > My 8053/EC is using firmware 2.2 (previously 1.9) - you can check in >> > > DOS with 'yukondg.exe' from >> > > http://www.marvell.com/drivers/files/yukondg_v6.53.4.3.zip . >> > >> > Stephen, is it possible for sky2 driver to check and print the >> > firmware version? >> >> It is possible to dump and program eeprom from linux, and the version >> maybe buried in the VPD, but some hardware has non-functional VPD. > > The revision number in the VPD matches the revision number (from PCI) > that is already printed by the driver. Since I don't have enough documentation > on the firmware to know the format, there is no way to print anything > really useful. $ lspci -d11ab: 02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit Ethernet Controller (rev 22) 07:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8036 PCI-E Fast Ethernet Controller (rev 15) $ dmesg | grep sky2.*rev [ 33.998133] sky2 0000:02:00.0: v1.20 addr 0xd6000000 irq 16 Yukon-EC (0xb6) rev 2 [ 33.999085] sky2 0000:07:00.0: v1.20 addr 0xd8000000 irq 18 Yukon-FE (0xb7) rev 1 The 'rev' reported by the driver is from: hw->chip_rev = (sky2_read8(hw, B2_MAC_CFG) & CFG_CHIP_R_MSK) >> 4; which is the chip/silicon revision, whereas the rev reported by the PCI device is the firmware revision, as you've found. How about: 02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit Ethernet Controller (silicon rev 2, firmware/PCI rev 22) This introduces perhaps something even more useful - we know there are really major issues with (eg) 88E8053 before firmware 2.2; is it worth adding a warning, such as: sky2: firmware earlier than rev 2.2 detected - if you experience transmit timeouts, ask vendor for 88E8053 firmware update There are a lot of bug reports on the web pointing the finger at the sky2 driver, and waiting for a 'fixed' version, but the issue is elsewhere...part of the problem, if there is (almost) no documentation/evidence of this problem posted anywhere. Many thanks, Daniel -- Daniel J Blueman ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [sky2, solved] transmit timeouts and firmware update... 2008-08-27 21:37 ` Daniel J Blueman @ 2008-08-27 21:42 ` Stephen Hemminger 2008-08-27 21:48 ` Daniel J Blueman 0 siblings, 1 reply; 11+ messages in thread From: Stephen Hemminger @ 2008-08-27 21:42 UTC (permalink / raw) To: Daniel J Blueman; +Cc: Krzysztof Oledzki, Linux Netdev, Linux Networking On Wed, 27 Aug 2008 22:37:51 +0100 "Daniel J Blueman" <daniel.blueman@gmail.com> wrote: > On Wed, Aug 27, 2008 at 9:27 PM, Stephen Hemminger > <shemminger@vyatta.com> wrote: > > On Mon, 25 Aug 2008 15:22:06 -0400 > > Stephen Hemminger <shemminger@vyatta.com> wrote: > > > >> On Mon, 25 Aug 2008 21:03:25 +0200 (CEST) > >> Krzysztof Oledzki <ole@ans.pl> wrote: > >> > >> > > >> > > >> > On Mon, 25 Aug 2008, Daniel J Blueman wrote: > >> > > >> > > I (and a lot of other users) have been experiencing the frequent sky2 > >> > > transmit timeout problem [1] (on 88E8053/Yukon2 EC gig hardware); this > >> > > is a result of the embedded NIC controller locking up, and I've found > >> > > that updating the firmware addresses this issue. I'm still seeing a > >> > > previous and different issue [2] from time to time though (silicon > >> > > bug?). > >> > > >> > Thanks for the info. I've been dealing with this problem for some long > >> > time, hopefully sky driver from the latest kernels is able to recover > >> > from such hangs, so it is not that critical problem now. > >> > > >> > > Marvell shipping broken firmware is completely unpublicised or > >> > > acknowledged, however updated firmware is available through your > >> > > motherboard vendor, so all hope it not lost after all... > >> > > >> > Unfortunately not through all vendors. :( Or maybe not *yet*? > >> > > >> > > My 8053/EC is using firmware 2.2 (previously 1.9) - you can check in > >> > > DOS with 'yukondg.exe' from > >> > > http://www.marvell.com/drivers/files/yukondg_v6.53.4.3.zip . > >> > > >> > Stephen, is it possible for sky2 driver to check and print the > >> > firmware version? > >> > >> It is possible to dump and program eeprom from linux, and the version > >> maybe buried in the VPD, but some hardware has non-functional VPD. > > > > The revision number in the VPD matches the revision number (from PCI) > > that is already printed by the driver. Since I don't have enough documentation > > on the firmware to know the format, there is no way to print anything > > really useful. > > $ lspci -d11ab: > 02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 > PCI-E Gigabit Ethernet Controller (rev 22) > 07:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8036 > PCI-E Fast Ethernet Controller (rev 15) > > $ dmesg | grep sky2.*rev > [ 33.998133] sky2 0000:02:00.0: v1.20 addr 0xd6000000 irq 16 > Yukon-EC (0xb6) rev 2 > [ 33.999085] sky2 0000:07:00.0: v1.20 addr 0xd8000000 irq 18 > Yukon-FE (0xb7) rev 1 > > The 'rev' reported by the driver is from: > > hw->chip_rev = (sky2_read8(hw, B2_MAC_CFG) & CFG_CHIP_R_MSK) >> 4; > > which is the chip/silicon revision, whereas the rev reported by the > PCI device is the firmware revision, as you've found. > > How about: > > 02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 > PCI-E Gigabit Ethernet Controller (silicon rev 2, firmware/PCI rev 22) > > This introduces perhaps something even more useful - we know there are > really major issues with (eg) 88E8053 before firmware 2.2; is it worth > adding a warning, such as: > > sky2: firmware earlier than rev 2.2 detected - if you experience > transmit timeouts, ask vendor for 88E8053 firmware update > > There are a lot of bug reports on the web pointing the finger at the > sky2 driver, and waiting for a 'fixed' version, but the issue is > elsewhere...part of the problem, if there is (almost) no > documentation/evidence of this problem posted anywhere. > > Many thanks, > Daniel lspci reports PCI rev. driver reports chip rev. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [sky2, solved] transmit timeouts and firmware update... 2008-08-27 21:42 ` Stephen Hemminger @ 2008-08-27 21:48 ` Daniel J Blueman 2008-08-27 21:58 ` Daniel J Blueman 2008-08-27 22:14 ` Krzysztof Oledzki 0 siblings, 2 replies; 11+ messages in thread From: Daniel J Blueman @ 2008-08-27 21:48 UTC (permalink / raw) To: Stephen Hemminger; +Cc: Krzysztof Oledzki, Linux Netdev, Linux Networking On Wed, Aug 27, 2008 at 10:42 PM, Stephen Hemminger <shemminger@vyatta.com> wrote: > On Wed, 27 Aug 2008 22:37:51 +0100 > "Daniel J Blueman" <daniel.blueman@gmail.com> wrote: > >> On Wed, Aug 27, 2008 at 9:27 PM, Stephen Hemminger >> <shemminger@vyatta.com> wrote: >> > On Mon, 25 Aug 2008 15:22:06 -0400 >> > Stephen Hemminger <shemminger@vyatta.com> wrote: >> > >> >> On Mon, 25 Aug 2008 21:03:25 +0200 (CEST) >> >> Krzysztof Oledzki <ole@ans.pl> wrote: >> >> >> >> > >> >> > >> >> > On Mon, 25 Aug 2008, Daniel J Blueman wrote: >> >> > >> >> > > I (and a lot of other users) have been experiencing the frequent sky2 >> >> > > transmit timeout problem [1] (on 88E8053/Yukon2 EC gig hardware); this >> >> > > is a result of the embedded NIC controller locking up, and I've found >> >> > > that updating the firmware addresses this issue. I'm still seeing a >> >> > > previous and different issue [2] from time to time though (silicon >> >> > > bug?). >> >> > >> >> > Thanks for the info. I've been dealing with this problem for some long >> >> > time, hopefully sky driver from the latest kernels is able to recover >> >> > from such hangs, so it is not that critical problem now. >> >> > >> >> > > Marvell shipping broken firmware is completely unpublicised or >> >> > > acknowledged, however updated firmware is available through your >> >> > > motherboard vendor, so all hope it not lost after all... >> >> > >> >> > Unfortunately not through all vendors. :( Or maybe not *yet*? >> >> > >> >> > > My 8053/EC is using firmware 2.2 (previously 1.9) - you can check in >> >> > > DOS with 'yukondg.exe' from >> >> > > http://www.marvell.com/drivers/files/yukondg_v6.53.4.3.zip . >> >> > >> >> > Stephen, is it possible for sky2 driver to check and print the >> >> > firmware version? >> >> >> >> It is possible to dump and program eeprom from linux, and the version >> >> maybe buried in the VPD, but some hardware has non-functional VPD. >> > >> > The revision number in the VPD matches the revision number (from PCI) >> > that is already printed by the driver. Since I don't have enough documentation >> > on the firmware to know the format, there is no way to print anything >> > really useful. >> >> $ lspci -d11ab: >> 02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 >> PCI-E Gigabit Ethernet Controller (rev 22) >> 07:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8036 >> PCI-E Fast Ethernet Controller (rev 15) >> >> $ dmesg | grep sky2.*rev >> [ 33.998133] sky2 0000:02:00.0: v1.20 addr 0xd6000000 irq 16 >> Yukon-EC (0xb6) rev 2 >> [ 33.999085] sky2 0000:07:00.0: v1.20 addr 0xd8000000 irq 18 >> Yukon-FE (0xb7) rev 1 >> >> The 'rev' reported by the driver is from: >> >> hw->chip_rev = (sky2_read8(hw, B2_MAC_CFG) & CFG_CHIP_R_MSK) >> 4; >> >> which is the chip/silicon revision, whereas the rev reported by the >> PCI device is the firmware revision, as you've found. >> >> How about: >> >> 02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 >> PCI-E Gigabit Ethernet Controller (silicon rev 2, firmware/PCI rev 22) >> >> This introduces perhaps something even more useful - we know there are >> really major issues with (eg) 88E8053 before firmware 2.2; is it worth >> adding a warning, such as: >> >> sky2: firmware earlier than rev 2.2 detected - if you experience >> transmit timeouts, ask vendor for 88E8053 firmware update >> >> There are a lot of bug reports on the web pointing the finger at the >> sky2 driver, and waiting for a 'fixed' version, but the issue is >> elsewhere...part of the problem, if there is (almost) no >> documentation/evidence of this problem posted anywhere. >> >> Many thanks, >> Daniel > > lspci reports PCI rev. driver reports chip rev. But the PCI revision is also the firmware revision - I didn't know this until you mentioned it, so it would be handy to make it explicit in the driver's output; also we don't always have the 'lspci' output in bug reports. Let me know if you'd like a patch... Thanks, Daniel -- Daniel J Blueman ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [sky2, solved] transmit timeouts and firmware update... 2008-08-27 21:48 ` Daniel J Blueman @ 2008-08-27 21:58 ` Daniel J Blueman 2008-08-27 22:16 ` Krzysztof Oledzki 2008-08-27 22:14 ` Krzysztof Oledzki 1 sibling, 1 reply; 11+ messages in thread From: Daniel J Blueman @ 2008-08-27 21:58 UTC (permalink / raw) To: Stephen Hemminger; +Cc: Krzysztof Oledzki, Linux Netdev, Linux Networking On Wed, Aug 27, 2008 at 10:48 PM, Daniel J Blueman <daniel.blueman@gmail.com> wrote: > On Wed, Aug 27, 2008 at 10:42 PM, Stephen Hemminger > <shemminger@vyatta.com> wrote: >> On Wed, 27 Aug 2008 22:37:51 +0100 >> "Daniel J Blueman" <daniel.blueman@gmail.com> wrote: >> >>> On Wed, Aug 27, 2008 at 9:27 PM, Stephen Hemminger >>> <shemminger@vyatta.com> wrote: >>> > On Mon, 25 Aug 2008 15:22:06 -0400 >>> > Stephen Hemminger <shemminger@vyatta.com> wrote: >>> > >>> >> On Mon, 25 Aug 2008 21:03:25 +0200 (CEST) >>> >> Krzysztof Oledzki <ole@ans.pl> wrote: >>> >> >>> >> > >>> >> > >>> >> > On Mon, 25 Aug 2008, Daniel J Blueman wrote: >>> >> > >>> >> > > I (and a lot of other users) have been experiencing the frequent sky2 >>> >> > > transmit timeout problem [1] (on 88E8053/Yukon2 EC gig hardware); this >>> >> > > is a result of the embedded NIC controller locking up, and I've found >>> >> > > that updating the firmware addresses this issue. I'm still seeing a >>> >> > > previous and different issue [2] from time to time though (silicon >>> >> > > bug?). >>> >> > >>> >> > Thanks for the info. I've been dealing with this problem for some long >>> >> > time, hopefully sky driver from the latest kernels is able to recover >>> >> > from such hangs, so it is not that critical problem now. >>> >> > >>> >> > > Marvell shipping broken firmware is completely unpublicised or >>> >> > > acknowledged, however updated firmware is available through your >>> >> > > motherboard vendor, so all hope it not lost after all... >>> >> > >>> >> > Unfortunately not through all vendors. :( Or maybe not *yet*? >>> >> > >>> >> > > My 8053/EC is using firmware 2.2 (previously 1.9) - you can check in >>> >> > > DOS with 'yukondg.exe' from >>> >> > > http://www.marvell.com/drivers/files/yukondg_v6.53.4.3.zip . >>> >> > >>> >> > Stephen, is it possible for sky2 driver to check and print the >>> >> > firmware version? >>> >> >>> >> It is possible to dump and program eeprom from linux, and the version >>> >> maybe buried in the VPD, but some hardware has non-functional VPD. >>> > >>> > The revision number in the VPD matches the revision number (from PCI) >>> > that is already printed by the driver. Since I don't have enough documentation >>> > on the firmware to know the format, there is no way to print anything >>> > really useful. >>> >>> $ lspci -d11ab: >>> 02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 >>> PCI-E Gigabit Ethernet Controller (rev 22) >>> 07:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8036 >>> PCI-E Fast Ethernet Controller (rev 15) >>> >>> $ dmesg | grep sky2.*rev >>> [ 33.998133] sky2 0000:02:00.0: v1.20 addr 0xd6000000 irq 16 >>> Yukon-EC (0xb6) rev 2 >>> [ 33.999085] sky2 0000:07:00.0: v1.20 addr 0xd8000000 irq 18 >>> Yukon-FE (0xb7) rev 1 >>> >>> The 'rev' reported by the driver is from: >>> >>> hw->chip_rev = (sky2_read8(hw, B2_MAC_CFG) & CFG_CHIP_R_MSK) >> 4; >>> >>> which is the chip/silicon revision, whereas the rev reported by the >>> PCI device is the firmware revision, as you've found. >>> >>> How about: >>> >>> 02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 >>> PCI-E Gigabit Ethernet Controller (silicon rev 2, firmware/PCI rev 22) >>> >>> This introduces perhaps something even more useful - we know there are >>> really major issues with (eg) 88E8053 before firmware 2.2; is it worth >>> adding a warning, such as: >>> >>> sky2: firmware earlier than rev 2.2 detected - if you experience >>> transmit timeouts, ask vendor for 88E8053 firmware update >>> >>> There are a lot of bug reports on the web pointing the finger at the >>> sky2 driver, and waiting for a 'fixed' version, but the issue is >>> elsewhere...part of the problem, if there is (almost) no >>> documentation/evidence of this problem posted anywhere. >>> >>> Many thanks, >>> Daniel >> >> lspci reports PCI rev. driver reports chip rev. > > But the PCI revision is also the firmware revision - I didn't know > this until you mentioned it, so it would be handy to make it explicit > in the driver's output; also we don't always have the 'lspci' output > in bug reports. Let me know if you'd like a patch... Here [1] it is. Signed-off-by: Daniel J Blueman <daniel.blueman@gmail.com> Description: Differentiate and print PCI and firmware revision against silicon/chip revision --- [1] diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index e24b25c..676a22f 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c @@ -4206,6 +4206,7 @@ static int __devinit sky2_probe(struct pci_dev *pdev, struct sky2_hw *hw; int err, using_dac = 0, wol_default; char buf1[16]; + unsigned char pci_rev; err = pci_enable_device(pdev); if (err) { @@ -4276,10 +4277,11 @@ static int __devinit sky2_probe(struct pci_dev *pdev, if (err) goto err_out_iounmap; - dev_info(&pdev->dev, "v%s addr 0x%llx irq %d Yukon-2 %s rev %d\n", + pci_read_config_byte(pdev, PCI_REVISION_ID, &pci_rev); + dev_info(&pdev->dev, "v%s addr 0x%llx irq %d Yukon-2 %s silicon rev %d, firmware/PCI rev %d\n", DRV_VERSION, (unsigned long long)pci_resource_start(pdev, 0), pdev->irq, sky2_name(hw->chip_id, buf1, sizeof(buf1)), - hw->chip_rev); + hw->chip_rev, pci_rev); sky2_reset(hw); -- Daniel J Blueman ^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [sky2, solved] transmit timeouts and firmware update... 2008-08-27 21:58 ` Daniel J Blueman @ 2008-08-27 22:16 ` Krzysztof Oledzki 0 siblings, 0 replies; 11+ messages in thread From: Krzysztof Oledzki @ 2008-08-27 22:16 UTC (permalink / raw) To: Daniel J Blueman; +Cc: Stephen Hemminger, Linux Netdev, Linux Networking [-- Attachment #1: Type: TEXT/PLAIN, Size: 5436 bytes --] On Wed, 27 Aug 2008, Daniel J Blueman wrote: > On Wed, Aug 27, 2008 at 10:48 PM, Daniel J Blueman > <daniel.blueman@gmail.com> wrote: >> On Wed, Aug 27, 2008 at 10:42 PM, Stephen Hemminger >> <shemminger@vyatta.com> wrote: >>> On Wed, 27 Aug 2008 22:37:51 +0100 >>> "Daniel J Blueman" <daniel.blueman@gmail.com> wrote: >>> >>>> On Wed, Aug 27, 2008 at 9:27 PM, Stephen Hemminger >>>> <shemminger@vyatta.com> wrote: >>>>> On Mon, 25 Aug 2008 15:22:06 -0400 >>>>> Stephen Hemminger <shemminger@vyatta.com> wrote: >>>>> >>>>>> On Mon, 25 Aug 2008 21:03:25 +0200 (CEST) >>>>>> Krzysztof Oledzki <ole@ans.pl> wrote: >>>>>> >>>>>>> >>>>>>> >>>>>>> On Mon, 25 Aug 2008, Daniel J Blueman wrote: >>>>>>> >>>>>>>> I (and a lot of other users) have been experiencing the frequent sky2 >>>>>>>> transmit timeout problem [1] (on 88E8053/Yukon2 EC gig hardware); this >>>>>>>> is a result of the embedded NIC controller locking up, and I've found >>>>>>>> that updating the firmware addresses this issue. I'm still seeing a >>>>>>>> previous and different issue [2] from time to time though (silicon >>>>>>>> bug?). >>>>>>> >>>>>>> Thanks for the info. I've been dealing with this problem for some long >>>>>>> time, hopefully sky driver from the latest kernels is able to recover >>>>>>> from such hangs, so it is not that critical problem now. >>>>>>> >>>>>>>> Marvell shipping broken firmware is completely unpublicised or >>>>>>>> acknowledged, however updated firmware is available through your >>>>>>>> motherboard vendor, so all hope it not lost after all... >>>>>>> >>>>>>> Unfortunately not through all vendors. :( Or maybe not *yet*? >>>>>>> >>>>>>>> My 8053/EC is using firmware 2.2 (previously 1.9) - you can check in >>>>>>>> DOS with 'yukondg.exe' from >>>>>>>> http://www.marvell.com/drivers/files/yukondg_v6.53.4.3.zip . >>>>>>> >>>>>>> Stephen, is it possible for sky2 driver to check and print the >>>>>>> firmware version? >>>>>> >>>>>> It is possible to dump and program eeprom from linux, and the version >>>>>> maybe buried in the VPD, but some hardware has non-functional VPD. >>>>> >>>>> The revision number in the VPD matches the revision number (from PCI) >>>>> that is already printed by the driver. Since I don't have enough documentation >>>>> on the firmware to know the format, there is no way to print anything >>>>> really useful. >>>> >>>> $ lspci -d11ab: >>>> 02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 >>>> PCI-E Gigabit Ethernet Controller (rev 22) >>>> 07:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8036 >>>> PCI-E Fast Ethernet Controller (rev 15) >>>> >>>> $ dmesg | grep sky2.*rev >>>> [ 33.998133] sky2 0000:02:00.0: v1.20 addr 0xd6000000 irq 16 >>>> Yukon-EC (0xb6) rev 2 >>>> [ 33.999085] sky2 0000:07:00.0: v1.20 addr 0xd8000000 irq 18 >>>> Yukon-FE (0xb7) rev 1 >>>> >>>> The 'rev' reported by the driver is from: >>>> >>>> hw->chip_rev = (sky2_read8(hw, B2_MAC_CFG) & CFG_CHIP_R_MSK) >> 4; >>>> >>>> which is the chip/silicon revision, whereas the rev reported by the >>>> PCI device is the firmware revision, as you've found. >>>> >>>> How about: >>>> >>>> 02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 >>>> PCI-E Gigabit Ethernet Controller (silicon rev 2, firmware/PCI rev 22) >>>> >>>> This introduces perhaps something even more useful - we know there are >>>> really major issues with (eg) 88E8053 before firmware 2.2; is it worth >>>> adding a warning, such as: >>>> >>>> sky2: firmware earlier than rev 2.2 detected - if you experience >>>> transmit timeouts, ask vendor for 88E8053 firmware update >>>> >>>> There are a lot of bug reports on the web pointing the finger at the >>>> sky2 driver, and waiting for a 'fixed' version, but the issue is >>>> elsewhere...part of the problem, if there is (almost) no >>>> documentation/evidence of this problem posted anywhere. >>>> >>>> Many thanks, >>>> Daniel >>> >>> lspci reports PCI rev. driver reports chip rev. >> >> But the PCI revision is also the firmware revision - I didn't know >> this until you mentioned it, so it would be handy to make it explicit >> in the driver's output; also we don't always have the 'lspci' output >> in bug reports. Let me know if you'd like a patch... > > Here [1] it is. > > Signed-off-by: Daniel J Blueman <daniel.blueman@gmail.com> > Description: Differentiate and print PCI and firmware revision against > silicon/chip revision > > --- [1] > > diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c > index e24b25c..676a22f 100644 > --- a/drivers/net/sky2.c > +++ b/drivers/net/sky2.c > @@ -4206,6 +4206,7 @@ static int __devinit sky2_probe(struct pci_dev *pdev, > struct sky2_hw *hw; > int err, using_dac = 0, wol_default; > char buf1[16]; > + unsigned char pci_rev; > > err = pci_enable_device(pdev); > if (err) { > @@ -4276,10 +4277,11 @@ static int __devinit sky2_probe(struct pci_dev *pdev, > if (err) > goto err_out_iounmap; > > - dev_info(&pdev->dev, "v%s addr 0x%llx irq %d Yukon-2 %s rev %d\n", > + pci_read_config_byte(pdev, PCI_REVISION_ID, &pci_rev); > + dev_info(&pdev->dev, "v%s addr 0x%llx irq %d Yukon-2 %s silicon rev %d, firmware/PCI rev %d\n", ...rev %u.%u\n"? > DRV_VERSION, (unsigned long long)pci_resource_start(pdev, 0), > pdev->irq, sky2_name(hw->chip_id, buf1, sizeof(buf1)), > - hw->chip_rev); > + hw->chip_rev, pci_rev); pci_rev/10, pci_rev%10? Best regards, Krzysztof Olędzki ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [sky2, solved] transmit timeouts and firmware update... 2008-08-27 21:48 ` Daniel J Blueman 2008-08-27 21:58 ` Daniel J Blueman @ 2008-08-27 22:14 ` Krzysztof Oledzki 1 sibling, 0 replies; 11+ messages in thread From: Krzysztof Oledzki @ 2008-08-27 22:14 UTC (permalink / raw) To: Daniel J Blueman; +Cc: Stephen Hemminger, Linux Netdev, Linux Networking [-- Attachment #1: Type: TEXT/PLAIN, Size: 4412 bytes --] On Wed, 27 Aug 2008, Daniel J Blueman wrote: > On Wed, Aug 27, 2008 at 10:42 PM, Stephen Hemminger > <shemminger@vyatta.com> wrote: >> On Wed, 27 Aug 2008 22:37:51 +0100 >> "Daniel J Blueman" <daniel.blueman@gmail.com> wrote: >> >>> On Wed, Aug 27, 2008 at 9:27 PM, Stephen Hemminger >>> <shemminger@vyatta.com> wrote: >>>> On Mon, 25 Aug 2008 15:22:06 -0400 >>>> Stephen Hemminger <shemminger@vyatta.com> wrote: >>>> >>>>> On Mon, 25 Aug 2008 21:03:25 +0200 (CEST) >>>>> Krzysztof Oledzki <ole@ans.pl> wrote: >>>>> >>>>>> >>>>>> >>>>>> On Mon, 25 Aug 2008, Daniel J Blueman wrote: >>>>>> >>>>>>> I (and a lot of other users) have been experiencing the frequent sky2 >>>>>>> transmit timeout problem [1] (on 88E8053/Yukon2 EC gig hardware); this >>>>>>> is a result of the embedded NIC controller locking up, and I've found >>>>>>> that updating the firmware addresses this issue. I'm still seeing a >>>>>>> previous and different issue [2] from time to time though (silicon >>>>>>> bug?). >>>>>> >>>>>> Thanks for the info. I've been dealing with this problem for some long >>>>>> time, hopefully sky driver from the latest kernels is able to recover >>>>>> from such hangs, so it is not that critical problem now. >>>>>> >>>>>>> Marvell shipping broken firmware is completely unpublicised or >>>>>>> acknowledged, however updated firmware is available through your >>>>>>> motherboard vendor, so all hope it not lost after all... >>>>>> >>>>>> Unfortunately not through all vendors. :( Or maybe not *yet*? >>>>>> >>>>>>> My 8053/EC is using firmware 2.2 (previously 1.9) - you can check in >>>>>>> DOS with 'yukondg.exe' from >>>>>>> http://www.marvell.com/drivers/files/yukondg_v6.53.4.3.zip . >>>>>> >>>>>> Stephen, is it possible for sky2 driver to check and print the >>>>>> firmware version? >>>>> >>>>> It is possible to dump and program eeprom from linux, and the version >>>>> maybe buried in the VPD, but some hardware has non-functional VPD. >>>> >>>> The revision number in the VPD matches the revision number (from PCI) >>>> that is already printed by the driver. Since I don't have enough documentation >>>> on the firmware to know the format, there is no way to print anything >>>> really useful. >>> >>> $ lspci -d11ab: >>> 02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 >>> PCI-E Gigabit Ethernet Controller (rev 22) >>> 07:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8036 >>> PCI-E Fast Ethernet Controller (rev 15) >>> >>> $ dmesg | grep sky2.*rev >>> [ 33.998133] sky2 0000:02:00.0: v1.20 addr 0xd6000000 irq 16 >>> Yukon-EC (0xb6) rev 2 >>> [ 33.999085] sky2 0000:07:00.0: v1.20 addr 0xd8000000 irq 18 >>> Yukon-FE (0xb7) rev 1 >>> >>> The 'rev' reported by the driver is from: >>> >>> hw->chip_rev = (sky2_read8(hw, B2_MAC_CFG) & CFG_CHIP_R_MSK) >> 4; >>> >>> which is the chip/silicon revision, whereas the rev reported by the >>> PCI device is the firmware revision, as you've found. >>> >>> How about: >>> >>> 02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 >>> PCI-E Gigabit Ethernet Controller (silicon rev 2, firmware/PCI rev 22) >>> >>> This introduces perhaps something even more useful - we know there are >>> really major issues with (eg) 88E8053 before firmware 2.2; is it worth >>> adding a warning, such as: >>> >>> sky2: firmware earlier than rev 2.2 detected - if you experience >>> transmit timeouts, ask vendor for 88E8053 firmware update >>> >>> There are a lot of bug reports on the web pointing the finger at the >>> sky2 driver, and waiting for a 'fixed' version, but the issue is >>> elsewhere...part of the problem, if there is (almost) no >>> documentation/evidence of this problem posted anywhere. >>> >>> Many thanks, >>> Daniel >> >> lspci reports PCI rev. driver reports chip rev. > > But the PCI revision is also the firmware revision - I didn't know > this until you mentioned it, so it would be handy to make it explicit > in the driver's output; also we don't always have the 'lspci' output > in bug reports. Let me know if you'd like a patch... If this is correct then I have hideously old version the firmware: 02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit Ethernet Controller (rev 15) Is it possible/safe to use the firmware privided by Gigabyte/Jetway to flash chipset in mainboards from other vendors? Best regards, Krzysztof Olędzki ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [sky2, solved] transmit timeouts and firmware update... 2008-08-25 19:03 ` Krzysztof Oledzki 2008-08-25 19:22 ` Stephen Hemminger @ 2008-08-25 19:46 ` Daniel J Blueman 1 sibling, 0 replies; 11+ messages in thread From: Daniel J Blueman @ 2008-08-25 19:46 UTC (permalink / raw) To: Krzysztof Oledzki; +Cc: Stephen Hemminger, Linux Netdev, Linux Networking 2008/8/25 Krzysztof Oledzki <ole@ans.pl>: > On Mon, 25 Aug 2008, Daniel J Blueman wrote: > >> I (and a lot of other users) have been experiencing the frequent sky2 >> transmit timeout problem [1] (on 88E8053/Yukon2 EC gig hardware); this >> is a result of the embedded NIC controller locking up, and I've found >> that updating the firmware addresses this issue. I'm still seeing a >> previous and different issue [2] from time to time though (silicon >> bug?). > > Thanks for the info. I've been dealing with this problem for some long time, > hopefully sky driver from the latest kernels is able to recover from such > hangs, so it is not that critical problem now. It can recover eventually, but for (eg) NFS, the exponential-backoff causes a 30-60s hang, which if your homedir is mounted, will hit you. >> Marvell shipping broken firmware is completely unpublicised or >> acknowledged, however updated firmware is available through your >> motherboard vendor, so all hope it not lost after all... > > Unfortunately not through all vendors. :( Or maybe not *yet*? At least Gigabyte and Jetway have them for download, as the issue seems widespread: http://tw.giga-byte.com/FileList/FAQ/mb_faq/faq_marvell_eeprom.zip http://download.jetway.com.tw/faq/EEP8056_109.zip I can imagine that most motherboard vendors will have encountered support for this problem, so would have the files; it's worth trying to contact them... >> My 8053/EC is using firmware 2.2 (previously 1.9) - you can check in >> DOS with 'yukondg.exe' from >> http://www.marvell.com/drivers/files/yukondg_v6.53.4.3.zip . > > Stephen, is it possible for sky2 driver to check and print the firmware > version? I agree - this would be useful indeed! > Best regards, > > Krzysztof Olędzki -- Daniel J Blueman ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2008-08-27 22:31 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-08-25 14:42 [sky2, solved] transmit timeouts and firmware update Daniel J Blueman 2008-08-25 19:03 ` Krzysztof Oledzki 2008-08-25 19:22 ` Stephen Hemminger 2008-08-27 20:27 ` Stephen Hemminger 2008-08-27 21:37 ` Daniel J Blueman 2008-08-27 21:42 ` Stephen Hemminger 2008-08-27 21:48 ` Daniel J Blueman 2008-08-27 21:58 ` Daniel J Blueman 2008-08-27 22:16 ` Krzysztof Oledzki 2008-08-27 22:14 ` Krzysztof Oledzki 2008-08-25 19:46 ` Daniel J Blueman
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).