From: Alex Deucher Date: Tue, 27 Dec 2022 16:26:11 +0000 (-0500) Subject: drm/amdkfd: simplify cases X-Git-Tag: v6.6.7~3356^2~30^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f200521899d22ec37ddb927f6a5755d8eacbc9e5;p=platform%2Fkernel%2Flinux-starfive.git drm/amdkfd: simplify cases A number of the gfx8 cases were the same. Clean them up. Reviewed-by: Felix Kuehling Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu/drm/amd/amdkfd/kfd_device.c index b893634..3de7f61 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c @@ -262,23 +262,12 @@ struct kfd_dev *kgd2kfd_probe(struct amdgpu_device *adev, bool vf) f2g = &gfx_v8_kfd2kgd; break; case CHIP_FIJI: - gfx_target_version = 80003; - f2g = &gfx_v8_kfd2kgd; - break; case CHIP_POLARIS10: gfx_target_version = 80003; f2g = &gfx_v8_kfd2kgd; break; case CHIP_POLARIS11: - gfx_target_version = 80003; - if (!vf) - f2g = &gfx_v8_kfd2kgd; - break; case CHIP_POLARIS12: - gfx_target_version = 80003; - if (!vf) - f2g = &gfx_v8_kfd2kgd; - break; case CHIP_VEGAM: gfx_target_version = 80003; if (!vf)