Report AMDGPU_RESET_TYPE_IP_BLOCK_SOFT_RESET for the gfx rings with MES,
which the reset uses to map the kernel gfx queue again. Not on SR-IOV
VFs.
The kernel gfx queue and gfx user queue resets then fall back to a soft
reset of the gfx engine before a full reset.
v4: The soft_reset_engine() callback is set by the patch that adds it.
No async gfx ring check: they are always used now.
Reviewed-by: Timur Kristóf <[email protected]>
Signed-off-by: Jesse Zhang <[email protected]>
---
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
index 8485d1aabf3b..4b947f9416c5 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
@@ -1601,6 +1601,10 @@ static int gfx_v12_0_sw_init(struct amdgpu_ip_block
*ip_block)
break;
}
+ if (!amdgpu_sriov_vf(adev) && adev->enable_mes &&
+ !adev->debug_disable_ip_block_soft_reset)
+ adev->gfx.gfx_supported_reset |=
AMDGPU_RESET_TYPE_IP_BLOCK_SOFT_RESET;
+
if (!adev->enable_mes_kiq) {
r = amdgpu_gfx_kiq_init(adev, GFX12_MEC_HPD_SIZE, 0);
if (r) {
--
2.50.1