]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/i915/gt: Declare gen9 has 64 mocs entries!
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 27 Nov 2020 10:25:40 +0000 (10:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Dec 2020 09:58:36 +0000 (10:58 +0100)
commita62810c0e624036a98102505dad06ad8bfcf09e0
treeb68c3c68ab3f381f66e5a01235d5d77c54903a1b
parent471ae7835e5f25955a2f81409508594918f75201
drm/i915/gt: Declare gen9 has 64 mocs entries!

commit 7c5c15dffe1e3c42f44735ce9552afb7207f1584 upstream.

We checked the table size against a hardcoded number of entries, and
that number was excluding the special mocs registers at the end.

Fixes: 777a7717d60c ("drm/i915/gt: Program mocs:63 for cache eviction on gen9")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: <stable@vger.kernel.org> # v4.3+
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201127102540.13117-1-chris@chris-wilson.co.uk
(cherry picked from commit 444fbf5d7058099447c5366ba8bb60d610aeb44b)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
[backported and updated the Fixes sha]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/gt/intel_mocs.c