summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>2025-01-15 03:13:34 +0300
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>2025-01-29 21:14:51 +0300
commit5bea40687c5cf2a33bf04e9110eb2e2b80222ef5 (patch)
tree5c4007eff604caf3f9acc435a61dc3cd4affe962 /tools/perf/scripts/python/export-to-postgresql.py
parent54cb7288900ba964bd525d004b9618efb52f724b (diff)
downloadlinux-5bea40687c5cf2a33bf04e9110eb2e2b80222ef5.tar.xz
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 <daniele.ceraolospurio@intel.com> Cc: John Harrison <John.C.Harrison@Intel.com> Cc: Matthew Brost <matthew.brost@intel.com> Cc: <stable@vger.kernel.org> # v5.15+ Reviewed-by: John Harrison <John.C.Harrison@Intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250115001334.3875347-1-daniele.ceraolospurio@intel.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions