Skip to contentSkip to conversation

help regarding ioremap_pt ....

DISCUSSION Himanshu Raj 2 participants 3 messages Dec 23, 2005

lore
Share & tools
lore
#0 lore raw

Hi Folks,

I see a 4MB area being allocated paging_init for ioremap (that amounts to one page of l2 entries on a 32-bit x86). However I don't see it being used anywhere. Could someone point me to the place where it is being used.

Reason I ask is because I need to map certain physical memory in "xen", some device register's available in memory space. As I see, there is no direct ioremap support in xen (atleast the comment says so!).

Many thanks for your help.

Best regards,
Himanshu

Signature · 5 lines
-------------------------------------------------------------------------
Himanshu Raj
PhD Student, GaTech (www.cc.gatech.edu/~rhim)
I prefer to receive attachments in an open, non-proprietary format.
-------------------------------------------------------------------------
#1 lore raw
Quoted 7 lines · Himanshu Raj

I see a 4MB area being allocated paging_init for ioremap (that amounts to one page of l2 entries on a 32-bit x86). However I don't see it being used anywhere. Could someone point me to the place where it is being used.

Reason I ask is because I need to map certain physical memory in "xen", some device register's available in memory space. As I see, there is no direct ioremap support in xen (atleast the comment says so!).

fixmap uses that area, but I think that's now the only thing that uses that area in Xen. We removed dynamic ioremap when we removed device drivers from Xen.

-- Keir

#2 lore raw

Thanks for your response Keir. I do have to put some device specific code in Xen. So for that, I will need to "hand build" the PTE and put it in the ioremap area. Does it make any sense?

Best regards,
Himanshu

Quoted 20 lines · Keir Fraser
Quoted 11 lines · Himanshu Raj

I see a 4MB area being allocated paging_init for ioremap (that amounts to one
page of l2 entries on a 32-bit x86). However I don't see it being used anywhere.
Could someone point me to the place where it is being used.

Reason I ask is because I need to map certain physical memory in "xen", some
device register's available in memory space. As I see, there is no direct
ioremap support in xen (atleast the comment says so!).

fixmap uses that area, but I think that's now the only thing that uses that area in Xen. We removed dynamic ioremap when we removed device drivers from Xen.

-- Keir

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