@@ -1564,7 +1564,7 @@ static void gfx_v9_0_init_always_on_cu_mask(struct amdgpu_device *adev)
1564
1564
mask = 1 ;
1565
1565
cu_bitmap = 0 ;
1566
1566
counter = 0 ;
1567
- gfx_v9_0_select_se_sh (adev , i , j , 0xffffffff );
1567
+ amdgpu_gfx_select_se_sh (adev , i , j , 0xffffffff );
1568
1568
1569
1569
for (k = 0 ; k < adev -> gfx .config .max_cu_per_sh ; k ++ ) {
1570
1570
if (cu_info -> bitmap [i ][j ] & mask ) {
@@ -1583,7 +1583,7 @@ static void gfx_v9_0_init_always_on_cu_mask(struct amdgpu_device *adev)
1583
1583
cu_info -> ao_cu_bitmap [i ][j ] = cu_bitmap ;
1584
1584
}
1585
1585
}
1586
- gfx_v9_0_select_se_sh (adev , 0xffffffff , 0xffffffff , 0xffffffff );
1586
+ amdgpu_gfx_select_se_sh (adev , 0xffffffff , 0xffffffff , 0xffffffff );
1587
1587
mutex_unlock (& adev -> grbm_idx_mutex );
1588
1588
}
1589
1589
@@ -1605,7 +1605,7 @@ static void gfx_v9_0_init_lbpw(struct amdgpu_device *adev)
1605
1605
1606
1606
mutex_lock (& adev -> grbm_idx_mutex );
1607
1607
/* set mmRLC_LB_INIT_CU_MASK thru broadcast mode to enable all SE/SH*/
1608
- gfx_v9_0_select_se_sh (adev , 0xffffffff , 0xffffffff , 0xffffffff );
1608
+ amdgpu_gfx_select_se_sh (adev , 0xffffffff , 0xffffffff , 0xffffffff );
1609
1609
WREG32_SOC15 (GC , 0 , mmRLC_LB_INIT_CU_MASK , 0xffffffff );
1610
1610
1611
1611
/* set mmRLC_LB_PARAMS = 0x003F_1006 */
@@ -1654,7 +1654,7 @@ static void gfx_v9_4_init_lbpw(struct amdgpu_device *adev)
1654
1654
1655
1655
mutex_lock (& adev -> grbm_idx_mutex );
1656
1656
/* set mmRLC_LB_INIT_CU_MASK thru broadcast mode to enable all SE/SH*/
1657
- gfx_v9_0_select_se_sh (adev , 0xffffffff , 0xffffffff , 0xffffffff );
1657
+ amdgpu_gfx_select_se_sh (adev , 0xffffffff , 0xffffffff , 0xffffffff );
1658
1658
WREG32_SOC15 (GC , 0 , mmRLC_LB_INIT_CU_MASK , 0xffffffff );
1659
1659
1660
1660
/* set mmRLC_LB_PARAMS = 0x003F_1006 */
@@ -2322,13 +2322,13 @@ static void gfx_v9_0_setup_rb(struct amdgpu_device *adev)
2322
2322
mutex_lock (& adev -> grbm_idx_mutex );
2323
2323
for (i = 0 ; i < adev -> gfx .config .max_shader_engines ; i ++ ) {
2324
2324
for (j = 0 ; j < adev -> gfx .config .max_sh_per_se ; j ++ ) {
2325
- gfx_v9_0_select_se_sh (adev , i , j , 0xffffffff );
2325
+ amdgpu_gfx_select_se_sh (adev , i , j , 0xffffffff );
2326
2326
data = gfx_v9_0_get_rb_active_bitmap (adev );
2327
2327
active_rbs |= data << ((i * adev -> gfx .config .max_sh_per_se + j ) *
2328
2328
rb_bitmap_width_per_sh );
2329
2329
}
2330
2330
}
2331
- gfx_v9_0_select_se_sh (adev , 0xffffffff , 0xffffffff , 0xffffffff );
2331
+ amdgpu_gfx_select_se_sh (adev , 0xffffffff , 0xffffffff , 0xffffffff );
2332
2332
mutex_unlock (& adev -> grbm_idx_mutex );
2333
2333
2334
2334
adev -> gfx .config .backend_enable_mask = active_rbs ;
@@ -2465,14 +2465,14 @@ static void gfx_v9_0_wait_for_rlc_serdes(struct amdgpu_device *adev)
2465
2465
mutex_lock (& adev -> grbm_idx_mutex );
2466
2466
for (i = 0 ; i < adev -> gfx .config .max_shader_engines ; i ++ ) {
2467
2467
for (j = 0 ; j < adev -> gfx .config .max_sh_per_se ; j ++ ) {
2468
- gfx_v9_0_select_se_sh (adev , i , j , 0xffffffff );
2468
+ amdgpu_gfx_select_se_sh (adev , i , j , 0xffffffff );
2469
2469
for (k = 0 ; k < adev -> usec_timeout ; k ++ ) {
2470
2470
if (RREG32_SOC15 (GC , 0 , mmRLC_SERDES_CU_MASTER_BUSY ) == 0 )
2471
2471
break ;
2472
2472
udelay (1 );
2473
2473
}
2474
2474
if (k == adev -> usec_timeout ) {
2475
- gfx_v9_0_select_se_sh (adev , 0xffffffff ,
2475
+ amdgpu_gfx_select_se_sh (adev , 0xffffffff ,
2476
2476
0xffffffff , 0xffffffff );
2477
2477
mutex_unlock (& adev -> grbm_idx_mutex );
2478
2478
DRM_INFO ("Timeout wait for RLC serdes %u,%u\n" ,
@@ -2481,7 +2481,7 @@ static void gfx_v9_0_wait_for_rlc_serdes(struct amdgpu_device *adev)
2481
2481
}
2482
2482
}
2483
2483
}
2484
- gfx_v9_0_select_se_sh (adev , 0xffffffff , 0xffffffff , 0xffffffff );
2484
+ amdgpu_gfx_select_se_sh (adev , 0xffffffff , 0xffffffff , 0xffffffff );
2485
2485
mutex_unlock (& adev -> grbm_idx_mutex );
2486
2486
2487
2487
mask = RLC_SERDES_NONCU_MASTER_BUSY__SE_MASTER_BUSY_MASK |
@@ -6482,7 +6482,7 @@ static void gfx_v9_0_reset_ras_error_count(struct amdgpu_device *adev)
6482
6482
for (i = 0 ; i < ARRAY_SIZE (gfx_v9_0_edc_counter_regs ); i ++ ) {
6483
6483
for (j = 0 ; j < gfx_v9_0_edc_counter_regs [i ].se_num ; j ++ ) {
6484
6484
for (k = 0 ; k < gfx_v9_0_edc_counter_regs [i ].instance ; k ++ ) {
6485
- gfx_v9_0_select_se_sh (adev , j , 0x0 , k );
6485
+ amdgpu_gfx_select_se_sh (adev , j , 0x0 , k );
6486
6486
RREG32 (SOC15_REG_ENTRY_OFFSET (gfx_v9_0_edc_counter_regs [i ]));
6487
6487
}
6488
6488
}
@@ -6544,7 +6544,7 @@ static void gfx_v9_0_query_ras_error_count(struct amdgpu_device *adev,
6544
6544
for (i = 0 ; i < ARRAY_SIZE (gfx_v9_0_edc_counter_regs ); i ++ ) {
6545
6545
for (j = 0 ; j < gfx_v9_0_edc_counter_regs [i ].se_num ; j ++ ) {
6546
6546
for (k = 0 ; k < gfx_v9_0_edc_counter_regs [i ].instance ; k ++ ) {
6547
- gfx_v9_0_select_se_sh (adev , j , 0 , k );
6547
+ amdgpu_gfx_select_se_sh (adev , j , 0 , k );
6548
6548
reg_value =
6549
6549
RREG32 (SOC15_REG_ENTRY_OFFSET (gfx_v9_0_edc_counter_regs [i ]));
6550
6550
if (reg_value )
@@ -6559,7 +6559,7 @@ static void gfx_v9_0_query_ras_error_count(struct amdgpu_device *adev,
6559
6559
err_data -> ce_count += sec_count ;
6560
6560
err_data -> ue_count += ded_count ;
6561
6561
6562
- gfx_v9_0_select_se_sh (adev , 0xffffffff , 0xffffffff , 0xffffffff );
6562
+ amdgpu_gfx_select_se_sh (adev , 0xffffffff , 0xffffffff , 0xffffffff );
6563
6563
mutex_unlock (& adev -> grbm_idx_mutex );
6564
6564
6565
6565
gfx_v9_0_query_utc_edc_status (adev , err_data );
@@ -6963,7 +6963,7 @@ static int gfx_v9_0_get_cu_info(struct amdgpu_device *adev,
6963
6963
mask = 1 ;
6964
6964
ao_bitmap = 0 ;
6965
6965
counter = 0 ;
6966
- gfx_v9_0_select_se_sh (adev , i , j , 0xffffffff );
6966
+ amdgpu_gfx_select_se_sh (adev , i , j , 0xffffffff );
6967
6967
gfx_v9_0_set_user_cu_inactive_bitmap (
6968
6968
adev , disable_masks [i * adev -> gfx .config .max_sh_per_se + j ]);
6969
6969
bitmap = gfx_v9_0_get_cu_active_bitmap (adev );
@@ -6996,7 +6996,7 @@ static int gfx_v9_0_get_cu_info(struct amdgpu_device *adev,
6996
6996
cu_info -> ao_cu_bitmap [i % 4 ][j + i / 4 ] = ao_bitmap ;
6997
6997
}
6998
6998
}
6999
- gfx_v9_0_select_se_sh (adev , 0xffffffff , 0xffffffff , 0xffffffff );
6999
+ amdgpu_gfx_select_se_sh (adev , 0xffffffff , 0xffffffff , 0xffffffff );
7000
7000
mutex_unlock (& adev -> grbm_idx_mutex );
7001
7001
7002
7002
cu_info -> number = active_cu_number ;
0 commit comments