diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2024-08-20 16:21:15 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-08-29 13:38:48 -0400 |
commit | 7c1a2d8aba6cadde0cc542b2d805edc0be667e79 (patch) | |
tree | 7cfab27b7b1499bd53b0c9bbbcda9d703b7da3af /drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | |
parent | a9b67c036c7f5d187fb88eb74fe04dff1098700f (diff) | |
download | linux-7c1a2d8aba6cadde0cc542b2d805edc0be667e79.tar.gz linux-7c1a2d8aba6cadde0cc542b2d805edc0be667e79.tar.bz2 linux-7c1a2d8aba6cadde0cc542b2d805edc0be667e79.zip |
drm/amdgpu/gfx9: put queue resets behind a debug option
Pending extended validation.
Reviewed-and-tested-by: Jiadong Zhu <Jiadong.Zhu@amd.com>
Acked-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index 21089aadbb7b..8cf5d7925b51 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -7233,6 +7233,10 @@ static int gfx_v9_0_reset_kcq(struct amdgpu_ring *ring, unsigned long flags; int i, r; + if (!adev->debug_exp_resets && + !adev->gfx.num_gfx_rings) + return -EINVAL; + if (amdgpu_sriov_vf(adev)) return -EINVAL; |