mii-tool support for gmac/sungem

5 messages, 3 authors, 2002-09-23 · open the first message on its own page

mii-tool support for gmac/sungem

From: Bastien Nocera <hadess@hadess.net>
Date: 2002-09-23 00:19:43

Hello,

I wanted to know if mii-tool was supposed to work with the gmac/sungem
card in the iBook2 laptops. I tried it out:

$ sudo mii-tool
SIOCGMIIPHY on 'eth0' failed: Operation not supported
SIOCGMIIPHY on 'eth1' failed: Operation not supported
no MII interfaces found

I see code for this ioctl in the kernel though in gem_ioctl
(drivers/net/sungem.c) and some messages that seem relevant in dmesg:

eth0: MII PHY ID: 4061e0 BCM 5221
eth0: switching to forced 100bt
eth0: switching to forced 10bt
etc.

Any ideas ?

Cheers

--
/Bastien Nocera
http://hadess.net

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: mii-tool support for gmac/sungem

From: "Benjamin Herrenschmidt" <benh@kernel.crashing.org>
Date: 2002-09-22 21:57:33

Rock, it works. Does ethtool work for every card for which the driver
has an MII interface ?
Except that on pmacs, the interface is powered down about 10 seconds
after you ifconfig it down. This is good for power management of
laptops obviously but means you won't be able to probe for the link
status at that point.

Worse (my fault), sungem in the official tree has a bug that will
cause it to still try to bang the HW if you use the mii ioctls
while the HW is down, thus causing machine check oops'es (that
is fixed in my tree, I still have to send the patch to DaveM)

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: mii-tool support for gmac/sungem

From: Jeff Garzik <hidden>
Date: 2002-09-23 03:22:07

Bastien Nocera wrote:
Hello,

I wanted to know if mii-tool was supposed to work with the gmac/sungem
card in the iBook2 laptops. I tried it out:

$ sudo mii-tool
SIOCGMIIPHY on 'eth0' failed: Operation not supported
SIOCGMIIPHY on 'eth1' failed: Operation not supported
no MII interfaces found

I see code for this ioctl in the kernel though in gem_ioctl
(drivers/net/sungem.c) and some messages that seem relevant in dmesg:

eth0: MII PHY ID: 4061e0 BCM 5221
eth0: switching to forced 100bt
eth0: switching to forced 10bt
etc.

Any ideas ?

use ethtool...

	Jeff


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: mii-tool support for gmac/sungem

From: Bastien Nocera <hadess@hadess.net>
Date: 2002-09-23 09:09:07

On Mon, 2002-09-23 at 04:22, Jeff Garzik wrote:
Bastien Nocera wrote:
quoted
Hello,

I wanted to know if mii-tool was supposed to work with the gmac/sungem
card in the iBook2 laptops. I tried it out:

$ sudo mii-tool
SIOCGMIIPHY on 'eth0' failed: Operation not supported
SIOCGMIIPHY on 'eth1' failed: Operation not supported
no MII interfaces found

I see code for this ioctl in the kernel though in gem_ioctl
(drivers/net/sungem.c) and some messages that seem relevant in dmesg:

eth0: MII PHY ID: 4061e0 BCM 5221
eth0: switching to forced 100bt
eth0: switching to forced 10bt
etc.

Any ideas ?

use ethtool...
Rock, it works. Does ethtool work for every card for which the driver
has an MII interface ?

Thanks

--
/Bastien Nocera
http://hadess.net


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: mii-tool support for gmac/sungem

From: Jeff Garzik <hidden>
Date: 2002-09-23 09:48:52

Bastien Nocera wrote:
On Mon, 2002-09-23 at 04:22, Jeff Garzik wrote:
quoted
Bastien Nocera wrote:
quoted
Hello,

I wanted to know if mii-tool was supposed to work with the gmac/sungem
card in the iBook2 laptops. I tried it out:

$ sudo mii-tool
SIOCGMIIPHY on 'eth0' failed: Operation not supported
SIOCGMIIPHY on 'eth1' failed: Operation not supported
no MII interfaces found

I see code for this ioctl in the kernel though in gem_ioctl
(drivers/net/sungem.c) and some messages that seem relevant in dmesg:

eth0: MII PHY ID: 4061e0 BCM 5221
eth0: switching to forced 100bt
eth0: switching to forced 10bt
etc.

Any ideas ?

use ethtool...

Rock, it works. Does ethtool work for every card for which the driver
has an MII interface ?

not yet... I still need to add fallback code to ethtool, that lets it
speak low-level MII [older drivers] as well as the newer ethtool [newer
drivers].

	Jeff


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help