Skip to contentSkip to conversation

tg3: ethtool phys_id default (rev2)

PATCH Applied Michael Chan 4 participants 5 messages Feb 22, 2008 – Feb 25, 2008 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Michael Chan

author Acked-by
#1 lore raw
In reply to a message not in the archive
Quoted 8 lines · Stephen Hemminger

When asked to blink LEDs the tg3 driver behaves when using:
ethtool -p ethX
The default value for data is zero, and other drivers interpret this as blink forever (or at least a really long time). The tg3 driver interprets this as blink once. All drivers should have the same behaviour.

We should do this across the board for bnx2, bnx2x, and niu as well.

maintainer Applied
#2 lore raw

From: "Michael Chan" <[email protected]>
Date: Fri, 22 Feb 2008 11:16:42 -0800

Quoted 11 lines · Stephen Hemminger
Quoted 8 lines

When asked to blink LEDs the tg3 driver behaves when using:
ethtool -p ethX
The default value for data is zero, and other drivers interpret this as blink forever (or at least a really long time). The tg3 driver interprets this as blink once. All drivers should have the same behaviour.

Applied.

Quoted 1 line

We should do this across the board for bnx2, bnx2x, and niu as well.

Agreed.

#3 lore raw
Quoted 10 lines · David Miller

From: "Michael Chan" <[email protected]>
Date: Fri, 22 Feb 2008 11:16:42 -0800

Quoted 7 lines · Stephen Hemminger
Quoted 6 lines

When asked to blink LEDs the tg3 driver behaves when using:
ethtool -p ethX
The default value for data is zero, and other drivers interpret this as blink forever (or at least a really long time). The tg3 driver interprets this as blink once. All drivers should have the same behaviour.

...

Quoted 3 lines
Quoted 1 line

We should do this across the board for bnx2, bnx2x, and niu as well.

Agreed.

Doesn't this mean that ethtool -p will hold the RTNL lock forever? Is this a good idea?

For example on the Red Hat machine I have here if you do:

ethtool -p eth2 100000 &
reboot

Various things the shutdown scripts try to do will fail because of the held RTNL lock. in the end the script dies and the machine does not reboot.

Eliezer

#4 lore raw
Quoted 20 lines · On Sun, 24 Feb 2008 07:42:06 +0200 "Eliezer Tamir" <[email protected]>…
Quoted 10 lines · David Miller

From: "Michael Chan" <[email protected]>
Date: Fri, 22 Feb 2008 11:16:42 -0800

Quoted 7 lines · Stephen Hemminger
Quoted 6 lines

When asked to blink LEDs the tg3 driver behaves when using:
ethtool -p ethX
The default value for data is zero, and other drivers interpret this as blink forever (or at least a really long time). The tg3 driver interprets this as blink once. All drivers should have the same behaviour.

...

Quoted 3 lines
Quoted 1 line

We should do this across the board for bnx2, bnx2x, and niu as well.

Agreed.

Doesn't this mean that ethtool -p will hold the RTNL lock forever? Is this a good idea?

Quoted 8 lines

For example on the Red Hat machine I have here if you do:

ethtool -p eth2 100000 &
reboot

Various things the shutdown scripts try to do will fail because of the held RTNL lock. in the end the script dies and the machine does not reboot.

1. ethtool -p is only used by root to identify interfaces, so in practice this is not a real problem.

2. ethtool -p is interruptible, and the reboot process sends a SIGTERM to all processes.

#5 lore raw
Quoted 12 lines
Quoted 11 lines

Doesn't this mean that ethtool -p will hold the RTNL lock forever? Is this a good idea?

For example on the Red Hat machine I have here if you do:

ethtool -p eth2 100000 &
reboot

Various things the shutdown scripts try to do will fail because of the held RTNL lock. in the end the script dies and the machine does not reboot.

Quoted 5 lines

1. ethtool -p is only used by root to identify interfaces, so in practice this is not a real problem.

2. ethtool -p is interruptible, and the reboot process sends a SIGTERM to all processes.

The simple use-case of running ethtool -p eth0 10000 on an ssh console and them going to the rack and pressing the power button fails.

It seems like the shutdown script dies a long way before it usually kills all the processes.

Bringing down NFS, SNMP and several other services fails. Then things die for being blocked more then 120 seconds and the system is stuck.