* [BUG] Via-Rhine WOL vs PXE Boot
@ 2004-09-17 19:54 Kenneth Aafløy
2004-09-17 20:34 ` Roger Luethi
0 siblings, 1 reply; 6+ messages in thread
From: Kenneth Aafløy @ 2004-09-17 19:54 UTC (permalink / raw)
To: linux-kernel
Hi!
In recent kernels I have been having trouble booting from a LAN with the built
in PXE firmware in my Via Epia M10k board. This will never happen after a
cold-boot. But do accur after the first reboot or power-down/power-up cycle.
When this occurs the PXE firmware exits with no error, as at least a
unplugged wire (from cold-boot) will yield an error message with the
unchanged driver. Cold-boot refers to complete power separation from the
motherboard.
I've traced this down to a specific change in the via-rhine ethernet driver:
http://linux.bkbits.net:8080/linux-2.6/diffs/drivers/net/via-rhine.c%401.75?nav=index.html|
src/.|src/drivers|src/drivers/net|hist/drivers/net/via-rhine.c
I have not yet tried messing with variations of this change vs the WOL
feature, or the WOL feature at all, but probably will sometime soon. If
someone have some idea of what might be going wrong here,
I would be happy to test.
Kenneth
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG] Via-Rhine WOL vs PXE Boot
2004-09-17 19:54 [BUG] Via-Rhine WOL vs PXE Boot Kenneth Aafløy
@ 2004-09-17 20:34 ` Roger Luethi
2004-09-17 22:01 ` Kenneth Aafløy
0 siblings, 1 reply; 6+ messages in thread
From: Roger Luethi @ 2004-09-17 20:34 UTC (permalink / raw)
To: Kenneth Aafløy; +Cc: linux-kernel
On Fri, 17 Sep 2004 21:54:36 +0200, Kenneth Aafløy wrote:
> In recent kernels I have been having trouble booting from a LAN with the built
> in PXE firmware in my Via Epia M10k board. This will never happen after a
> cold-boot. But do accur after the first reboot or power-down/power-up cycle.
> When this occurs the PXE firmware exits with no error, as at least a
> unplugged wire (from cold-boot) will yield an error message with the
> unchanged driver. Cold-boot refers to complete power separation from the
> motherboard.
>
> I've traced this down to a specific change in the via-rhine ethernet driver:
[...]
The patch you are referring to contains very little code that affects chip
programming without user intervention (e.g. calling ethtool ioctls). There
is one notable exception: The patch introduces rhine_shutdown which is
called at shutdown (well, duh!). I suppose you can make the problem go away
if you comment out parts of said function. I'd start at the bottom with the
D3 call.
Roger
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG] Via-Rhine WOL vs PXE Boot
2004-09-17 20:34 ` Roger Luethi
@ 2004-09-17 22:01 ` Kenneth Aafløy
2004-09-18 6:13 ` Roger Luethi
0 siblings, 1 reply; 6+ messages in thread
From: Kenneth Aafløy @ 2004-09-17 22:01 UTC (permalink / raw)
To: Roger Luethi; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1288 bytes --]
On Friday 17 September 2004 22:34, Roger Luethi wrote:
> On Fri, 17 Sep 2004 21:54:36 +0200, Kenneth Aafløy wrote:
> > In recent kernels I have been having trouble booting from a LAN with the
> > built in PXE firmware in my Via Epia M10k board.
[...]
> The patch you are referring to contains very little code that affects chip
> programming without user intervention (e.g. calling ethtool ioctls). There
> is one notable exception: The patch introduces rhine_shutdown which is
> called at shutdown (well, duh!). I suppose you can make the problem go away
> if you comment out parts of said function. I'd start at the bottom with the
> D3 call.
Indeed it was that last call to change the power state, as I too figured. Now
I wonder if there is some other power state that could be set that would
benefit powersaving, but not prevent the pxe boot rom from beeing confused?
Or should this rather be reported as a bug to Via, so that they can implement
restoring the adapter from the D3 state in the pxe boot rom?
I've attached what I belive to be a bk patch (kinda new to that) which
comments out this power-state change, untill something better is found. I
have not tested WOL with this, but I can't think of any reason why it should
not work.
Kenneth
[-- Attachment #2: via-rhine.patch --]
[-- Type: text/x-diff, Size: 932 bytes --]
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/09/17 23:44:56+02:00 lists@kenneth.aafloy.net(none)
# via-rhine.c:
# [via-rhine] Disable the D3 power state in _shutdown.
#
# drivers/net/via-rhine.c
# 2004/09/17 23:29:58+02:00 lists@kenneth.aafloy.net(none) +3 -1
# [via-rhine] Disable the D3 power state in _shutdown.
#
diff -Nru a/drivers/net/via-rhine.c b/drivers/net/via-rhine.c
--- a/drivers/net/via-rhine.c 2004-09-17 23:49:38 +02:00
+++ b/drivers/net/via-rhine.c 2004-09-17 23:49:38 +02:00
@@ -1934,7 +1934,9 @@
writeb(readb(ioaddr + StickyHW) | 0x04, ioaddr + StickyHW);
/* Hit power state D3 (sleep) */
- writeb(readb(ioaddr + StickyHW) | 0x03, ioaddr + StickyHW);
+ /* Disabled for now, because it will confuse the PXE boot rom
+ * of some Via Epia boards. */
+ //writeb(readb(ioaddr + StickyHW) | 0x03, ioaddr + StickyHW);
/* TODO: Check use of pci_enable_wake() */
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG] Via-Rhine WOL vs PXE Boot
2004-09-17 22:01 ` Kenneth Aafløy
@ 2004-09-18 6:13 ` Roger Luethi
2004-09-19 12:52 ` Kenneth Aafløy
0 siblings, 1 reply; 6+ messages in thread
From: Roger Luethi @ 2004-09-18 6:13 UTC (permalink / raw)
To: Kenneth Aafløy; +Cc: linux-kernel
On Sat, 18 Sep 2004 00:01:42 +0200, Kenneth Aafløy wrote:
> Or should this rather be reported as a bug to Via, so that they can implement
> restoring the adapter from the D3 state in the pxe boot rom?
Have you tried the VIA driver to check if it fares any better?
> I've attached what I belive to be a bk patch (kinda new to that) which
> comments out this power-state change, untill something better is found. I
> have not tested WOL with this, but I can't think of any reason why it should
> not work.
I'm afraid you will convince neither me nor the hardware with assumptions.
Roger
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG] Via-Rhine WOL vs PXE Boot
2004-09-18 6:13 ` Roger Luethi
@ 2004-09-19 12:52 ` Kenneth Aafløy
2004-09-19 13:15 ` Roger Luethi
0 siblings, 1 reply; 6+ messages in thread
From: Kenneth Aafløy @ 2004-09-19 12:52 UTC (permalink / raw)
To: Roger Luethi; +Cc: linux-kernel
On Saturday 18 September 2004 08:13, Roger Luethi wrote:
> On Sat, 18 Sep 2004 00:01:42 +0200, Kenneth Aafløy wrote:
> > I've attached what I belive to be a bk patch (kinda new to that) which
> > comments out this power-state change, untill something better is found. I
> > have not tested WOL with this, but I can't think of any reason why it should
> > not work.
>
> I'm afraid you will convince neither me nor the hardware with assumptions.
WOL still works fine, at least with my hardware, without that statement.
Kenneth
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-09-19 13:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-17 19:54 [BUG] Via-Rhine WOL vs PXE Boot Kenneth Aafløy
2004-09-17 20:34 ` Roger Luethi
2004-09-17 22:01 ` Kenneth Aafløy
2004-09-18 6:13 ` Roger Luethi
2004-09-19 12:52 ` Kenneth Aafløy
2004-09-19 13:15 ` Roger Luethi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox