From: William Lee Irwin III <wli@holomorphy.com>
To: Matt Porter <mporter@kernel.crashing.org>
Cc: Glenn Burkhardt <glenn@aoi-industries.com>, linux-kernel@vger.kernel.org
Subject: Re: remap_page_range64() for PPC
Date: Fri, 22 Oct 2004 07:53:21 -0700 [thread overview]
Message-ID: <20041022145321.GV17038@holomorphy.com> (raw)
In-Reply-To: <20041015233226.B1500@home.com>
On Fri, Oct 15, 2004 at 11:46:42PM -0400, Glenn Burkhardt wrote:
>> I'm writing an application to run on a PowerPC with a 2.4 embedded
>> Linux kernel, and I want to make device registers for our custom
>> hardware accessable from user space with mmap(). The physical address
>> of the device is above the 4gb boundary (we attach to the 440's
>> external peripheral bus), so a standard 'remap_page_range()' call
>> won't work.
On Fri, Oct 15, 2004 at 11:32:26PM -0700, Matt Porter wrote:
> This has come up several times on the ppc lists (but since we still
> don't have archives back, nobody can search anyway). I dropped
> 2.4 and 2.5 patches in source.mvista.com:/pub/linuxppc/ a long
> time ago. You just need to update your board-specific fixup routine
> in that version or just make a copy or remap_page_range() into your
> driver and use u64 for the phys address.
> The real fix, of course, is in the -mm tree as remap_pfn_range(),
> I plan to merge 440 io_remap_page_range() support on top of that
> call when it goes into mainline. But that doesn't help you with
> 2.4. :)
It has gone mainline. Glenn Burkhardt's troubles should now be fixed
for all time, unless io_remap_page_range() itself is in question. I'd
like to carry out a similar conversion on io_remap_page_range() so that
it can have similar safety against physical address overflow. There is
one 32-bit architecture where all IO memory is beyond the 4GB boundary,
and a number where at least some crucial portions of it are. This would
then decide how many arguments io_remap_page_range() takes. There are
some difficulties in this (particularly for the architecture[s] it
would benefit most) so I've been punting on this issue thus far.
-- wli
prev parent reply other threads:[~2004-10-22 14:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-16 3:46 remap_page_range64() for PPC Glenn Burkhardt
2004-10-16 5:07 ` Benjamin Herrenschmidt
2004-10-16 6:32 ` Matt Porter
2004-10-17 13:17 ` Glenn Burkhardt
2004-10-22 14:53 ` William Lee Irwin III [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=20041022145321.GV17038@holomorphy.com \
--to=wli@holomorphy.com \
--cc=glenn@aoi-industries.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mporter@kernel.crashing.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