Skip to content

Commit b31e2e3

Browse files
committed
Merge tag 'drm-intel-fixes-2025-11-26' of https://gitlab.freedesktop.org/drm/i915/kernel into drm-fixes
- Reject async flips when PSR's selective fetch is enabled (Ville) Signed-off-by: Dave Airlie <airlied@redhat.com> From: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patch.msgid.link/aScgY8QMjmyJRBX2@intel.com
2 parents ac3fd01 + 7c373b3 commit b31e2e3

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

drivers/gpu/drm/i915/display/intel_display.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5964,6 +5964,14 @@ static int intel_async_flip_check_uapi(struct intel_atomic_state *state,
59645964
return -EINVAL;
59655965
}
59665966

5967+
/* FIXME: selective fetch should be disabled for async flips */
5968+
if (new_crtc_state->enable_psr2_sel_fetch) {
5969+
drm_dbg_kms(display->drm,
5970+
"[CRTC:%d:%s] async flip disallowed with PSR2 selective fetch\n",
5971+
crtc->base.base.id, crtc->base.name);
5972+
return -EINVAL;
5973+
}
5974+
59675975
for_each_oldnew_intel_plane_in_state(state, plane, old_plane_state,
59685976
new_plane_state, i) {
59695977
if (plane->pipe != crtc->pipe)

drivers/gpu/drm/i915/display/intel_psr.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,12 +1256,6 @@ static bool intel_psr2_sel_fetch_config_valid(struct intel_dp *intel_dp,
12561256
return false;
12571257
}
12581258

1259-
if (crtc_state->uapi.async_flip) {
1260-
drm_dbg_kms(display->drm,
1261-
"PSR2 sel fetch not enabled, async flip enabled\n");
1262-
return false;
1263-
}
1264-
12651259
return crtc_state->enable_psr2_sel_fetch = true;
12661260
}
12671261

0 commit comments

Comments
 (0)