Commit f2713e8c authored by Alex Deucher's avatar Alex Deucher

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: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e5f586c7
...@@ -719,7 +719,7 @@ bool amdgpu_need_post(struct amdgpu_device *adev) ...@@ -719,7 +719,7 @@ bool amdgpu_need_post(struct amdgpu_device *adev)
/* then check MEM_SIZE, in case the crtcs are off */ /* then check MEM_SIZE, in case the crtcs are off */
reg = amdgpu_asic_get_config_memsize(adev); reg = amdgpu_asic_get_config_memsize(adev);
if (reg) if ((reg != 0) && (reg != 0xffffffff))
return false; return false;
return true; return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment