Skip to content

Commit b3944d5

Browse files
unerligegregkh
authored andcommitted
drm/i915/perf: Use GTT when saving/restoring engine GPR
commit aee62e0 upstream. 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: daed3e4 ("drm/i915/perf: implement active wait for noa configurations") Suggested-by: Prathap Kumar Valsan <[email protected]> Signed-off-by: Umesh Nerlige Ramappa <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Chris Wilson <[email protected]> (cherry picked from commit e43ff99) Signed-off-by: Jani Nikula <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 1b751c7 commit b3944d5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/i915/i915_perf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,6 +1645,7 @@ static u32 *save_restore_register(struct i915_perf_stream *stream, u32 *cs,
16451645
u32 d;
16461646

16471647
cmd = save ? MI_STORE_REGISTER_MEM : MI_LOAD_REGISTER_MEM;
1648+
cmd |= MI_SRM_LRM_GLOBAL_GTT;
16481649
if (INTEL_GEN(stream->perf->i915) >= 8)
16491650
cmd++;
16501651

0 commit comments

Comments
 (0)