drm/amdgpu: check scratch registers to see if we need post (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Jun 2017 21:26:47 +0000 (17:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jul 2017 15:06:28 +0000 (11:06 -0400)
commit70d17a25da21e1d497db3580ae27682952ddfd98
treee1860c9647fe47af24e5789af00300bfe2290990
parent833fa075b87c36be437a941393d750c36022d902
drm/amdgpu: check scratch registers to see if we need post (v2)

Rather than checking the CONGIG_MEMSIZE register as that may
not be reliable on some APUs.

v2: The scratch register is only used on CIK+

Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
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