[PATCH] drm/amdgpu: drop jpeg IP initialization in SRIOV case

Alex Deucher alexdeucher at gmail.com
Wed Nov 10 03:02:50 UTC 2021


On Tue, Nov 9, 2021 at 9:14 PM Guchun Chen <guchun.chen at amd.com> wrote:
>
> Fixes: 67a765c6352d("drm/amdgpu: clean up set IP function")
>
> Signed-off-by: Guchun Chen <guchun.chen at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
> index d7c8d9e3c203..a20d21409c95 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
> @@ -867,7 +867,8 @@ static int amdgpu_discovery_set_mm_ip_blocks(struct amdgpu_device *adev)
>                 case IP_VERSION(2, 0, 2):
>                 case IP_VERSION(2, 2, 0):
>                         amdgpu_device_ip_block_add(adev, &vcn_v2_0_ip_block);
> -                       amdgpu_device_ip_block_add(adev, &jpeg_v2_0_ip_block);
> +                       if (!amdgpu_sriov_vf(adev))
> +                               amdgpu_device_ip_block_add(adev, &jpeg_v2_0_ip_block);
>                         break;
>                 case IP_VERSION(2, 0, 3):
>                         break;
> --
> 2.17.1
>


More information about the amd-gfx mailing list