diff options
| author | Daniele Ceraolo Spurio <[email protected]> | 2025-01-15 00:13:34 +0000 |
|---|---|---|
| committer | Daniele Ceraolo Spurio <[email protected]> | 2025-01-29 18:14:51 +0000 |
| commit | 5bea40687c5cf2a33bf04e9110eb2e2b80222ef5 (patch) | |
| tree | 5c4007eff604caf3f9acc435a61dc3cd4affe962 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | drm/i915/guc/slpc: Add helper function slpc_measure_power (diff) | |
| download | kernel-5bea40687c5cf2a33bf04e9110eb2e2b80222ef5.tar.gz kernel-5bea40687c5cf2a33bf04e9110eb2e2b80222ef5.zip | |
drm/i915/guc: Debug print LRC state entries only if the context is pinned
After the context is unpinned the backing memory can also be unpinned,
so any accesses via the lrc_reg_state pointer can end up in unmapped
memory. To avoid that, make sure to only access that memory if the
context is pinned when printing its info.
v2: fix newline alignment
Fixes: 28ff6520a34d ("drm/i915/guc: Update GuC debugfs to support new GuC")
Signed-off-by: Daniele Ceraolo Spurio <[email protected]>
Cc: John Harrison <[email protected]>
Cc: Matthew Brost <[email protected]>
Cc: <[email protected]> # v5.15+
Reviewed-by: John Harrison <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
