aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2021-08-09 12:29:56 -0400
committerAlex Deucher <alexander.deucher@amd.com>2021-10-04 15:23:01 -0400
commitfe323f039db850362d3d96a377f87efc912cf866 (patch)
tree0d38d84c4cdfc2d607d6eaa51791c73b80742295 /drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
parentdrm/amdgpu: get VCN and SDMA instances from IP discovery table (diff)
downloadlinux-dev-fe323f039db850362d3d96a377f87efc912cf866.tar.xz
linux-dev-fe323f039db850362d3d96a377f87efc912cf866.zip
drm/amdgpu/sdma: remove manual instance setting
Handled by IP discovery now. Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
index 3219dca3e44f..cb74f8c35d0a 100644
--- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
@@ -1856,23 +1856,6 @@ static int sdma_v4_0_early_init(void *handle)
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
int r;
- switch (adev->ip_versions[SDMA0_HWIP]) {
- case IP_VERSION(4, 1, 0):
- case IP_VERSION(4, 1, 1):
- case IP_VERSION(4, 1, 2):
- adev->sdma.num_instances = 1;
- break;
- case IP_VERSION(4, 2, 2):
- adev->sdma.num_instances = 8;
- break;
- case IP_VERSION(4, 4, 0):
- adev->sdma.num_instances = 5;
- break;
- default:
- adev->sdma.num_instances = 2;
- break;
- }
-
r = sdma_v4_0_init_microcode(adev);
if (r) {
DRM_ERROR("Failed to load sdma firmware!\n");