netdev
[Top] [All Lists]

Re: skge: reboot on sysfs resource0 access

To: Stephen Hemminger <shemminger@xxxxxxxx>
Subject: Re: skge: reboot on sysfs resource0 access
From: Bernd Schubert <bernd.schubert@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 9 Sep 2005 20:09:40 +0200
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20050909110153.5a2e2e90@xxxxxxxxxxxxxxxxxxxxx>
References: <200509091938.18079.bernd.schubert@xxxxxxxxxxxxxxxxxxxxx> <20050909110153.5a2e2e90@xxxxxxxxxxxxxxxxxxxxx>
Reply-to: bernd-schubert@xxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: KMail/1.7.2
On Friday 09 September 2005 20:01, you wrote:
> On Fri, 9 Sep 2005 19:38:17 +0200
>
> Bernd Schubert <bernd.schubert@xxxxxxxxxxxxxxxxxxxxx> wrote:
> > Hello,
> >
> > today we tried 2.6.13 on our server and also tried to use the skge
> > driver. Well, in principle it works fine, until I became curious about
> > the sysfs values. Stupid me, I was using the midnight commander to read
> > the values. When I opened
> > "/sys/bus/pci/drivers/skge/0000:01:01.0/resource0", the system
> > immediately rebooted. After the reboot we tested using cat to the
> > resource0 file, which gave an input/output error. Using again the mc, the
> > system again immediately rebooted.
> > Well, I guess I better don't use the midnight commander in the future,
> > but somehow I think it shouldn't cause the system to reboot, should it?
> > Is the i/o error of cat supposed to happen?
>
> Don't do that!  resource0 is the pci space for the card and
> reading it directly accesses the memory mapped space. The
> register is sparse, and some places are unaccessable.
> Accessing non-existent memory will cause system to hang and if you
> are lucky a timeout and reboot.
>
> Sorry, this is not a driver bug.

Thanks, I better also won't read the resource values of the other pci-devices. 
And I think I will search for some documentation of sysfs to know in the 
future which values one should read and which not.

Thanks again,
        Bernd

-- 
Bernd Schubert
Physikalisch Chemisches Institut / Theoretische Chemie
Universität Heidelberg
INF 229
69120 Heidelberg
e-mail: bernd.schubert@xxxxxxxxxxxxxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>