]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: read PSR-SU cap DPCD for specific panel
authorDavid Zhang <dingchen.zhang@amd.com>
Mon, 11 Apr 2022 20:04:39 +0000 (16:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Apr 2022 21:10:43 +0000 (17:10 -0400)
commitb5a9118d97a3c4773816dd540dd79d8ba5b9a5b7
tree86deb96794c8b8201a520392be8ee256c27fd6bb
parentfc706ba635fa46260c53ca9ce86d5e138a43cad8
drm/amd/display: read PSR-SU cap DPCD for specific panel

[why & how]
For some specific eDP panel, we'd check the PSR-SU cap during boot
by reading the vendor specific DPCD, otherwise it will cause to
false report the eDP panel which supports PSR-SU as an non-PSR-SU
panel.

- add the vendor specific DPCD address in ddc_service_types header
- if specific eDP panel detected, check vendor specific DPCD for
  PSR-SU cap

Reviewed-by: Aurabindo Jayamohanan Pillai <Aurabindo.Pillai@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: David Zhang <dingchen.zhang@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/include/ddc_service_types.h