mirror of
https://github.com/openbsd/src.git
synced 2026-06-18 15:23:33 +02:00
drm/amd/pm/ci: Fill DW8 fields from SMC
From Timur Kristof c140492d0bbe014c5b3962e0c1b68d314a37122f in linux-6.18.y/6.18.33 baf28ec5795c077406d6f52b8ad39e614153bce6 in mainline linux
This commit is contained in:
@@ -543,12 +543,11 @@ static int ci_populate_dw8(struct pp_hwmgr *hwmgr, uint32_t fuse_table_offset)
|
||||
{
|
||||
struct ci_smumgr *smu_data = (struct ci_smumgr *)(hwmgr->smu_backend);
|
||||
const struct ci_pt_defaults *defaults = smu_data->power_tune_defaults;
|
||||
uint32_t temp;
|
||||
|
||||
if (ci_read_smc_sram_dword(hwmgr,
|
||||
fuse_table_offset +
|
||||
offsetof(SMU7_Discrete_PmFuses, TdcWaterfallCtl),
|
||||
(uint32_t *)&temp, SMC_RAM_END))
|
||||
(uint32_t *)&smu_data->power_tune_table.TdcWaterfallCtl, SMC_RAM_END))
|
||||
PP_ASSERT_WITH_CODE(false,
|
||||
"Attempt to read PmFuses.DW6 (SviLoadLineEn) from SMC Failed!",
|
||||
return -EINVAL);
|
||||
|
||||
Reference in New Issue
Block a user