]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Allocate scratch space for DMUB CW7
authorWyatt Wood <wyatt.wood@amd.com>
Thu, 5 Mar 2020 20:14:01 +0000 (15:14 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Mar 2020 04:03:04 +0000 (00:03 -0400)
commite13b5a4283edebd4129b90db823fe39d41387777
treed08bcdbbf2aca8f4fd977663225169a0e0048fdc
parentdc8c884994b6a62594fef96b542fd494b9f0bbc2
drm/amd/display: Allocate scratch space for DMUB CW7

[Why]
The scratch space can be used to pass data between x86 and DMCUB.  DMCUB
will manage the actually mapping of CW7 internally, driver does not
program the window.

[How]
Allocate extra space within the DMUB service's framebuffer for this
scratch space and expose them from the service for use in DC.

Signed-off-by: Wyatt Wood <wyatt.wood@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dmub/inc/dmub_srv.h
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c