]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/perf: Use GTT when saving/restoring engine GPR
authorUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Thu, 9 Jul 2020 22:45:03 +0000 (23:45 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Jul 2020 09:20:34 +0000 (10:20 +0100)
commitcc1f65e51de4d1df0e9f1217060daede43d99328
tree9a94e0b876c85336b60f97ed92990b5948fcd2d1
parent573422f8297f533a8dca27717be162f4043ef7c0
drm/i915/perf: Use GTT when saving/restoring engine GPR

MI_STORE_REGISTER_MEM and MI_LOAD_REGISTER_MEM need to know which
translation to use when saving restoring the engine general purpose
registers to and from the GT scratch. Since GT scratch is mapped to
ggtt, we need to set an additional bit in the command to use GTT.

Fixes: acff1cc92e482a ("drm/i915/perf: implement active wait for noa configurations")
Suggested-by: Prathap Kumar Valsan <prathap.kumar.valsan@intel.com>
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200709224504.11345-1-chris@chris-wilson.co.uk
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_perf.c