Messages in this thread | | | From | Jesse Barnes <> | Subject | Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl | Date | Thu, 13 Dec 2007 16:54:08 -0800 |
| |
On Thursday, December 13, 2007 3:55 pm venkatesh.pallipadi@intel.com wrote: > Forward port of coherent-mmap.patch and sysfs-bin-ioctl.patch to x86 tree. > > TBD: Do we need the ioctl interface to sysfs or get the type attribute > through a different sysfs file. And then actually specify the attribute > while doing pci_mmap_page_range ;-) > > And when this interface is in place, X server has to use this interface for > WC mapping.
I remember talking with people about using madvise and/or mmap flags to set the attributes correctly, but I don't remember whether it was a good idea or not...
The advantage of a specific post-mmap call is that it would make setting the attribute types a little easier, so either ioctl or madvise seems preferable to mmapping over and over with different flags until you get the mapping.
Jesse
| |