]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitd9f442e9a20c20333ef9b2341d7c74c9783d30b4
tree86deb96794c8b8201a520392be8ee256c27fd6bb
parent4a0caac06a4c587e56d89bd2fabfc0d33eb4fcb9
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