]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: refine the logic in amdgpu_need_post()
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Mar 2017 16:19:31 +0000 (12:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:55:44 +0000 (23:55 -0400)
commit11d110e55031e3746e8a0a96909d6833c5d2c4d3
treefe615d9237364a68827c0635b78cba1c61d585e7
parent4312ba77185a9c35a2d2cfd7cbedac326e41864d
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c