]> www.infradead.org Git - linux.git/commitdiff
drm/amdgpu/gfx9: per queue reset only on bare metal
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2024 14:20:56 +0000 (10:20 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 16 Aug 2024 18:18:35 +0000 (14:18 -0400)
It's not supported under SR-IOV at the moment.

Acked-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c

index 02ff70f4b416fbadc6d0b0ca714746226b91cbb4..cad13e01dd3a4a3026a77db078d76a011c361e40 100644 (file)
@@ -7164,6 +7164,9 @@ static int gfx_v9_0_reset_kcq(struct amdgpu_ring *ring,
        unsigned long flags;
        int i, r;
 
+       if (amdgpu_sriov_vf(adev))
+               return -EINVAL;
+
        if (!kiq->pmf || !kiq->pmf->kiq_unmap_queues)
                return -EINVAL;
 
index 18cb6d45d54f29e25634bedd654611cdaa5ea3bb..092e229f4097dc116a2b579a5c927a3cc9486f6f 100644 (file)
@@ -3471,6 +3471,9 @@ static int gfx_v9_4_3_reset_kcq(struct amdgpu_ring *ring,
        unsigned long flags;
        int r, i;
 
+       if (amdgpu_sriov_vf(adev))
+               return -EINVAL;
+
        if (!kiq->pmf || !kiq->pmf->kiq_unmap_queues)
                return -EINVAL;