summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
diff options
context:
space:
mode:
authorKenneth Feng2019-03-27 10:10:09 +0100
committerAlex Deucher2019-06-22 01:59:25 +0200
commit9e04021602e758bc42e15c9f8c87b196ecf9c6ef (patch)
tree03f1a7c1eac6df3519b3d695bbe2c2fd6c16829a /drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
parentdrm/amd: add gfxoff support on navi10 (diff)
downloadkernel-qcow2-linux-9e04021602e758bc42e15c9f8c87b196ecf9c6ef.tar.gz
kernel-qcow2-linux-9e04021602e758bc42e15c9f8c87b196ecf9c6ef.tar.xz
kernel-qcow2-linux-9e04021602e758bc42e15c9f8c87b196ecf9c6ef.zip
drm/amd/amdgpu: fw version check with gfxoff
1. check the firmware version when enabling gfxoff 2. overwrite the pptable to make sure gfxoff is really enabled on navi10 Signed-off-by: Kenneth Feng <kenneth.feng@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/amdgpu_smu.c')
-rw-r--r--drivers/gpu/drm/amd/powerplay/amdgpu_smu.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
index cc245f4c61ab..63df59e7335d 100644
--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
@@ -331,7 +331,6 @@ static int smu_set_funcs(struct amdgpu_device *adev)
switch (adev->asic_type) {
case CHIP_VEGA20:
case CHIP_NAVI10:
- adev->pm.pp_feature &= ~PP_GFXOFF_MASK;
if (adev->pm.pp_feature & PP_OVERDRIVE_MASK)
smu->od_enabled = true;
smu_v11_0_set_smu_funcs(smu);