drm: add helper to clflush a virtual address range
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 25 Mar 2012 17:47:30 +0000 (19:47 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 27 Mar 2012 11:19:45 +0000 (13:19 +0200)
commit6d5cd9cb1e32e4f4e4468704430b26bcb0bfb129
tree8dbb4943c5bafc999421d395d8a1f656bbb35ca0
parentdbf7bff074d5fdc87c61b1b41d8e809109cf0bf8
drm: add helper to clflush a virtual address range

Useful when the page is already mapped to copy date in/out.

For -stable because the next patch (fixing phys obj pwrite) needs this
little helper function.

Tested-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_cache.c
include/drm/drmP.h