]> www.infradead.org Git - users/willy/xarray.git/commitdiff
drm/i915/display: Take panel replay into account in vsc sdp unpacking
authorJouni Högander <jouni.hogander@intel.com>
Fri, 7 Jun 2024 13:49:07 +0000 (16:49 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Tue, 11 Jun 2024 09:59:34 +0000 (12:59 +0300)
Currently intel_dp_vsc_sdp_unpack is not taking into account Panel Replay
vsc sdp. Fix this by adding vsc sdp revision 0x6 and length 0x10 into
intel_dp_vsc_sdp_unpack

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Animesh Manna <animesh.manna@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240607134917.1327574-4-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_dp.c

index b5915c23302f963884a50450b6e1d29977f63ca7..653b20f9576cec8efc5ff658c875eb993be9fd4c 100644 (file)
@@ -4450,7 +4450,8 @@ static int intel_dp_vsc_sdp_unpack(struct drm_dp_vsc_sdp *vsc,
        vsc->length = sdp->sdp_header.HB3;
 
        if ((sdp->sdp_header.HB2 == 0x2 && sdp->sdp_header.HB3 == 0x8) ||
-           (sdp->sdp_header.HB2 == 0x4 && sdp->sdp_header.HB3 == 0xe)) {
+           (sdp->sdp_header.HB2 == 0x4 && sdp->sdp_header.HB3 == 0xe) ||
+           (sdp->sdp_header.HB2 == 0x6 && sdp->sdp_header.HB3 == 0x10)) {
                /*
                 * - HB2 = 0x2, HB3 = 0x8
                 *   VSC SDP supporting 3D stereo + PSR
@@ -4458,6 +4459,8 @@ static int intel_dp_vsc_sdp_unpack(struct drm_dp_vsc_sdp *vsc,
                 *   VSC SDP supporting 3D stereo + PSR2 with Y-coordinate of
                 *   first scan line of the SU region (applies to eDP v1.4b
                 *   and higher).
+                * - HB2 = 0x6, HB3 = 0x10
+                *   VSC SDP supporting 3D stereo + Panel Replay.
                 */
                return 0;
        } else if (sdp->sdp_header.HB2 == 0x5 && sdp->sdp_header.HB3 == 0x13) {