From: linas@austin.ibm.com (Linas Vepstas)
To: linux-hotplug@vger.kernel.org
Subject: Hardware error reporting [was Re: PCI Error reporting]
Date: Tue, 03 Oct 2006 15:26:36 +0000 [thread overview]
Message-ID: <20061003152636.GA4381@austin.ibm.com> (raw)
Hi John,
On Tue, Oct 03, 2006 at 02:28:45PM +0100, johnflux@gmail.com wrote:
> Hi,
> I am the maintainer of the KDE 'task manager' equivalent (kde system
> guard). I was discussing with someone in the UK about telling the user
> about PCI bus errors. The idea would be to inform the user that their
> soundcard etc is no longer working etc.
If the sound card is no longer working due to a PCI bus error, and
the sound card device driver did not take appropriate steps to try
to recover from that error, then its a sound card device driver bug,
and should be treated as such.
This is not limited to PCI errors; any kind of hardware error on
the card needs to be auto-recovered by the driver. Both ethernet cards
and SCSI cards do this as a matter of course. e.g. the e100/e1000
intel ethernet will print messages about "watchdog timeout" to
/var/log/syslog. The scsi generic layer does an escalating progression
of device resets, bus resets and host resets. This is usualy
enough to cure just about any error. This should also be mostly
invisible to user-space: i.e. something burped, but was OK after
that.
If a device driver has taken every step possible to recover, and
still cannot, then it will ... I dunno. Good question.
> From userspace, how can I get this sort of information?
I don't know that the Linux kernel has any standardized way to
report back to user-space that some device is permanently,
unrecoverably dead. Usually, there's a flurry of messages
to /var/log/syslog. I suppose this stuff should be reported
somehow.
Anyway, userspace gets messages from the kernel via "hald"
(hardware abstraction layer daemon) and the sbus(??)I forget
what its called, the system message bus. These two are plugged
into the udev infrastructure. I'm thinking one place to
ask/discuss this question is on the udev mailing list.
--linas
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next reply other threads:[~2006-10-03 15:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-03 15:26 Linas Vepstas [this message]
2006-10-03 15:57 ` Hardware error reporting [was Re: PCI Error reporting] Kay Sievers
2006-10-03 16:01 ` Linas Vepstas
2006-10-03 16:26 ` Linas Vepstas
2006-10-03 21:52 ` Kay Sievers
2006-10-03 23:00 ` Greg KH
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=20061003152636.GA4381@austin.ibm.com \
--to=linas@austin.ibm.com \
--cc=linux-hotplug@vger.kernel.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).