]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/amdgpu/gfx10: per queue reset only on bare metal
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2024 14:21:21 +0000 (10:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Sep 2024 15:41:16 +0000 (11:41 -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_v10_0.c

index 05f8b1495714750b5b9c3d9a9d2e5b5c462f7cca..fca5aee55f5c3d1ddab32e6f48d572b99cd36338 100644 (file)
@@ -9426,6 +9426,9 @@ static int gfx_v10_0_reset_kgq(struct amdgpu_ring *ring, unsigned int vmid)
        u64 addr;
        int r;
 
+       if (amdgpu_sriov_vf(adev))
+               return -EINVAL;
+
        if (!kiq->pmf || !kiq->pmf->kiq_unmap_queues)
                return -EINVAL;
 
@@ -9489,6 +9492,9 @@ static int gfx_v10_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;