]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: mark a newly-created GEM object dirty when filled with data
authorDave Gordon <david.s.gordon@intel.com>
Thu, 10 Dec 2015 18:51:24 +0000 (18:51 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 11 Dec 2015 17:20:19 +0000 (18:20 +0100)
commit1985e0a0a206ff08abb3e0e3aeeac855f440e7bc
tree60077e145dbafefaa287eb6d31f6bbec73324c0f
parentc2fa41e2bfde71821d873cad4495dd553d4f5615
drm/i915: mark a newly-created GEM object dirty when filled with data

When creating a new (pageable) GEM object and filling it with data, we
must mark it as 'dirty', i.e. backing store is out-of-date w.r.t. the
newly-written content. This ensures that if the object is evicted under
memory pressure, its pages in the pagecache will be written to backing
store rather than discarded.

Based on an original version by Alex Dai.

Signed-off-by: Alex Dai <yu.dai@intel.com>
Signed-off-by: Dave Gordon <david.s.gordon@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1449773486-30822-3-git-send-email-david.s.gordon@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c