drm/radeon: allow to force hard GPU reset.
In some cases, like when freezing for hibernation, we need to be able to force hard reset even if no engine are stuck. This patch add a bool option to current asic reset callback to allow to force hard reset on asic that supports it. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Jérôme Glisse <jglisse@redhat.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:

committed by
Alex Deucher

parent
fabb593587
commit
71fe289970
@@ -1871,10 +1871,15 @@ static void r600_gpu_pci_config_reset(struct radeon_device *rdev)
|
||||
}
|
||||
}
|
||||
|
||||
int r600_asic_reset(struct radeon_device *rdev)
|
||||
int r600_asic_reset(struct radeon_device *rdev, bool hard)
|
||||
{
|
||||
u32 reset_mask;
|
||||
|
||||
if (hard) {
|
||||
r600_gpu_pci_config_reset(rdev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
reset_mask = r600_gpu_check_soft_reset(rdev);
|
||||
|
||||
if (reset_mask)
|
||||
|
Reference in New Issue
Block a user