]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Refactor l3cc/mocs availability
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 18 Feb 2020 16:21:48 +0000 (16:21 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 19 Feb 2020 14:09:18 +0000 (14:09 +0000)
commit4b9a26992e0a775dc44bb394c1bc3699ee468a61
tree4ba04cf036d504537061c7e801d1415c4621c250
parentce822c3ae3a3cb6241ddfc7dd2e1c3106add3c73
drm/i915/gt: Refactor l3cc/mocs availability

On dgfx, we only use l3cc and not mocs, but we share the table
containing both register definitions with Tigerlake. This confuses our
selftest that verifies that both sets of registers do contain the values
in our tables after various events (idling, reset, activity etc).

When constructing the table of register definitions, also include the
flags for which registers are valid so that information is computed
centrally and available to all callers.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Brian Welty <brian.welty@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200218162150.1300405-10-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_mocs.c
drivers/gpu/drm/i915/gt/selftest_mocs.c