aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/selftests/intel_scheduler_helpers.c
diff options
context:
space:
mode:
authorMatthew Brost <[email protected]>2021-09-09 09:47:31 -0700
committerJohn Harrison <[email protected]>2021-09-13 11:30:36 -0700
commitd135865cb8e396c0cc1d7d52dbb980fde39da641 (patch)
tree69184ccb1c5c8396f1ef06de5b92396a9579890a /drivers/gpu/drm/i915/selftests/intel_scheduler_helpers.c
parent9888beaaf118b6878347e1fe2b369fc66d756d18 (diff)
drm/i915/guc: Copy whole golden context, set engine state size of subset
When the GuC does a media reset, it copies a golden context state back into the corrupted context's state. The address of the golden context and the size of the engine state restore are passed in via the GuC ADS. The i915 had a bug where it passed in the whole size of the golden context, not the size of the engine state to restore resulting in a memory corruption. Also copy the entire golden context on init rather than just the engine state that is restored. v2 (Daniele): use defines to avoid duplicated const variables (John). Fixes: 481d458caede ("drm/i915/guc: Add golden context to GuC ADS") Signed-off-by: Matthew Brost <[email protected]> Signed-off-by: Daniele Ceraolo Spurio <[email protected]> Cc: John Harrison <[email protected]> Reviewed-by: John Harrison <[email protected]> Signed-off-by: John Harrison <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/i915/selftests/intel_scheduler_helpers.c')
0 files changed, 0 insertions, 0 deletions