mirror of https://gitee.com/openkylin/linux.git
drm/amdgpu: change Raven always on CUs to 4
For Vega10 and Vega20, the always on CUs are 12. For Raven, it's 4. Signed-off-by: Evan Quan <evan.quan@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
989b68232c
commit
b989531b1f
|
@ -985,8 +985,10 @@ static void gfx_v9_0_init_lbpw(struct amdgpu_device *adev)
|
|||
data |= 0x00C00000;
|
||||
WREG32_SOC15(GC, 0, mmRLC_GPM_GENERAL_7, data);
|
||||
|
||||
/* set RLC_LB_ALWAYS_ACTIVE_CU_MASK = 0xFFF */
|
||||
WREG32_SOC15(GC, 0, mmRLC_LB_ALWAYS_ACTIVE_CU_MASK, 0xFFF);
|
||||
/*
|
||||
* RLC_LB_ALWAYS_ACTIVE_CU_MASK = 0xF (4 CUs AON for Raven),
|
||||
* programmed in gfx_v9_0_init_always_on_cu_mask()
|
||||
*/
|
||||
|
||||
/* set RLC_LB_CNTL = 0x8000_0095, 31 bit is reserved,
|
||||
* but used for RLC_LB_CNTL configuration */
|
||||
|
@ -995,6 +997,8 @@ static void gfx_v9_0_init_lbpw(struct amdgpu_device *adev)
|
|||
data |= REG_SET_FIELD(data, RLC_LB_CNTL, RESERVED, 0x80000);
|
||||
WREG32_SOC15(GC, 0, mmRLC_LB_CNTL, data);
|
||||
mutex_unlock(&adev->grbm_idx_mutex);
|
||||
|
||||
gfx_v9_0_init_always_on_cu_mask(adev);
|
||||
}
|
||||
|
||||
static void gfx_v9_4_init_lbpw(struct amdgpu_device *adev)
|
||||
|
|
Loading…
Reference in New Issue