|
@@ -1366,10 +1366,12 @@ static int vegam_program_memory_timing_parameters(struct pp_hwmgr *hwmgr)
|
|
{
|
|
{
|
|
struct smu7_hwmgr *hw_data = (struct smu7_hwmgr *)(hwmgr->backend);
|
|
struct smu7_hwmgr *hw_data = (struct smu7_hwmgr *)(hwmgr->backend);
|
|
struct vegam_smumgr *smu_data = (struct vegam_smumgr *)(hwmgr->smu_backend);
|
|
struct vegam_smumgr *smu_data = (struct vegam_smumgr *)(hwmgr->smu_backend);
|
|
- struct SMU75_Discrete_MCArbDramTimingTable arb_regs = {0};
|
|
|
|
|
|
+ struct SMU75_Discrete_MCArbDramTimingTable arb_regs;
|
|
uint32_t i, j;
|
|
uint32_t i, j;
|
|
int result = 0;
|
|
int result = 0;
|
|
|
|
|
|
|
|
+ memset(&arb_regs, 0, sizeof(SMU75_Discrete_MCArbDramTimingTable));
|
|
|
|
+
|
|
for (i = 0; i < hw_data->dpm_table.sclk_table.count; i++) {
|
|
for (i = 0; i < hw_data->dpm_table.sclk_table.count; i++) {
|
|
for (j = 0; j < hw_data->dpm_table.mclk_table.count; j++) {
|
|
for (j = 0; j < hw_data->dpm_table.mclk_table.count; j++) {
|
|
result = vegam_populate_memory_timing_parameters(hwmgr,
|
|
result = vegam_populate_memory_timing_parameters(hwmgr,
|