OSDN Git Service

drm/amd/amdkfd: Fix kernel panic when reset failed and been triggered again
authorshaoyunl <shaoyun.liu@amd.com>
Sun, 14 Nov 2021 17:38:18 +0000 (12:38 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Nov 2021 19:45:02 +0000 (14:45 -0500)
commitc96cb65989036feaeaff371551b40910f32f3c6c
tree5d2ba035346a98d8a227a778c9ab97b4f4caf6af
parent33155ce6e1a846759ba218ca8aa792305b351133
drm/amd/amdkfd: Fix kernel panic when reset failed and been triggered again

In SRIOV configuration, the reset may failed to bring asic back to normal but stop cpsch
already been called, the start_cpsch will not be called since there is no resume in this
case.  When reset been triggered again, driver should avoid to do uninitialization again.

Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c