drm/amd/amdgpu: post card if there is real hw resetting performed
Check whether we need to post rather than whether the asic is posted. There are some cases (e.g., GPU reset or resume from hibernate) where we need to force post even if the asic has been posted. Signed-off-by: Jim Qu <Jim.Qu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -1176,6 +1176,7 @@ static int cik_gpu_pci_config_reset(struct amdgpu_device *adev)
|
||||
if (RREG32(mmCONFIG_MEMSIZE) != 0xffffffff) {
|
||||
/* enable BM */
|
||||
pci_set_master(adev->pdev);
|
||||
adev->has_hw_reset = true;
|
||||
r = 0;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user