diff options
author | Jim Qu <Jim.Qu@amd.com> | 2017-02-10 15:59:59 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-02-17 16:12:58 -0500 |
commit | c836fec5ce8eb0d0c08fa0ea5fb71df3290d1601 (patch) | |
tree | 9c2a020087a83f67d2d41c456343f0361d776f68 /drivers/gpu/drm/amd/amdgpu/vi.c | |
parent | 9ca70356a9260403c1bda40d942935e55d00c11c (diff) | |
download | lwn-c836fec5ce8eb0d0c08fa0ea5fb71df3290d1601.tar.gz lwn-c836fec5ce8eb0d0c08fa0ea5fb71df3290d1601.zip |
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.c | 1 |
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 4922fff08c3c..50bdb24ef8d6 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); |