Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915/psr: Use hw.crtc instead of uapi.crtc

uapi.crtc is not set for joiner secondary pipes, so generally
should not be used anywhere after the initial state copy. Switch
to hw.crtc which actually indicates that the plane is enabled.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20251119181606.17129-3-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>

+3 -3
+3 -3
drivers/gpu/drm/i915/display/intel_psr.c
··· 2701 2701 for_each_new_intel_plane_in_state(state, plane, new_plane_state, i) { 2702 2702 struct drm_rect inter; 2703 2703 2704 - if (new_plane_state->uapi.crtc != crtc_state->uapi.crtc) 2704 + if (new_plane_state->hw.crtc != crtc_state->uapi.crtc) 2705 2705 continue; 2706 2706 2707 2707 if (plane->id != PLANE_CURSOR) ··· 2838 2838 struct drm_rect src, damaged_area = { .x1 = 0, .y1 = -1, 2839 2839 .x2 = INT_MAX }; 2840 2840 2841 - if (new_plane_state->uapi.crtc != crtc_state->uapi.crtc) 2841 + if (new_plane_state->hw.crtc != crtc_state->uapi.crtc) 2842 2842 continue; 2843 2843 2844 2844 if (!new_plane_state->uapi.visible && ··· 2937 2937 struct drm_rect *sel_fetch_area, inter; 2938 2938 struct intel_plane *linked = new_plane_state->planar_linked_plane; 2939 2939 2940 - if (new_plane_state->uapi.crtc != crtc_state->uapi.crtc || 2940 + if (new_plane_state->hw.crtc != crtc_state->uapi.crtc || 2941 2941 !new_plane_state->uapi.visible) 2942 2942 continue; 2943 2943