drm/amd/display: Add additional checks for PSP footer size

[WHY & HOW]
Newer ASICs have different PSP footer sizes which lead to driver
failing to locate the DMCUB FW meta info, which in turn causes
improper DMCUB FW loading and causes DMCUB to crash.

Add support for custom PSP footer sizes and check 512B by default
as well.

Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Signed-off-by: Ovidiu Bunea <ovidiu.bunea@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Ovidiu Bunea
2025-11-11 15:44:08 -05:00
committed by Alex Deucher
parent c7062be338
commit e1b385726f
5 changed files with 119 additions and 30 deletions

View File

@@ -413,6 +413,13 @@ struct amdgpu_display_manager {
*/
uint32_t dmcub_fw_version;
/**
* @fw_inst_size:
*
* Size of the firmware instruction buffer.
*/
uint32_t fw_inst_size;
/**
* @cgs_device:
*