From: Matt Porter <mporter@kernel.crashing.org>
To: Ed Goforth <egoforth@gmail.com>
Cc: linuxppc-embedded <linuxppc-embedded@ozlabs.org>
Subject: Re: mmap on 440gx
Date: Fri, 17 Jun 2005 00:24:30 -0700 [thread overview]
Message-ID: <20050617002430.A7742@cox.net> (raw)
In-Reply-To: <75b39f0105061622421d81bc92@mail.gmail.com>; from egoforth@gmail.com on Fri, Jun 17, 2005 at 01:42:07AM -0400
On Fri, Jun 17, 2005 at 01:42:07AM -0400, Ed Goforth wrote:
> On 6/17/05, Matt Porter <mporter@kernel.crashing.org> wrote:
> > On Thu, Jun 16, 2005 at 11:47:22PM -0400, Ed Goforth wrote:
> > > On 6/16/05, Matt Porter <mporter@kernel.crashing.org> wrote:
> > > > On Thu, Jun 16, 2005 at 05:33:44PM -0400, Ed Goforth wrote:
> > >
> > > Thanks for taking the time to reply.
> > >
> > > > > I've been struggling with implementing mmap on a 440gx-based custom
> > > > > board. I have been able to use ioremap(), but we really need a mmap()
> > > > > for our software. The kernel is 2.4.18 (TimeSys 4.0).
> > > >
> >
> >
> > > For what it's worth, __pa(0x5000_0000) returns 0x9000_0000.
> >
> > Sure, you just asked it to subtract KERNELBASE from a physical address.
> > Don't use __pa() in drivers. That's expected behavior. Why are
> > you doing that?
>
> Desperation.
Heh, I like that. :)
<snip>
> > Put some debug statements throughout fixup_bigphys_addr() to see
> > what's going on.
>
> My include/asm/mmu.h has it defined as:
> #ifndef CONFIG_440
> #include <asm-generic/mmu.h>
> #else
> typedef unsigned long long phys_addr_t;
> #define fixup_bigphys_addr(addr, size) (addr)
> #endif
>
> I see that in later 2.4 kernels and in mainline 2.6 it is implemented
> as an actual working routine. Perhaps that explains it all. The
> ioremap() in my tree implements the fixup code inline, which would
> explain why it works, right?
It sure does. That code is 100% wrong. Just merge in mainline 2.4
stuff and you should be golden.
-Matt
prev parent reply other threads:[~2005-06-17 7:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-16 21:33 mmap on 440gx Ed Goforth
2005-06-16 22:55 ` Matt Porter
2005-06-17 3:47 ` Ed Goforth
2005-06-17 4:41 ` Matt Porter
2005-06-17 5:42 ` Ed Goforth
2005-06-17 7:24 ` Matt Porter [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=20050617002430.A7742@cox.net \
--to=mporter@kernel.crashing.org \
--cc=egoforth@gmail.com \
--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).