Skip to content

Commit b45a360

Browse files
Guchun Chenalexdeucher
authored andcommitted
drm/amdgpu: drop jpeg IP initialization in SRIOV case
Fixes: b05b9c5 ("drm/amdgpu: clean up set IP function") Signed-off-by: Guchun Chen <guchun.chen@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 4375d62 commit b45a360

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,8 @@ static int amdgpu_discovery_set_mm_ip_blocks(struct amdgpu_device *adev)
867867
case IP_VERSION(2, 0, 2):
868868
case IP_VERSION(2, 2, 0):
869869
amdgpu_device_ip_block_add(adev, &vcn_v2_0_ip_block);
870-
amdgpu_device_ip_block_add(adev, &jpeg_v2_0_ip_block);
870+
if (!amdgpu_sriov_vf(adev))
871+
amdgpu_device_ip_block_add(adev, &jpeg_v2_0_ip_block);
871872
break;
872873
case IP_VERSION(2, 0, 3):
873874
break;

0 commit comments

Comments
 (0)