From: "Mark A. Greer" <mgreer@mvista.com>
To: Andrew Klossner <andrew@cesa.opbu.xerox.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: machine checks with MPC107 and read_config?
Date: Tue, 13 Apr 2004 16:52:07 -0700 [thread overview]
Message-ID: <407C7D27.9000601@mvista.com> (raw)
In-Reply-To: <200404132052.i3DKqJx00738@apron.cesa.opbu.xerox.com>
Andrew Klossner wrote:
>I'm bringing up 2.6 on some embedded boards using G3/G4 CPUs and an
>MPC107. We've been running vxWorks on these boards for years and we
>know the chips pretty well.
>
>During startup, the first attempt to read the config space from an
>unpopulated devfn causes an oops: machine check.
>
Do you have the bridge's regs mapped into virtual memory? Use an
existing platform that uses the mpc107 like the sandpoint as an
example. Pay special attention to the use of the 'set_bat' and
'io_block_mapping' routines.
>Looking at arch/ppc/syslib/indirect_pci.c, I see the fundamental
>read-config operation, but I don't see it bracketed by writes to
>MPC107 registers to temporarily disable master-abort error enable.
>Specifically, I would expect bit 1 "PCI master-abort error enable" to
>be turned off in register 0xc0 "Error enabling register 1", then
>restored at the end of the routine, and I would expect to see a test
>of bit 13 "received master-abort" in register 0x06 "PCI status
>register" to see whether the config-space access succeeded.
>
You are correct. The mpc10x_common.c code is basic and more concerned
with getting the bridge to use the proper address map than anything
else. The level of detection and, presumably, handling just isn't
there. If you need it, I'm afraid you're going to have to implement it.
>Before I sidestep the code in mpc10x_common.c and indirect_pci.c, let
>me ask: does everybody else run with master-abort detection turned
>off?
>
Maybe the MAC guys worry about it but AFAIK, most other platforms don't.
> Doesn't that hurt your ability to find bad pointers into
>I/O space?
>
Maybe but you're probably going to notice other symptoms of bad I/O
space pointers anyway, so is it worth it?
> Or am I overlooking something here?
Maybe I am?
Mark
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
prev parent reply other threads:[~2004-04-13 23:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-13 20:52 machine checks with MPC107 and read_config? Andrew Klossner
2004-04-13 23:52 ` Mark A. Greer [this message]
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=407C7D27.9000601@mvista.com \
--to=mgreer@mvista.com \
--cc=andrew@cesa.opbu.xerox.com \
--cc=linuxppc-embedded@lists.linuxppc.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).