@@ -590,17 +590,17 @@ static void etnaviv_gpu_enable_mlcg(struct etnaviv_gpu *gpu)
590
590
u32 pmc , ppc ;
591
591
592
592
/* enable clock gating */
593
- ppc = gpu_read (gpu , VIVS_PM_POWER_CONTROLS );
593
+ ppc = gpu_read_power (gpu , VIVS_PM_POWER_CONTROLS );
594
594
ppc |= VIVS_PM_POWER_CONTROLS_ENABLE_MODULE_CLOCK_GATING ;
595
595
596
596
/* Disable stall module clock gating for 4.3.0.1 and 4.3.0.2 revs */
597
597
if (gpu -> identity .revision == 0x4301 ||
598
598
gpu -> identity .revision == 0x4302 )
599
599
ppc |= VIVS_PM_POWER_CONTROLS_DISABLE_STALL_MODULE_CLOCK_GATING ;
600
600
601
- gpu_write (gpu , VIVS_PM_POWER_CONTROLS , ppc );
601
+ gpu_write_power (gpu , VIVS_PM_POWER_CONTROLS , ppc );
602
602
603
- pmc = gpu_read (gpu , VIVS_PM_MODULE_CONTROLS );
603
+ pmc = gpu_read_power (gpu , VIVS_PM_MODULE_CONTROLS );
604
604
605
605
/* Disable PA clock gating for GC400+ without bugfix except for GC420 */
606
606
if (gpu -> identity .model >= chipModel_GC400 &&
@@ -635,7 +635,7 @@ static void etnaviv_gpu_enable_mlcg(struct etnaviv_gpu *gpu)
635
635
pmc |= VIVS_PM_MODULE_CONTROLS_DISABLE_MODULE_CLOCK_GATING_RA_HZ ;
636
636
pmc |= VIVS_PM_MODULE_CONTROLS_DISABLE_MODULE_CLOCK_GATING_RA_EZ ;
637
637
638
- gpu_write (gpu , VIVS_PM_MODULE_CONTROLS , pmc );
638
+ gpu_write_power (gpu , VIVS_PM_MODULE_CONTROLS , pmc );
639
639
}
640
640
641
641
void etnaviv_gpu_start_fe (struct etnaviv_gpu * gpu , u32 address , u16 prefetch )
@@ -695,11 +695,11 @@ static void etnaviv_gpu_setup_pulse_eater(struct etnaviv_gpu *gpu)
695
695
(gpu -> identity .features & chipFeatures_PIPE_3D ))
696
696
{
697
697
/* Performance fix: disable internal DFS */
698
- pulse_eater = gpu_read (gpu , VIVS_PM_PULSE_EATER );
698
+ pulse_eater = gpu_read_power (gpu , VIVS_PM_PULSE_EATER );
699
699
pulse_eater |= BIT (18 );
700
700
}
701
701
702
- gpu_write (gpu , VIVS_PM_PULSE_EATER , pulse_eater );
702
+ gpu_write_power (gpu , VIVS_PM_PULSE_EATER , pulse_eater );
703
703
}
704
704
705
705
static void etnaviv_gpu_hw_init (struct etnaviv_gpu * gpu )
@@ -1317,9 +1317,9 @@ static void sync_point_perfmon_sample_pre(struct etnaviv_gpu *gpu,
1317
1317
u32 val ;
1318
1318
1319
1319
/* disable clock gating */
1320
- val = gpu_read (gpu , VIVS_PM_POWER_CONTROLS );
1320
+ val = gpu_read_power (gpu , VIVS_PM_POWER_CONTROLS );
1321
1321
val &= ~VIVS_PM_POWER_CONTROLS_ENABLE_MODULE_CLOCK_GATING ;
1322
- gpu_write (gpu , VIVS_PM_POWER_CONTROLS , val );
1322
+ gpu_write_power (gpu , VIVS_PM_POWER_CONTROLS , val );
1323
1323
1324
1324
/* enable debug register */
1325
1325
val = gpu_read (gpu , VIVS_HI_CLOCK_CONTROL );
@@ -1350,9 +1350,9 @@ static void sync_point_perfmon_sample_post(struct etnaviv_gpu *gpu,
1350
1350
gpu_write (gpu , VIVS_HI_CLOCK_CONTROL , val );
1351
1351
1352
1352
/* enable clock gating */
1353
- val = gpu_read (gpu , VIVS_PM_POWER_CONTROLS );
1353
+ val = gpu_read_power (gpu , VIVS_PM_POWER_CONTROLS );
1354
1354
val |= VIVS_PM_POWER_CONTROLS_ENABLE_MODULE_CLOCK_GATING ;
1355
- gpu_write (gpu , VIVS_PM_POWER_CONTROLS , val );
1355
+ gpu_write_power (gpu , VIVS_PM_POWER_CONTROLS , val );
1356
1356
}
1357
1357
1358
1358
0 commit comments