]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/i915: initialize unused MOCS entries to PTE
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 24 Jan 2019 00:05:58 +0000 (16:05 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 25 Jan 2019 03:34:25 +0000 (19:34 -0800)
commit7f92e6c2aecf66f1ccf5d3137aaf1aa9905940d4
tree259f617de7717384a9b29e20cd329b23123f807a
parent85baa5dbf79163026dcb78f742294c522e176432
drm/i915: initialize unused MOCS entries to PTE

Instead of initializing them to uncached, let's set them to PTE for
kernel tracking. While at it do some minor adjustments to comments and
coding style.

From Chris: "What it does mean is that the buffer contents are consistent
with our cache tracking; and for userspace the results were always
undefined. So we should at least be able to guarantee that the data
written by userspace from the CPU is visible. After that, your caches
are on your own".

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tomasz Lis <tomasz.lis@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190124000604.18861-2-lucas.demarchi@intel.com
drivers/gpu/drm/i915/intel_mocs.c