OSDN Git Service

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)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 8 Dec 2020 15:09:58 +0000 (07:09 -0800)
commit7c5c15dffe1e3c42f44735ce9552afb7207f1584
tree7baa9c85eeb456631f0f059f17885617037bac8b
parentf6cbe49be65ed800863ac5ba695555057363f9c2
drm/i915/gt: Declare gen9 has 64 mocs entries!

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]
drivers/gpu/drm/i915/gt/intel_mocs.c