]> asedeno.scripts.mit.edu Git - linux.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)
commit1f0674fd5c536be4462cad2bfdfc8f1648039ab5
tree28f9c7e72da86fe9e23f265dcf56a7f17cfc080e
parent1380c1bf5b9c31baf820ab545bbabf6b39bfdc0d
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 [moved from drivers/gpu/drm/amd/display/dmub/inc/dmub_fw_state.h with 57% similarity]
drivers/gpu/drm/amd/display/dmub/inc/dmub_srv.h
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c