]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Program mocs:63 for cache eviction on gen9
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Nov 2020 14:08:41 +0000 (14:08 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Nov 2020 14:17:50 +0000 (14:17 +0000)
commit54ac02668c8d7cd51ed44b09d8dd9e2515eeca61
tree24eccea5dfac399b534603cbc6ae6653c169d841
parent8ef491588617c58461d6b17a972478a0f36087d1
drm/i915/gt: Program mocs:63 for cache eviction on gen9

Ville noticed that the last mocs entry is used unconditionally by the HW
when it performs cache evictions, and noted that while the value is not
meant to be writable by the driver, we should program it to a reasonable
value nevertheless.

As it turns out, we can change the value of mocs:63 and the value we
were programming into it would cause hard hangs in conjunction with
atomic operations.

v2: Add details from bspec about how it is used by HW

Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2707
Fixes: d369751b5d6a ("drm/i915: Added Programming of the MOCS")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Jason Ekstrand <jason@jlekstrand.net>
Cc: <stable@vger.kernel.org> # v4.3+
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201126140841.1982-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_mocs.c