mirror of https://gitee.com/openkylin/linux.git
drm/amdgpu: fix enable_cp_power_gating in gfx_v8.0.
the CP_PG_DISABLE bit was reversed. Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
This commit is contained in:
parent
54971406b7
commit
eb58424122
|
@ -3996,7 +3996,7 @@ static void cz_enable_sck_slow_down_on_power_down(struct amdgpu_device *adev,
|
||||||
|
|
||||||
static void cz_enable_cp_power_gating(struct amdgpu_device *adev, bool enable)
|
static void cz_enable_cp_power_gating(struct amdgpu_device *adev, bool enable)
|
||||||
{
|
{
|
||||||
WREG32_FIELD(RLC_PG_CNTL, CP_PG_DISABLE, enable ? 1 : 0);
|
WREG32_FIELD(RLC_PG_CNTL, CP_PG_DISABLE, enable ? 0 : 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gfx_v8_0_init_pg(struct amdgpu_device *adev)
|
static void gfx_v8_0_init_pg(struct amdgpu_device *adev)
|
||||||
|
|
Loading…
Reference in New Issue