]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gem: Track ggtt writes from userspace on the bound vma
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Nov 2019 11:25:15 +0000 (11:25 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Nov 2019 15:12:46 +0000 (15:12 +0000)
commit07d59d8196cd0efd5e7c4e49b9437eac7ba8acca
tree511ea48d43975f410d7724d08cb547d0adf1c633
parent3a6560d86a2a1faf0c5bacb728093025df9e75fd
drm/i915/gem: Track ggtt writes from userspace on the bound vma

When userspace writes into the GTT itself, it is supposed to call
set-domain to let the kernel keep track and so manage the CPU/GPU
caches. As we track writes on the individual i915_vma, we should also be
sure to mark them as dirty.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191119112515.2766748-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_domain.c