From: Anish Bhatt <anish@cc.gatech.edu>
To: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: ioremap failing in linux guest
Date: Thu, 09 Oct 2008 12:50:07 -0400 [thread overview]
Message-ID: <48EE363F.2070102@cc.gatech.edu> (raw)
In-Reply-To: <48ED39C8.7010802@goop.org>
The driver for the network processor that I am using does an ioremap
call to map memory previously reserved using the mem & memap kernel
parameters. for eg. if I reserve memory using memmap=384M$512M, it is
calling ioremap(384,512) (with appropriate conversion to bytes) and
later using the returned address to setup its queues.
-Anish
Jeremy Fitzhardinge wrote:
> Anish Bhatt wrote:
>> Is there an API for converting pseudophysical addresses to machine
>> addresses or possibly sample code somewhere ?
>
> What are you trying to achieve? ioremap is only valid to use on
> device memory anyway, so you shouldn't be in a position to use it
> unless you've already got machine addresses in hand (and they're going
> to be machine addresses with no existing pfn translation).
>
> J
--
As long as the music's loud enough, we won't hear the world falling apart.
next prev parent reply other threads:[~2008-10-09 16:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-07 23:23 ioremap failing in linux guest Anish Bhatt
2008-10-08 7:15 ` Keir Fraser
2008-10-08 22:42 ` Anish Bhatt
2008-10-08 22:52 ` Jeremy Fitzhardinge
2008-10-09 16:50 ` Anish Bhatt [this message]
2008-10-09 17:02 ` Keir Fraser
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=48EE363F.2070102@cc.gatech.edu \
--to=anish@cc.gatech.edu \
--cc=jeremy@goop.org \
--cc=xen-devel@lists.xensource.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.