aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
diff options
context:
space:
mode:
authorJim Qu <Jim.Qu@amd.com>2017-02-10 02:59:59 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-02-17 16:12:58 -0500
commitc836fec5ce8eb0d0c08fa0ea5fb71df3290d1601 (patch)
tree9c2a020087a83f67d2d41c456343f0361d776f68 /drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
parent9ca70356a9260403c1bda40d942935e55d00c11c (diff)
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/amdgpu_bios.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
index d9def01f276e..821f7cc2051f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
@@ -100,7 +100,7 @@ static bool igp_read_bios_from_vram(struct amdgpu_device *adev)
100 resource_size_t size = 256 * 1024; /* ??? */ 100 resource_size_t size = 256 * 1024; /* ??? */
101 101
102 if (!(adev->flags & AMD_IS_APU)) 102 if (!(adev->flags & AMD_IS_APU))
103 if (!amdgpu_card_posted(adev)) 103 if (amdgpu_need_post(adev))
104 return false; 104 return false;
105 105
106 adev->bios = NULL; 106 adev->bios = NULL;