drm/amdkfd: debugfs hang_hws skip GPU with MES
[ Upstream commit fe9d0061c413f8fb8c529b18b592b04170850ded ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
10ce36501f
commit
1a322b330d
@@ -1493,6 +1493,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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user