From: Paul Mackerras <paulus@cs.anu.edu.au>
To: paubert@iram.es
Cc: bh40@calva.net, linuxppc-dev@lists.linuxppc.org
Subject: Re: Blue G3 and machine check
Date: Thu, 25 Mar 1999 10:12:24 +1100 [thread overview]
Message-ID: <199903242312.KAA31937@tango.anu.edu.au> (raw)
In-Reply-To: <Pine.HPP.3.96.990324094215.1078L-100000@gra-ux1.iram.es> (message from Gabriel Paubert on Wed, 24 Mar 1999 10:30:07 +0100 (MET))
Gabriel Paubert <paubert@iram.es> wrote:
> Note that you probably only need to protect the PCI config space accesses,
If we are getting machine checks on config space accesses, then it is
truly borken. Config spaces accesses in PCI are supposed to return ~0
if there is no device there, precisely so that you can safely probe to
see whether the device is there.
Did the original poster say whether the machine checks were on config
space accesses or I/O or memory space accesses? It's common enough
for drivers written for intel linux to go probing I/O ports to try to
find devices to talk to.
> for example by adding a handler to the actual accesses with code looking
> like (memop may be l[bhw]z, st[bhw], l[hw]brx, st[hw]brx):
>
> sync
> isync
> 1: memop reg,addr
> 2: sync
> 3: isync
> 4:
>
> (I think that at least one of the isync is probably unnecessary and
> perhaps both, but I'd rather choose the safe solution for this).
> in the exception table (replace 5f by 4b for the stores):
> .long 1b,5f
> .long 2b,5f
> .long 3b,5f
>
> and in the fixup section (for the loads only):
> 5: li reg,-1
> b 4b
I think this is not sufficient because you are not generally
guaranteed anything about the state of the registers after a machine
check. AFAICS, we would have to save the contents of all the
registers (at least all of the callee-saved ones) and restore them
from memory if a machine check occurs. We could use setjmp/longjmp to
do this. And yes, we do need the sync after the access, but I don't
see why we would need the isync.
Paul.
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
next prev parent reply other threads:[~1999-03-24 23:12 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-14 13:35 Blue G3 and machine check Benjamin Herrenschmidt
1999-03-15 16:42 ` Ryuichi Oikawa
1999-03-15 17:09 ` Geert Uytterhoeven
1999-03-24 9:30 ` Gabriel Paubert
1999-03-24 23:12 ` Paul Mackerras [this message]
1999-03-25 11:20 ` Gabriel Paubert
1999-03-25 16:46 ` Apple Job Posting and Good News for LinuxPPC developers Kevin B. Hendricks
1999-03-25 19:12 ` David Edelsohn
1999-03-26 11:31 ` Gabriel Paubert
1999-03-26 16:13 ` David Edelsohn
1999-03-27 6:27 ` Guy Sotomayor
1999-03-27 20:44 ` David Edelsohn
1999-04-02 12:11 ` Holger Bettag
1999-04-02 17:11 ` David Edelsohn
1999-04-02 22:19 ` Douglas Godfrey
1999-04-03 17:42 ` Holger Bettag
1999-04-05 16:11 ` Gabriel Paubert
1999-04-05 16:06 ` Gabriel Paubert
1999-04-06 5:53 ` Douglas Godfrey
1999-03-26 6:08 ` Nathan Hurst
1999-03-26 13:51 ` sean o'malley
1999-03-28 5:08 ` Cort Dougan
1999-03-26 20:33 ` N.G. Temme
1999-03-29 23:44 ` Blue G3 and machine check Paul Mackerras
1999-03-30 11:41 ` Gabriel Paubert
1999-03-31 16:20 ` Ryuichi Oikawa
1999-03-31 18:39 ` Gabriel Paubert
1999-04-05 16:36 ` Ryuichi Oikawa
1999-04-05 17:11 ` Gabriel Paubert
1999-04-04 1:17 ` Joel Klecker
1999-04-09 5:58 ` Joel Klecker
1999-04-09 16:12 ` Ryuichi Oikawa
1999-03-25 12:10 ` 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=199903242312.KAA31937@tango.anu.edu.au \
--to=paulus@cs.anu.edu.au \
--cc=Paul.Mackerras@cs.anu.edu.au \
--cc=bh40@calva.net \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=paubert@iram.es \
/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).