]> 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)
commit1aa4ec8986b0c38e0761c6a124d409e370fca1c5
tree259f617de7717384a9b29e20cd329b23123f807a
parent1076f01548762e8beff356e1f5cf004f24cc85e0
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