drm/amdkfd: debugfs hang_hws skip GPU with MES

debugfs hang_hws is used by GPU reset test with HWS, for MES this crash
the kernel with NULL pointer access because dqm->packet_mgr is not setup
for MES path.

Skip GPU with MES for now, MES hang_hws debugfs interface will be
supported later.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Philip Yang 2025-02-10 09:42:31 -05:00 committed by Alex Deucher
parent 7919b4cad5
commit fe9d0061c4

View File

@ -1604,6 +1604,11 @@ int kfd_debugfs_hang_hws(struct kfd_node *dev)
return -EINVAL;
}
if (dev->kfd->shared_resources.enable_mes) {
dev_err(dev->adev->dev, "Inducing MES hang is not supported\n");
return -EINVAL;
}
return dqm_debugfs_hang_hws(dev->dqm);
}