aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2022-02-14 15:44:19 -0500
committerAlex Deucher <alexander.deucher@amd.com>2022-02-16 17:30:02 -0500
commitdfcc3e8c24cc1fcdf9e14ef98803e295b5e4f721 (patch)
tree3168a2571eec615743f47100ea5a2c48733c4cb5 /drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
parentdrm/amd/display: For vblank_disable_immediate, check PSR is really used (diff)
downloadwireguard-linux-dfcc3e8c24cc1fcdf9e14ef98803e295b5e4f721.tar.xz
wireguard-linux-dfcc3e8c24cc1fcdf9e14ef98803e295b5e4f721.zip
drm/amdgpu: make cyan skillfish support code more consistent
Since this is an existing asic, adjust the code to follow the same logic as previously so the driver state is consistent. No functional change intended. Acked-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
index 45e10d5028c5..81e033549dda 100644
--- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
@@ -264,8 +264,7 @@ static int sdma_v5_0_init_microcode(struct amdgpu_device *adev)
chip_name = "navi12";
break;
case IP_VERSION(5, 0, 1):
- if (adev->apu_flags & AMD_APU_IS_CYAN_SKILLFISH2 ||
- adev->ip_versions[GC_HWIP][0] == IP_VERSION(10, 1, 4))
+ if (adev->apu_flags & AMD_APU_IS_CYAN_SKILLFISH2)
chip_name = "cyan_skillfish2";
else
chip_name = "cyan_skillfish";