From: Bernd Schubert <bernd-schubert@gmx.de>
To: netdev@oss.sgi.com
Cc: Stephen Hemminger <shemminger@osdl.org>
Subject: skge: reboot on sysfs resource0 access
Date: Fri, 9 Sep 2005 19:34:50 +0200 [thread overview]
Message-ID: <200509091934.51301.bernd-schubert@gmx.de> (raw)
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?
Maybe it helps, here is a strace of mc's open for a normal file:
open("/home/bernd/notes", O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 6
fstat64(6, {st_mode=S_IFREG|0644, st_size=96, ...}) = 0
fcntl64(102, F_GETFL) = -1 EBADF (Bad file descriptor)
read(6, "http", 4) = 4
mmap2(NULL, 96, PROT_READ, MAP_SHARED, 6, 0) = 0x402fe000
select(5, [4], NULL, NULL, {0, 0}) = 0 (Timeout)
select(5, [4], NULL, NULL, {0, 0}) = 0 (Timeout)
write(1, "\33[1;1H\33[m\17\33[30m\33[46mFile: notes "..., 4019) = 4019
Thanks,
Bernd
--
Bernd Schubert
Physikalisch Chemisches Institut / Theoretische Chemie
Universität Heidelberg
INF 229
69120 Heidelberg
e-mail: bernd.schubert@pci.uni-heidelberg.de
next reply other threads:[~2005-09-09 17:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-09 17:34 Bernd Schubert [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-09-09 17:38 skge: reboot on sysfs resource0 access Bernd Schubert
2005-09-09 18:01 ` Stephen Hemminger
2005-09-09 18:09 ` Bernd Schubert
2005-09-09 18:21 ` Ben Greear
2005-09-12 11:01 ` Bernd Schubert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200509091934.51301.bernd-schubert@gmx.de \
--to=bernd-schubert@gmx.de \
--cc=netdev@oss.sgi.com \
--cc=shemminger@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).