mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 02:58:57 +07:00
drm/amdgpu/pp/smu7: drop unused values in smu data structure
use kaddr directly rather than secondary variable. Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
3d75a8b689
commit
2bce4be037
drivers/gpu/drm/amd/powerplay/smumgr
@ -422,7 +422,7 @@ int smu7_request_smu_load_fw(struct pp_hwmgr *hwmgr)
|
||||
+ UCODE_ID_CP_MEC_JT2_MASK;
|
||||
}
|
||||
|
||||
toc = (struct SMU_DRAMData_TOC *)smu_data->header;
|
||||
toc = (struct SMU_DRAMData_TOC *)smu_data->header_buffer.kaddr;
|
||||
toc->structure_version = 1;
|
||||
|
||||
PP_ASSERT_WITH_CODE(0 == smu7_populate_single_firmware_entry(hwmgr,
|
||||
@ -591,7 +591,6 @@ int smu7_init(struct pp_hwmgr *hwmgr)
|
||||
if (r)
|
||||
return -EINVAL;
|
||||
|
||||
smu_data->header = smu_data->header_buffer.kaddr;
|
||||
smu_data->header_buffer.mc_addr = mc_addr;
|
||||
|
||||
if (!hwmgr->not_vf)
|
||||
|
@ -37,8 +37,6 @@ struct smu7_buffer_entry {
|
||||
};
|
||||
|
||||
struct smu7_smumgr {
|
||||
uint8_t *header;
|
||||
uint8_t *mec_image;
|
||||
struct smu7_buffer_entry smu_buffer;
|
||||
struct smu7_buffer_entry header_buffer;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user