Also, does i915 actually use uncacheable pages for CPU memory? When going to cpu -> gpu domain for gem buffers, I saw explicit clflush but nothing seems to show use of uncacheable pages. Did I miss something? Ben -----Original Message----- From: Chris Wilson [mailto:chris@xxxxxxxxxxxxxxxxxx] Sent: Tuesday, December 14, 2010 2:00 AM To: Segovia, Benjamin; Segovia, Benjamin; Zhenyu Wang Cc: DRI Subject: RE: Intel DRM driver for SNB On Mon, 13 Dec 2010 20:32:42 -0800, "Segovia, Benjamin" <benjamin.segovia@xxxxxxxxx> wrote: > To be more explicit, my concern is that I read that Chris Wilson proposed a patch preventing the VM to swap pages still in GTT. I did not see any trace of this patch in the main line yet. No, because the mm maintainers corrected me by pointing out that a page will not be swapped whilst a reference is held and it remains off the zone LRU lists. (That said there remains a persistent nagging doubt that something smells fishy...) But as for what you want to do, it is possible with the current module. However as it deliberately evades the minimal security provisions we have, it should only be done from a privileged application. In principle, there should be sufficient knowledge within the kernel to maintain coherency for you. I'm interested in knowing how you plan to manage coherency to make sure we have not missed something. (Give or take the fixes for completely handing coherency of uncached/cached CPU mappings.) With ppGTT, we can be much more permissive and allow individual apps to reserve portions of the GTT without impacting other users of the system. -Chris -- Chris Wilson, Intel Open Source Technology Centre _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel