OSDN Git Service

drm/amd/display: parse and check PSR SU caps
authorMikita Lipski <mikita.lipski@amd.com>
Fri, 10 Dec 2021 23:04:02 +0000 (15:04 -0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Dec 2021 21:07:53 +0000 (16:07 -0500)
commitcd9a0d026baa10c75688908556b3af218bc4ddad
treeb2c366f0a28ee3a3de8e29348222ba0ccff9f66a
parent741fe8a4d23de0ee93a4a4e1f54e48161b98cdb4
drm/amd/display: parse and check PSR SU caps

[why]
Adding a function to read PSR capabilities
and ALPM capabilities.
Also adding a helper function to validate if
the sink and the driver support PSR SU.
[how]
- isolated all PSR and ALPM reading calls to a separate funciton
- set all required PSR caps
- added a helper function to check if PSR SU is supported by sink
and the driver

Reviewed-by: Roman Li <Roman.Li@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Pavle Kotarac <Pavle.Kotarac@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
drivers/gpu/drm/amd/display/dc/dc_dp_types.h
drivers/gpu/drm/amd/display/dc/dc_types.h