drm: Add DP PSR2 sink enable bit
Subsystems (2)
PATCH 1/2 drm: Add DP PSR2 sink enable bit
To comply with eDP1.4a this bit should be set when enabling PSR2.
Signed-off-by José Roberto de Souza <[email protected]>
--- include/drm/drm_dp_helper.h | 1 + 1 file changed, 1 insertion(+)
include/drm/drm_dp_helper.h +1 -0
@@ -478,6 +478,7 @@# define DP_PSR_FRAME_CAPTURE (1 << 3)# define DP_PSR_SELECTIVE_UPDATE (1 << 4)# define DP_PSR_IRQ_HPD_WITH_CRC_ERRORS (1 << 5) +# define DP_PSR_ENABLE_PSR2 (1 << 6)/* eDP 1.4a */ #define DP_ADAPTER_CTRL 0x1a0# define DP_ADAPTER_CTRL_FORCE_LOAD_SENSE (1 << 0)
Signature · 6 lines
2.16.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/2 drm: Add DP last received PSR SDP VSC register and bits
This is a register to help debug what is in the last SDP VSC packet revived by sink.
Signed-off-by José Roberto de Souza <[email protected]>
--- include/drm/drm_dp_helper.h | 9 +++++++++ 1 file changed, 9 insertions(+)
include/drm/drm_dp_helper.h +9 -0
@@ -795,6 +795,15 @@# define DP_LAST_ACTUAL_SYNCHRONIZATION_LATENCY_MASK (0xf << 4)# define DP_LAST_ACTUAL_SYNCHRONIZATION_LATENCY_SHIFT 4 +#define DP_LAST_RECEIVED_PSR_SDP 0x200a/* eDP 1.2 */ +# define DP_PSR_STATE_BIT (1 << 0)/* eDP 1.2 */ +# define DP_UPDATE_RFB_BIT (1 << 1)/* eDP 1.2 */ +# define DP_CRC_VALID_BIT (1 << 2)/* eDP 1.2 */ +# define DP_SU_VALID (1 << 3)/* eDP 1.4 */ +# define DP_FIRST_SCAN_LINE_SU_REGION (1 << 4)/* eDP 1.4 */ +# define DP_LAST_SCAN_LINE_SU_REGION (1 << 5)/* eDP 1.4 */ +# define DP_Y_COORDINATE_VALID (1 << 6)/* eDP 1.4a */ +#define DP_RECEIVER_ALPM_STATUS 0x200b/* eDP 1.4 */ # define DP_ALPM_LOCK_TIMEOUT_ERROR (1 << 0)
Signature · 6 lines
2.16.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel