]> git.baikalelectronics.ru Git - 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)
commit53461348ece6a4ea11a8e35ca7b8c936b363fcf0
tree259f617de7717384a9b29e20cd329b23123f807a
parentc5ad7829c2f5aa2c6dd29b98e2a19384f489ed12
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