mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-20 11:08:14 +07:00
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>
This commit is contained in:
parent
e5f586c763
commit
f2713e8c2a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user