summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2025-11-06 23:00:00 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-11-24 12:37:49 +0300
commitc805d473355cdbf875d81be34a32f3ba88681689 (patch)
tree599ee451c933b686b8456e5f7e5dd58d06b2406d /scripts/gdb/linux/utils.py
parenta0da941ae64b752be57992d7e49d1536024950bd (diff)
downloadlinux-c805d473355cdbf875d81be34a32f3ba88681689.tar.xz
drm/i915/psr: fix pipe to vblank conversion
commit 994dec10991b53beac3e16109d876ae363e8a329 upstream. First, we can't assume pipe == crtc index. If a pipe is fused off in between, it no longer holds. intel_crtc_for_pipe() is the only proper way to get from a pipe to the corresponding crtc. Second, drivers aren't supposed to access or index drm->vblank[] directly. There's drm_crtc_vblank_crtc() for this. Use both functions to fix the pipe to vblank conversion. Fixes: f02658c46cf7 ("drm/i915/psr: Add mechanism to notify PSR of pipe enable/disable") Cc: Jouni Högander <jouni.hogander@intel.com> Cc: stable@vger.kernel.org # v6.16+ Reviewed-by: Jouni Högander <jouni.hogander@intel.com> Link: https://patch.msgid.link/20251106200000.1455164-1-jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com> (cherry picked from commit 2750f6765d6974f7e163c5d540a96c8703f6d8dd) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions