Re: [patch 7/7] x86 PAT: update documentation to cover pgprot and remap_pfn related changes - v3

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Randy Dunlap
Date: Thursday, December 18, 2008 - 2:13 pm

venkatesh.pallipadi@intel.com wrote:

+Advanced APIs for drivers
+-------------------------
+A. Exporting pages to user with remap_pfn_range, io_remap_pfn_range,

                    to users
or                  to userspace

+vm_insert_pfn
+
+Drivers wanting to export some pages to userspace, do it by using mmap

Drop comma.

+interface and a combination of
+1) pgprot_noncached()
+2) io_remap_pfn_range() or remap_pfn_range() or vm_insert_pfn()
+
+With pat support, a new API pgprot_writecombine is being added. So, driver can

s/pat/PAT/
s/driver/drivers/ or s/driver/a driver/

+continue to use the above sequence, with either pgprot_noncached() or
+pgprot_writecombine() in step 1, followed by step 2.
+
+In addition, step 2 internally tracks the region as UC or WC in memtype
+list in order to ensure no conflicting mapping.
+
+Note that this set of APIs only work with IO (non RAM) regions. If driver

                                 works with IO (non-RAM) regions. If a driver

+wants to export RAM region, it has to do set_memory_uc() or set_memory_wc()

          export a RAM region,

+as step 0 above and also track the usage of those pages and use set_memory_wb()
+before the page is freed to free pool.


-- 
~Randy
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 0/7] x86 PAT: track pfnmap mappings with remap_pfn_ ..., venkatesh.pallipadi, (Thu Dec 18, 12:41 pm)
[patch 1/7] x86 PAT: store vm_pgoff for all linear_over_vm ..., venkatesh.pallipadi, (Thu Dec 18, 12:41 pm)
[patch 2/7] x86 PAT: Add follow_pfnmp_pte routine to help ..., venkatesh.pallipadi, (Thu Dec 18, 12:41 pm)
[patch 3/7] x86 PAT: hooks in generic vm code to help arch ..., venkatesh.pallipadi, (Thu Dec 18, 12:41 pm)
[patch 4/7] x86 PAT: Implement track/untrack of pfnmap reg ..., venkatesh.pallipadi, (Thu Dec 18, 12:41 pm)
[patch 5/7] x86 PAT: change pgprot_noncached to uc_minus i ..., venkatesh.pallipadi, (Thu Dec 18, 12:41 pm)
[patch 6/7] x86 PAT: add pgprot_writecombine() interface f ..., venkatesh.pallipadi, (Thu Dec 18, 12:41 pm)
[patch 7/7] x86 PAT: update documentation to cover pgprot ..., venkatesh.pallipadi, (Thu Dec 18, 12:41 pm)
Re: [patch 7/7] x86 PAT: update documentation to cover pgp ..., Randy Dunlap, (Thu Dec 18, 2:13 pm)
Re: [patch 7/7] x86 PAT: update documentation to cover pgp ..., Pallipadi, Venkatesh, (Thu Dec 18, 2:49 pm)
Re: [patch 4/7] x86 PAT: Implement track/untrack of pfnmap ..., Pallipadi, Venkatesh, (Thu Dec 18, 2:53 pm)
RE: [patch 7/7] x86 PAT: update documentation to cover pgp ..., Pallipadi, Venkatesh, (Thu Dec 18, 3:03 pm)
Re: [patch 1/7] x86 PAT: store vm_pgoff for all linear_ove ..., Pallipadi, Venkatesh, (Thu Dec 18, 3:10 pm)
Re: [patch 2/7] x86 PAT: Add follow_pfnmp_pte routine to h ..., Pallipadi, Venkatesh, (Thu Dec 18, 3:15 pm)
Re: [patch 3/7] x86 PAT: hooks in generic vm code to help ..., Pallipadi, Venkatesh, (Thu Dec 18, 3:23 pm)