Subject: Re: 3.0.0rc6: ethtool not working without a cable

From: Arkadiusz Miskiewicz <[email-masked]>
Date: Thu, 7 Jul 2011 18:47:14 +0200

On Wednesday 06 of July 2011, Arkadiusz Miskiewicz wrote:
> On Wednesday 06 of July 2011, Brandeburg, Jesse wrote:
> > On Wed, 2011-07-06 at 08:26 -0700, Ben Hutchings wrote:
> > > On Wed, 2011-07-06 at 16:53 +0200, Arkadiusz Miskiewicz wrote:
> > > > On Wednesday 06 of July 2011, Ben Hutchings wrote:
> > > > > On Wed, 2011-07-06 at 13:38 +0200, Arkadiusz Miskiewicz wrote:
> > > > > > 3.0.0rc6, thinkpad t400 notebook.
> > > > > > 
> > > > > > If there is no cable then ethtool reports no device. It wasn't
> > > > > > that before AFAIK.
> > > > > > 
> > > > > > ethtool version 2.6.36
> > 
> > snip
> > 
> > > Then the only other explanation I can think of is that the driver has
> > > 'detached' the device due to some kind of error.  The ethtool core does
> > > have a check for that.
> > 
> > could it be that aspm is enabled
> 
> I have CONFIG_PCIEASPM=y
> 
> > or that you've enabled runtime power
> > management?
> 
> In e1000e? no (unless it's default somehow).

And if this is normal behaviour (when apsm is enabled) then maybe ethtool 
could disable apsm/power management for device for time of querying?

-- 
Arkadiusz Miśkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/