The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* Question about ioremap and io_remap_page_range
@ 2001-09-27  6:04 舒国强
  2001-09-27  6:52 ` Ingo Molnar
  0 siblings, 1 reply; 7+ messages in thread
From: 舒国强 @ 2001-09-27  6:04 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="GB2312", Size: 952 bytes --]


 Here is some rather basic questions I want ask ,any reply or comment please
 CC to my emailbox,thank you very much.
 
 When I work with kernel 2.4.2 in Intel X86 , I use 
		
     VIRT_ADDR = ioremap(BUS_ADDR); to map a section of PCI memory, and
     X_ADDR = virt_to_phys(VIRT_ADDR);

  I think in x86 platform X_ADDR should equel with BUS_ADDR, but it turns to be
 NOT, can you explain ?

  In X86 platform ,Can I use return value of ioremap() as a memory pointer?


  I use io_remap_page_range(BUS_ADDR,,) in mmap() function,but the result is 
 that the memory I map is READ ONLY from user space,when I try to write to it,
 a "do_sw_pg. bogus page(XXXXXXXX)" appears. Can you explain to me?


  I know these questions are childish,but I need the answer urgently,thanks!


 George Shu
 

ý:.žË›±Êâmçë¢kaŠÉb²ßìzwm…ébïîžË›±Êâmébžìÿ‘êçz_âžØ^n‡r¡ö¦zË\x1aëh™¨è­Ú&£ûàz¿äz¹Þ—ú+€Ê+zf£¢·hšˆ§~†­†Ûiÿÿïêÿ‘êçz_è®\x0fæj:+v‰¨þ)ߣømšSåy«\x1e­æ¶\x17…\x01\x06­†ÛiÿÿðÃ\x0fí»\x1fè®\x0få’i\x7f

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-09-27 17:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-27  6:04 Question about ioremap and io_remap_page_range 舒国强
2001-09-27  6:52 ` Ingo Molnar
2001-09-27  8:03   ` Armin Schindler
2001-09-27  8:14     ` David S. Miller
2001-09-27  8:16     ` Russell King
2001-09-27 14:33   ` Jonathan Corbet
2001-09-27 17:42     ` Jonathan Lundell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox