diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-07-23 11:09:14 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-07-23 11:09:14 +0000 |
commit | 192e57c05513dbb5a9f06c6cae76e752a7ef3fee (patch) | |
tree | 72aeac6cde39aa7074ff96335e23d63ad1a774d2 | |
parent | 1961121d2f715a68bed5bcfd38f70eda68ae7440 (diff) |
drm/i915/perf: Use GTT when saving/restoring engine GPR
From Umesh Nerlige Ramappa
b3944d5248c6be0f2dc95a231822c6c67d6f6fd9 in linux 5.7.y/5.7.10
aee62e02c48bd62b9b07f5e297ecfc9aaa964937 in mainline linux
-rw-r--r-- | sys/dev/pci/drm/i915/i915_perf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/i915/i915_perf.c b/sys/dev/pci/drm/i915/i915_perf.c index 2e8b0ff8fa7..2682fe0f3f0 100644 --- a/sys/dev/pci/drm/i915/i915_perf.c +++ b/sys/dev/pci/drm/i915/i915_perf.c @@ -1654,6 +1654,7 @@ static u32 *save_restore_register(struct i915_perf_stream *stream, u32 *cs, u32 d; cmd = save ? MI_STORE_REGISTER_MEM : MI_LOAD_REGISTER_MEM; + cmd |= MI_SRM_LRM_GLOBAL_GTT; if (INTEL_GEN(stream->perf->i915) >= 8) cmd++; |