diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2017-03-28 19:19:31 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-03-30 06:55:44 +0300 |
commit | f2713e8c2a34711ed820a3095a7c5f4a0c85df1c (patch) | |
tree | fe615d9237364a68827c0635b78cba1c61d585e7 /drivers/gpu/drm | |
parent | e5f586c763a079349398e2b0c7c271386193ac34 (diff) | |
download | linux-f2713e8c2a34711ed820a3095a7c5f4a0c85df1c.tar.xz |
drm/amdgpu: refine the logic in amdgpu_need_post()
We check the mem config register to make sure it's been
programmed by the vbios to determine if we need to post
so we check for a non-0 value. However, when the asic
comes out of reset, we may see all ones here, so check
for that too.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index abb51bd77ca7..ae31744dac28 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -719,7 +719,7 @@ bool amdgpu_need_post(struct amdgpu_device *adev) /* then check MEM_SIZE, in case the crtcs are off */ reg = amdgpu_asic_get_config_memsize(adev); - if (reg) + if ((reg != 0) && (reg != 0xffffffff)) return false; return true; |