]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: add addition dc type to translate to dmub fw type
authorAnthony Koo <Anthony.Koo@amd.com>
Wed, 22 Apr 2020 02:01:30 +0000 (22:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 May 2020 17:11:49 +0000 (13:11 -0400)
commitbc4b5dd3bdb073ae5ab80343bea20b725b2d4546
tree2998459a6268267e32214643ba69dd68698044dc
parentd47d86aa978854316b0cb54b0208b5bbbb58a4fc
drm/amd/display: add addition dc type to translate to dmub fw type

[Why]
For a type like PSR version, it makes sense for most of the code
to include a dc type, instead of having this a fw type define since
this is a capability and type exposed by dc.

Especially if it doesn't even need to communicate with the fw.

The code that is packing the firmware command message
should be the one who needs to translate the psr version
into a command that the firmware understands.

[How]
Add a dc_psr_version enum.

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dc_link.h
drivers/gpu/drm/amd/display/dc/dc_types.h
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c