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

drm/amd/display: Read Sink emission rate capability

[WHY]
To get sink emission rate information for future
supported refresh rate calculation.

Reviewed-by: ChunTao Tso <chuntao.tso@amd.com>
Signed-off-by: Robin Chen <robin.chen@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Robin Chen and committed by
Alex Deucher
668d6808 ad6b76cd

+20 -10
+2 -1
drivers/gpu/drm/amd/display/dc/dc_dp_types.h
··· 1192 1192 struct edp_psr_info psr_info; 1193 1193 1194 1194 struct replay_info pr_info; 1195 + uint16_t edp_oled_emission_rate; 1195 1196 }; 1196 1197 1197 1198 union dpcd_sink_ext_caps { ··· 1206 1205 uint8_t oled : 1; 1207 1206 uint8_t reserved_2 : 1; 1208 1207 uint8_t miniled : 1; 1209 - uint8_t reserved : 1; 1208 + uint8_t emission_output : 1; 1210 1209 } bits; 1211 1210 uint8_t raw; 1212 1211 };
+10 -9
drivers/gpu/drm/amd/display/include/dpcd_defs.h
··· 164 164 PSR_SINK_STATE_SINK_INTERNAL_ERROR = 7, 165 165 }; 166 166 167 - #define DP_SOURCE_SEQUENCE 0x30c 168 - #define DP_SOURCE_TABLE_REVISION 0x310 169 - #define DP_SOURCE_PAYLOAD_SIZE 0x311 170 - #define DP_SOURCE_SINK_CAP 0x317 171 - #define DP_SOURCE_BACKLIGHT_LEVEL 0x320 172 - #define DP_SOURCE_BACKLIGHT_CURRENT_PEAK 0x326 173 - #define DP_SOURCE_BACKLIGHT_CONTROL 0x32E 174 - #define DP_SOURCE_BACKLIGHT_ENABLE 0x32F 175 - #define DP_SOURCE_MINIMUM_HBLANK_SUPPORTED 0x340 167 + #define DP_SOURCE_SEQUENCE 0x30C 168 + #define DP_SOURCE_TABLE_REVISION 0x310 169 + #define DP_SOURCE_PAYLOAD_SIZE 0x311 170 + #define DP_SOURCE_SINK_CAP 0x317 171 + #define DP_SOURCE_BACKLIGHT_LEVEL 0x320 172 + #define DP_SOURCE_BACKLIGHT_CURRENT_PEAK 0x326 173 + #define DP_SOURCE_BACKLIGHT_CONTROL 0x32E 174 + #define DP_SOURCE_BACKLIGHT_ENABLE 0x32F 175 + #define DP_SOURCE_MINIMUM_HBLANK_SUPPORTED 0x340 176 176 #define DP_SINK_PR_REPLAY_STATUS 0x378 177 177 #define DP_SINK_PR_PIXEL_DEVIATION_PER_LINE 0x379 178 178 #define DP_SINK_PR_MAX_NUMBER_OF_DEVIATION_LINE 0x37A 179 + #define DP_SINK_EMISSION_RATE 0x37E 179 180 180 181 /* Remove once drm_dp_helper.h is updated upstream */ 181 182 #ifndef DP_TOTAL_LTTPR_CNT