linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: stevenm86@gmail.com (Steve Moskovchenko)
To: linux-arm-kernel@lists.infradead.org
Subject: Footbridge / 21285 phsical/virtual address selection patch
Date: Mon, 28 Dec 2009 17:26:59 -0500	[thread overview]
Message-ID: <1262039219.28196.124.camel@localhost> (raw)

Hello
        
I've got my hands on a weird-ish ARM board with an SA-110 and a 21285
footbridge. It is NOT the EBSA285 (it actually used to be a Quantum
netdisk NAS) but it is close and I have the kernel configured in
"EBSA285 Host" mode because it is close enough. (I had to comment out a
beq instruction in the platform checker to get the kernel to boot on
this board).
        
Well...
        
I've run into some issues. The MMU code seems broken somewhere, and the
kernel only works for me in NOMMU mode. However, in the (MM)I/O address
mapping for the 21285 driver, the footbridge code completely ignores
CONFIG_MMU and has all the I/O addresses #defined as if they were all
virtual. This is obviously not going to work if the MMU is disabled and
all the addresses will be wrong.
        
I've attached a patch (-p0) that adds an #ifdef to select between
physical and virtual addresses for the 21285 chip, depending on
CONFIG_MMU. I do not have a real EBSA285 to test this on, but this board
does have a real 21285 and it is working for me. 
        
I've run into some additional problems, specifically with the uart
driver, but I will prepare some of those patches in a bit.
        
What do you guys think?
        
Thanks
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: footbridge-nommu.patch
Type: text/x-patch
Size: 1793 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20091228/4d5417d8/attachment.bin>

             reply	other threads:[~2009-12-28 22:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-28 22:26 Steve Moskovchenko [this message]
2010-01-01 20:24 ` Footbridge / 21285 phsical/virtual address selection patch Russell King - ARM Linux

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=1262039219.28196.124.camel@localhost \
    --to=stevenm86@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.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).