All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH] sensors-detect: Skip "random" I/O port
Date: Mon, 18 Feb 2008 22:46:33 +0000	[thread overview]
Message-ID: <1203374793.6740.33.camel@pasglop> (raw)
In-Reply-To: <20080218223317.2142dc16@hyperion.delvare>


On Mon, 2008-02-18 at 22:33 +0100, Jean Delvare wrote:

> The idea is to skip "random" I/O port probing on PPC, as it won't find
> anything anyway and can cause the kernel to oops.

To be more precise, it can cause the chip to access random parts of the
address space that will result in machine checks or worse.

The fact that it oopses instead of SIGBUS is an unfortunate side effect
of those accesses being done by the kernel and not by userland, and not
being marked as recoverable in the exception tables. We could try to fix
-that- though it would still be fairly unreliable as that sort of
machine check tends to be asynchronous, and that wouldn't fix the
problem that on non-x86 arch, it's not uncommon to have completely
different bits of HW around those ports.

So I believe the only thing that should be allowed on powerpc is to
probe "known" areas, that is, places where you know there is something
to be found, typically via the device-tree provided by the platform or
the firmware.

> Christian, can you please test this patch and confirm that it solves
> your problem?
> 
> Ben, can you please comment on this patch? I'm not familiar with the
> PPC architecture at all so I'm not sure if I am looking for the right
> strings.

I think ppc and ppc64 are what you get.

Cheers,
Ben.



_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

  reply	other threads:[~2008-02-18 22:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-18 21:33 [lm-sensors] [PATCH] sensors-detect: Skip "random" I/O port probing Jean Delvare
2008-02-18 22:46 ` Benjamin Herrenschmidt [this message]
2008-02-20 19:07 ` [lm-sensors] [PATCH] sensors-detect: Skip "random" I/O port Jean Delvare
2008-02-21 10:02 ` Christian Krafft
2008-02-21 10:09 ` Jean Delvare
2008-02-21 22:49 ` Benjamin Herrenschmidt
2008-02-22  7:19 ` Jean Delvare
2008-02-22  7:21 ` Benjamin Herrenschmidt
2008-02-22  7:44 ` Jean Delvare
2008-02-22 10:18 ` Christian Krafft
2008-02-22 21:26 ` Benjamin Herrenschmidt
2008-02-22 22:22 ` [lm-sensors] [PATCH] sensors-detect: Skip "random" I/O Benjamin Herrenschmidt

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=1203374793.6740.33.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=lm-sensors@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.