diff options
| author | Animesh Manna <animesh.manna@intel.com> | 2026-06-29 23:32:36 +0530 |
|---|---|---|
| committer | Animesh Manna <animesh.manna@intel.com> | 2026-07-01 16:32:25 +0530 |
| commit | c2408fda34d67b99a72727a5e9a128a379e28557 (patch) | |
| tree | a4d292030b801f57adaeec0af96b9c09aa359d48 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 3e64a9e21093942d71a06d44ed93435601c6d4c0 (diff) | |
drm/i915/cmtg: Warn on invalid CMTG transcoder in intel_cmtg_disable()
intel_cmtg_disable() indexes the per-transcoder register array using the
CMTG transcoder returned by to_cmtg_transcoder(), which is only valid for
TRANSCODER_A/B. The callers are now gated by intel_cmtg_is_allowed(), so
reaching this function with an invalid CMTG transcoder should never
happen.
Add a drm_WARN_ON() that bails out early in that case, both to document
the invariant and to guard against the out-of-bounds register access
(trans_offsets[-1]) should a future caller get it wrong.
v2:
- Add an in-function INVALID_TRANSCODER drm_WARN_ON check. (Suraj)
Signed-off-by: Animesh Manna <animesh.manna@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patch.msgid.link/20260629180236.1353704-3-animesh.manna@intel.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
