Skip to contentSkip to conversation

drm/panel replay: Add edp1.5 Panel Replay bits and register

PATCH In review Jouni Högander 2 participants 4 messages May 16, 2024 – May 28, 2024 DRM drivers

lore
Share & tools
lore
#0 lore raw

PATCH 2/17 drm/panel replay: Add edp1.5 Panel Replay bits and register

Add PANEL_REPLAY_CONFIGURATION_2 register and some missing Panel Replay bits.

---
 include/drm/display/drm_dp.h | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)
include/drm/display/drm_dp.h +13 -3
index 906949ca3cee..79bde372b152 100644
@@ -544,9 +544,10 @@
 /* DFP Capability Extension */
 #define DP_DFP_CAPABILITY_EXTENSION_SUPPORT	0x0a3	/* 2.0 */
 
-#define DP_PANEL_REPLAY_CAP                 0x0b0  /* DP 2.0 */
-# define DP_PANEL_REPLAY_SUPPORT            (1 << 0)
-# define DP_PANEL_REPLAY_SU_SUPPORT         (1 << 1)
+#define DP_PANEL_REPLAY_CAP				0x0b0  /* DP 2.0 */
+# define DP_PANEL_REPLAY_SUPPORT			(1 << 0)
+# define DP_PANEL_REPLAY_SU_SUPPORT			(1 << 1)
+# define DP_PANEL_REPLAY_EARLY_TRANSPORT_SUPPORT	(1 << 2) /* eDP 1.5 */
 
 #define DP_PANEL_PANEL_REPLAY_CAPABILITY		0xb1
 # define DP_PANEL_PANEL_REPLAY_SU_GRANULARITY_REQUIRED	(1 << 5)
@@ -734,11 +735,20 @@
 
 #define PANEL_REPLAY_CONFIG                             0x1b0  /* DP 2.0 */
 # define DP_PANEL_REPLAY_ENABLE                         (1 << 0)
+# define DP_PANEL_REPLAY_VSC_SDP_CRC_EN                 (1 << 1) /* eDP 1.5 */
 # define DP_PANEL_REPLAY_UNRECOVERABLE_ERROR_EN         (1 << 3)
 # define DP_PANEL_REPLAY_RFB_STORAGE_ERROR_EN           (1 << 4)
 # define DP_PANEL_REPLAY_ACTIVE_FRAME_CRC_ERROR_EN      (1 << 5)
 # define DP_PANEL_REPLAY_SU_ENABLE                      (1 << 6)
 
+#define PANEL_REPLAY_CONFIG2                                     0x1b1 /* eDP 1.5 */
+# define DP_PANEL_REPLAY_SINK_REFRESH_RATE_UNLOCK_GRANTED	 (1 << 0)
+# define DP_PANEL_REPLAY_CRC_VERIFICATION			 (1 << 1)
+# define DP_PANEL_REPLAY_SU_Y_GRANULARITY_EXTENDED_EN		 (1 << 2)
+# define DP_PANEL_REPLAY_SU_Y_GRANULARITY_EXTENDED_VAL_SEL_SHIFT 3
+# define DP_PANEL_REPLAY_SU_Y_GRANULARITY_EXTENDED_VAL_SEL_MASK  (0xf << 3)
+# define DP_PANEL_REPLAY_SU_REGION_SCANLINE_CAPTURE		 (1 << 7)
+
 #define DP_PAYLOAD_ALLOCATE_SET		    0x1c0
 #define DP_PAYLOAD_ALLOCATE_START_TIME_SLOT 0x1c1
 #define DP_PAYLOAD_ALLOCATE_TIME_SLOT_COUNT 0x1c2
Signature · 1 line
2.34.1
#1 lore raw

PATCH 8/17 drm/display: Add missing aux less alpm wake related bits

eDP1.5 adds some more bits into DP_RECEIVER_ALPM_CAP and DP_RECEIVER_ALPM_CONFIG registers. Add definitions for these.

---
 include/drm/display/drm_dp.h | 3 +++
 1 file changed, 3 insertions(+)
include/drm/display/drm_dp.h +3 -0
index 79bde372b152..f3ce8c483659 100644
@@ -232,6 +232,8 @@
 
 #define DP_RECEIVER_ALPM_CAP		    0x02e   /* eDP 1.4 */
 # define DP_ALPM_CAP			    (1 << 0)
+# define DP_ALPM_PM_STATE_2A_SUPPORT	    (1 << 1) /* eDP 1.5 */
+# define DP_ALPM_AUX_LESS_CAP		    (1 << 2) /* eDP 1.5 */
 
 #define DP_SINK_DEVICE_AUX_FRAME_SYNC_CAP   0x02f   /* eDP 1.4 */
 # define DP_AUX_FRAME_SYNC_CAP		    (1 << 0)
@@ -685,6 +687,7 @@
 #define DP_RECEIVER_ALPM_CONFIG		    0x116   /* eDP 1.4 */
 # define DP_ALPM_ENABLE			    (1 << 0)
 # define DP_ALPM_LOCK_ERROR_IRQ_HPD_ENABLE  (1 << 1)
+# define DP_ALPM_MODE_AUX_LESS		    (1 << 2) /* eDP 1.5 */
 
 #define DP_SINK_DEVICE_AUX_FRAME_SYNC_CONF  0x117   /* eDP 1.4 */
 # define DP_AUX_FRAME_SYNC_ENABLE	    (1 << 0)
Signature · 1 line
2.34.1
#2 lore raw
In reply to Jouni Högander
Quoted 3 lines · Jouni Högander

Add PANEL_REPLAY_CONFIGURATION_2 register and some missing Panel Replay
bits.

Hello drm-core maintainers,

Could you please consider providing your ack on this patch? I'm planning to merge it via drm-intel tree. I have already r-b tag.

BR,

Jouni Högander

Quoted 56 lines

---
 include/drm/display/drm_dp.h | 16 +++++++++++++---

 1 file changed, 13 insertions(+), 3 deletions(-)
include/drm/display/drm_dp.h +0 -0
index 906949ca3cee..79bde372b152 100644
@@ -544,9 +544,10 @@
  /* DFP Capability Extension */
  #define DP_DFP_CAPABILITY_EXTENSION_SUPPORT    0x0a3   /* 2.0 */

include/drm/display/drm_dp.h +1 -3
-#define DP_PANEL_REPLAY_CAP                 0x0b0  /* DP 2.0 */
-# define DP_PANEL_REPLAY_SUPPORT            (1 << 0)
-# define DP_PANEL_REPLAY_SU_SUPPORT         (1 << 1)
+#define DP_PANEL_REPLAY_CAP                            0x0b0  /* DP

2.0 */

include/drm/display/drm_dp.h +3 -0
+# define DP_PANEL_REPLAY_SUPPORT                       (1 << 0)
+# define DP_PANEL_REPLAY_SU_SUPPORT                    (1 << 1)
+# define DP_PANEL_REPLAY_EARLY_TRANSPORT_SUPPORT       (1 << 2) /*

eDP 1.5 */

 #define DP_PANEL_PANEL_REPLAY_CAPABILITY               0xb1

 # define DP_PANEL_PANEL_REPLAY_SU_GRANULARITY_REQUIRED (1 << 5)
include/drm/display/drm_dp.h +0 -0
@@ -734,11 +735,20 @@


 #define PANEL_REPLAY_CONFIG                             0x1b0  /* DP 2.0 */

 # define DP_PANEL_REPLAY_ENABLE                         (1 << 0)
+# define DP_PANEL_REPLAY_VSC_SDP_CRC_EN                 (1 << 1) /*
eDP 1.5 */
 # define DP_PANEL_REPLAY_UNRECOVERABLE_ERROR_EN         (1 << 3)
 # define DP_PANEL_REPLAY_RFB_STORAGE_ERROR_EN           (1 << 4)
 # define DP_PANEL_REPLAY_ACTIVE_FRAME_CRC_ERROR_EN      (1 << 5)
 # define DP_PANEL_REPLAY_SU_ENABLE                      (1 << 6)
 
+#define PANEL_REPLAY_CONFIG2                                    
0x1b1 /* eDP 1.5 */
+# define DP_PANEL_REPLAY_SINK_REFRESH_RATE_UNLOCK_GRANTED       (1
<< 0)
+# define DP_PANEL_REPLAY_CRC_VERIFICATION                       (1
<< 1)
+# define DP_PANEL_REPLAY_SU_Y_GRANULARITY_EXTENDED_EN           (1
<< 2)
include/drm/display/drm_dp.h +2 -0
+# define DP_PANEL_REPLAY_SU_Y_GRANULARITY_EXTENDED_VAL_SEL_SHIFT 3
+# define DP_PANEL_REPLAY_SU_Y_GRANULARITY_EXTENDED_VAL_SEL_MASK 

(0xf << 3)
+# define DP_PANEL_REPLAY_SU_REGION_SCANLINE_CAPTURE             (1 << 7)
+
 #define DP_PAYLOAD_ALLOCATE_SET                    0x1c0 #define DP_PAYLOAD_ALLOCATE_START_TIME_SLOT 0x1c1 #define DP_PAYLOAD_ALLOCATE_TIME_SLOT_COUNT 0x1c2

#3 lore raw
Quoted 9 lines · Jouni
Quoted 3 lines · Jouni Högander

Add PANEL_REPLAY_CONFIGURATION_2 register and some missing Panel Replay
bits.

Hello drm-core maintainers,

Could you please consider providing your ack on this patch? I'm planning to merge it via drm-intel tree. I have already r-b tag.

Maxime