@@ -605,11 +605,9 @@ static int a5xx_ucode_init(struct msm_gpu *gpu)
605605 a5xx_ucode_check_version (a5xx_gpu , a5xx_gpu -> pfp_bo );
606606 }
607607
608- gpu_write64 (gpu , REG_A5XX_CP_ME_INSTR_BASE_LO ,
609- REG_A5XX_CP_ME_INSTR_BASE_HI , a5xx_gpu -> pm4_iova );
608+ gpu_write64 (gpu , REG_A5XX_CP_ME_INSTR_BASE_LO , a5xx_gpu -> pm4_iova );
610609
611- gpu_write64 (gpu , REG_A5XX_CP_PFP_INSTR_BASE_LO ,
612- REG_A5XX_CP_PFP_INSTR_BASE_HI , a5xx_gpu -> pfp_iova );
610+ gpu_write64 (gpu , REG_A5XX_CP_PFP_INSTR_BASE_LO , a5xx_gpu -> pfp_iova );
613611
614612 return 0 ;
615613}
@@ -868,8 +866,7 @@ static int a5xx_hw_init(struct msm_gpu *gpu)
868866 * memory rendering at this point in time and we don't want to block off
869867 * part of the virtual memory space.
870868 */
871- gpu_write64 (gpu , REG_A5XX_RBBM_SECVID_TSB_TRUSTED_BASE_LO ,
872- REG_A5XX_RBBM_SECVID_TSB_TRUSTED_BASE_HI , 0x00000000 );
869+ gpu_write64 (gpu , REG_A5XX_RBBM_SECVID_TSB_TRUSTED_BASE_LO , 0x00000000 );
873870 gpu_write (gpu , REG_A5XX_RBBM_SECVID_TSB_TRUSTED_SIZE , 0x00000000 );
874871
875872 /* Put the GPU into 64 bit by default */
@@ -908,8 +905,7 @@ static int a5xx_hw_init(struct msm_gpu *gpu)
908905 return ret ;
909906
910907 /* Set the ringbuffer address */
911- gpu_write64 (gpu , REG_A5XX_CP_RB_BASE , REG_A5XX_CP_RB_BASE_HI ,
912- gpu -> rb [0 ]-> iova );
908+ gpu_write64 (gpu , REG_A5XX_CP_RB_BASE , gpu -> rb [0 ]-> iova );
913909
914910 /*
915911 * If the microcode supports the WHERE_AM_I opcode then we can use that
@@ -936,7 +932,7 @@ static int a5xx_hw_init(struct msm_gpu *gpu)
936932 }
937933
938934 gpu_write64 (gpu , REG_A5XX_CP_RB_RPTR_ADDR ,
939- REG_A5XX_CP_RB_RPTR_ADDR_HI , shadowptr (a5xx_gpu , gpu -> rb [0 ]));
935+ shadowptr (a5xx_gpu , gpu -> rb [0 ]));
940936 } else if (gpu -> nr_rings > 1 ) {
941937 /* Disable preemption if WHERE_AM_I isn't available */
942938 a5xx_preempt_fini (gpu );
@@ -1239,9 +1235,9 @@ static void a5xx_fault_detect_irq(struct msm_gpu *gpu)
12391235 gpu_read (gpu , REG_A5XX_RBBM_STATUS ),
12401236 gpu_read (gpu , REG_A5XX_CP_RB_RPTR ),
12411237 gpu_read (gpu , REG_A5XX_CP_RB_WPTR ),
1242- gpu_read64 (gpu , REG_A5XX_CP_IB1_BASE , REG_A5XX_CP_IB1_BASE_HI ),
1238+ gpu_read64 (gpu , REG_A5XX_CP_IB1_BASE ),
12431239 gpu_read (gpu , REG_A5XX_CP_IB1_BUFSZ ),
1244- gpu_read64 (gpu , REG_A5XX_CP_IB2_BASE , REG_A5XX_CP_IB2_BASE_HI ),
1240+ gpu_read64 (gpu , REG_A5XX_CP_IB2_BASE ),
12451241 gpu_read (gpu , REG_A5XX_CP_IB2_BUFSZ ));
12461242
12471243 /* Turn off the hangcheck timer to keep it from bothering us */
@@ -1427,8 +1423,7 @@ static int a5xx_pm_suspend(struct msm_gpu *gpu)
14271423
14281424static int a5xx_get_timestamp (struct msm_gpu * gpu , uint64_t * value )
14291425{
1430- * value = gpu_read64 (gpu , REG_A5XX_RBBM_ALWAYSON_COUNTER_LO ,
1431- REG_A5XX_RBBM_ALWAYSON_COUNTER_HI );
1426+ * value = gpu_read64 (gpu , REG_A5XX_RBBM_ALWAYSON_COUNTER_LO );
14321427
14331428 return 0 ;
14341429}
@@ -1465,8 +1460,7 @@ static int a5xx_crashdumper_run(struct msm_gpu *gpu,
14651460 if (IS_ERR_OR_NULL (dumper -> ptr ))
14661461 return - EINVAL ;
14671462
1468- gpu_write64 (gpu , REG_A5XX_CP_CRASH_SCRIPT_BASE_LO ,
1469- REG_A5XX_CP_CRASH_SCRIPT_BASE_HI , dumper -> iova );
1463+ gpu_write64 (gpu , REG_A5XX_CP_CRASH_SCRIPT_BASE_LO , dumper -> iova );
14701464
14711465 gpu_write (gpu , REG_A5XX_CP_CRASH_DUMP_CNTL , 1 );
14721466
@@ -1666,8 +1660,7 @@ static u64 a5xx_gpu_busy(struct msm_gpu *gpu, unsigned long *out_sample_rate)
16661660{
16671661 u64 busy_cycles ;
16681662
1669- busy_cycles = gpu_read64 (gpu , REG_A5XX_RBBM_PERFCTR_RBBM_0_LO ,
1670- REG_A5XX_RBBM_PERFCTR_RBBM_0_HI );
1663+ busy_cycles = gpu_read64 (gpu , REG_A5XX_RBBM_PERFCTR_RBBM_0_LO );
16711664 * out_sample_rate = clk_get_rate (gpu -> core_clk );
16721665
16731666 return busy_cycles ;
0 commit comments