From: "Dave Cogley" <dcogley@uslinc.com>
To: "'Josh Boyer'" <jwboyer@jdub.homelinux.org>
Cc: linuxppc-embedded@ozlabs.org
Subject: RE: EBC peripheral, access causing Machine Check
Date: Tue, 25 Sep 2007 09:44:59 -0700 [thread overview]
Message-ID: <000601c7ff93$6b2f0ef0$9601a8c0@DCOGLEYNEW> (raw)
In-Reply-To: <20070924184210.484d39b3@vader.jdub.homelinux.org>
[-- Attachment #1: Type: text/plain, Size: 1781 bytes --]
Yes I thought it might be a problem with the TLB. Where does the TLB
initialization take place in the Linux kernel? I am able to access any
other peripherals on the chip as there TLB entries appear to be properly
allocated. I am remapping the physical address for all peripherals that I am
working with. I have attached the driver code for reference.
Dave
-----Original Message-----
From: Josh Boyer [mailto:jwboyer@jdub.homelinux.org]
Sent: Monday, September 24, 2007 4:42 PM
To: Dave Cogley
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: EBC peripheral, access causing Machine Check
On Mon, 24 Sep 2007 12:19:01 -0700
"Dave Cogley" <dcogley@uslinc.com> wrote:
> Good Afternoon,
>
>
>
> I am using an AMCC 440EPx processor with an FPGA peripheral attached to
the
> EBC. I am doing the entire bank configuration in the u-boot boot loader
> before Linux is loaded. I can directly read and write registers using
> memory read and write (md, nm) within area 0xC0000000 to 0xC000FFFF direct
> memory I/O within the context of u-boot without any faults. When I
attempt
> to access any register in area 0xC000000 within the context of my Linux
> device driver I get a Machine Check fault (attached text) which appears to
> be an access permission violation. I am currently running the DENX ELDK
> 2.6.19.2 platform that was specific to the "Sequoia" platform.
>
>
>
> I have configured the EBC access permissions and control resisters as
> follows for bank 1:
>
>
>
> PB1CR: 0xC003C000
>
> PB1AP: 0x80040380
You need proper TLB entries set up before you can access things. Linux
discards the MMU settings that U-Boot does. So your driver needs to call
ioremap on the physical address.
Other than that, we can't help you much without your driver code.
josh
[-- Attachment #2: banjodecoder.tar.gz --]
[-- Type: application/x-gzip, Size: 4159 bytes --]
prev parent reply other threads:[~2007-09-25 16:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-24 19:19 EBC peripheral, access causing Machine Check Dave Cogley
2007-09-24 23:42 ` Josh Boyer
2007-09-25 16:44 ` Dave Cogley [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='000601c7ff93$6b2f0ef0$9601a8c0@DCOGLEYNEW' \
--to=dcogley@uslinc.com \
--cc=jwboyer@jdub.homelinux.org \
--cc=linuxppc-embedded@ozlabs.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).