LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-17-2012, 12:41 PM   #1
pvenk
LQ Newbie
 
Registered: Jul 2012
Posts: 1

Rep: Reputation: Disabled
“nopage” method for ISA vs PCI


This is with reference to LDD3 ch. 15, section "Mapping memory with nopage". I am having trouble understanding the third paragraph on page 429. It says:


Quote:
Note that this implementation works for ISA memory regions but not for those on the PCI bus. PCI memory is mapped above the highest system memory, and there are no entries in the system memory map for those addresses. Because there is no struct page to return a pointer to, nopage cannot be used in these situations; you must use remap_pfn_range instead.
Questions:
1. Why would there be NO struct pages for PCI addresses? Aren't these addresses still within the processor address range (i.e less than 4 GB)?

2. Referring to @gby's answer for a separate question <http://stackoverflow.com/q/11496999/232955> from the same chapter, one explanation is that the "simple" module is useful only for mapping RAM areas to user virtual addresses. If so, how can one explain the invocation of the nopage method at all? By definition, arent all pages of main memory always available in the main memory? How can a page fault occur?

I would really appreciate any inputs/responses on this.

Last edited by pvenk; 07-17-2012 at 12:47 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ancient times: PCI vs ISA, construction. stf92 General 15 07-28-2012 01:02 AM
.nopage 2.6.16 --> 2.6.35 pollo_61 Linux - Kernel 1 09-29-2010 04:11 PM
Sound card- PCI, ISA bus, ISA PnP -what's the difference? Noob01 Linux - Newbie 7 12-16-2008 08:47 PM
Slots, it isnt PCI, AGP, PCI-E or ISA... what is it ? qwijibow Linux - Hardware 5 01-18-2005 07:00 AM
ISA or PCI? Typhonian Linux - Hardware 1 09-02-2003 07:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration