summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/vi.c
diff options
context:
space:
mode:
authorJim Qu <Jim.Qu@amd.com>2017-02-10 15:59:59 +0800
committerAlex Deucher <alexander.deucher@amd.com>2017-02-17 16:12:58 -0500
commitc836fec5ce8eb0d0c08fa0ea5fb71df3290d1601 (patch)
tree9c2a020087a83f67d2d41c456343f0361d776f68 /drivers/gpu/drm/amd/amdgpu/vi.c
parent9ca70356a9260403c1bda40d942935e55d00c11c (diff)
downloadop-kernel-dev-c836fec5ce8eb0d0c08fa0ea5fb71df3290d1601.zip
op-kernel-dev-c836fec5ce8eb0d0c08fa0ea5fb71df3290d1601.tar.gz
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vi.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/vi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c
index 4922fff..50bdb24 100644
--- a/drivers/gpu/drm/amd/amdgpu/vi.c
+++ b/drivers/gpu/drm/amd/amdgpu/vi.c
@@ -721,6 +721,7 @@ static int vi_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;
return 0;
}
udelay(1);
OpenPOWER on IntegriCloud