]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: for nv12 always need smu ip
authorMonk Liu <Monk.Liu@amd.com>
Wed, 22 Apr 2020 04:09:16 +0000 (12:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 Apr 2020 15:42:11 +0000 (11:42 -0400)
because nv12 SRIOV support one vf mode

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Acked-by: Yintian Tao <yttao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c

index 995bdec9fa7d63c23dce40c25f527f3bc7ef92c4..9c42316c47c08c5cd21eb1b9612279443362d8cd 100644 (file)
@@ -498,8 +498,7 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)
                amdgpu_device_ip_block_add(adev, &gmc_v10_0_ip_block);
                amdgpu_device_ip_block_add(adev, &navi10_ih_ip_block);
                amdgpu_device_ip_block_add(adev, &psp_v11_0_ip_block);
-               if (adev->firmware.load_type == AMDGPU_FW_LOAD_PSP &&
-                   !amdgpu_sriov_vf(adev))
+               if (adev->firmware.load_type == AMDGPU_FW_LOAD_PSP)
                        amdgpu_device_ip_block_add(adev, &smu_v11_0_ip_block);
                if (adev->enable_virtual_display || amdgpu_sriov_vf(adev))
                        amdgpu_device_ip_block_add(adev, &dce_virtual_ip_block);