]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Get cache window sizes from DMCUB firmware
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Thu, 28 Nov 2019 20:21:26 +0000 (15:21 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Dec 2019 21:09:09 +0000 (16:09 -0500)
commit0f68c862bf8770e8364caaf62c19e39bd0339648
tree28f9c7e72da86fe9e23f265dcf56a7f17cfc080e
parent7ef62c6fcc64cb913c9fc6109c74a7f49d0aada1
drm/amd/display: Get cache window sizes from DMCUB firmware

[Why]
Firmware state and tracebuffer shouldn't be considered stable API
between firmware versions.

Driver shouldn't be querying anything from firmware state or tracebuffer
outside of debugging.

Commands are the stable API for this once we have the outbox.

[How]
Add metadata struct to the end of the data firmware that describes
fw_state_size and some reserved area for future use.

Drop the tracebuffer and firmware state headers since they can differ
per version.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@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/dmub/inc/dmub_fw_meta.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dmub/inc/dmub_fw_state.h [deleted file]
drivers/gpu/drm/amd/display/dmub/inc/dmub_srv.h
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c