All of lore.kernel.org
 help / color / mirror / Atom feed
From: Himanshu Raj <rhim@cc.gatech.edu>
To: xen-devel@lists.xensource.com
Subject: Question regarding behavior of virt_to_bus ....
Date: Tue, 04 Oct 2005 03:56:46 -0400	[thread overview]
Message-ID: <434235BE.4070908@cc.gatech.edu> (raw)

Hi Folks,

I need some large chunk of physical memory, so I allocate it early using 
alloc_bootmem_low_pages and use it later (akin to bigphysarea patch). 
The trouble I am having is the following. Suppose the virtual address 
for the memory area is 0xc14d6000. After xen_create_contiguous_region 
call, I do a virt_to_bus and the bus address comes out to be 0x18000000. 
So far so good. However, later when I try to use this memory in a device 
driver, the call to virt_to_bus returns 0x14d6000. This result is 
baffling me, since that's what it would look like in a normal 32-bit 
i386 world, and not in xenified world.

Am I doing something stupid, or is there some technicality of memory 
subsystem that I don't get. Ofcourse, if I just use pci_alloc_consistent 
(for a small buffer), everything works fine, since there is no bootmem 
related contortion involved.

I will highly appreciate any input on this.

--Himanshu
-------------------------------------------------------------------------
Himanshu Raj
PhD Student, GaTech (www.cc.gatech.edu/~rhim)
I prefer to receive attachments in an open, non-proprietary format.
-------------------------------------------------------------------------

             reply	other threads:[~2005-10-04  7:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-04  7:56 Himanshu Raj [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-10-04 10:10 Question regarding behavior of virt_to_bus Ian Pratt
2005-10-04 14:58 ` Himanshu Raj

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=434235BE.4070908@cc.gatech.edu \
    --to=rhim@cc.gatech.edu \
    --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.