* mii-tool support for gmac/sungem
@ 2002-09-23 0:19 Bastien Nocera
2002-09-23 3:22 ` Jeff Garzik
0 siblings, 1 reply; 5+ messages in thread
From: Bastien Nocera @ 2002-09-23 0:19 UTC (permalink / raw)
To: linuxppc-dev@lists.linuxppc.org
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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mii-tool support for gmac/sungem
2002-09-23 0:19 mii-tool support for gmac/sungem Bastien Nocera
@ 2002-09-23 3:22 ` Jeff Garzik
2002-09-23 9:09 ` Bastien Nocera
0 siblings, 1 reply; 5+ messages in thread
From: Jeff Garzik @ 2002-09-23 3:22 UTC (permalink / raw)
To: Bastien Nocera; +Cc: linuxppc-dev@lists.linuxppc.org
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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mii-tool support for gmac/sungem
2002-09-23 3:22 ` Jeff Garzik
@ 2002-09-23 9:09 ` Bastien Nocera
2002-09-22 21:57 ` Benjamin Herrenschmidt
2002-09-23 9:48 ` Jeff Garzik
0 siblings, 2 replies; 5+ messages in thread
From: Bastien Nocera @ 2002-09-23 9:09 UTC (permalink / raw)
To: Jeff Garzik; +Cc: linuxppc-dev@lists.linuxppc.org
On Mon, 2002-09-23 at 04:22, Jeff Garzik wrote:
>
> 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...
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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mii-tool support for gmac/sungem
2002-09-23 9:09 ` Bastien Nocera
@ 2002-09-22 21:57 ` Benjamin Herrenschmidt
2002-09-23 9:48 ` Jeff Garzik
1 sibling, 0 replies; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2002-09-22 21:57 UTC (permalink / raw)
To: Bastien Nocera, Jeff Garzik; +Cc: linuxppc-dev
>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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mii-tool support for gmac/sungem
2002-09-23 9:09 ` Bastien Nocera
2002-09-22 21:57 ` Benjamin Herrenschmidt
@ 2002-09-23 9:48 ` Jeff Garzik
1 sibling, 0 replies; 5+ messages in thread
From: Jeff Garzik @ 2002-09-23 9:48 UTC (permalink / raw)
To: Bastien Nocera; +Cc: linuxppc-dev@lists.linuxppc.org
Bastien Nocera wrote:
> On Mon, 2002-09-23 at 04:22, Jeff Garzik wrote:
>
>>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...
>
>
> 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/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-09-23 9:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-23 0:19 mii-tool support for gmac/sungem Bastien Nocera
2002-09-23 3:22 ` Jeff Garzik
2002-09-23 9:09 ` Bastien Nocera
2002-09-22 21:57 ` Benjamin Herrenschmidt
2002-09-23 9:48 ` Jeff Garzik
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).