diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2017-06-30 17:26:47 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-07-14 11:06:28 -0400 |
commit | 70d17a25da21e1d497db3580ae27682952ddfd98 (patch) | |
tree | e1860c9647fe47af24e5789af00300bfe2290990 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 833fa075b87c36be437a941393d750c36022d902 (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 541695768f0a..d92ac5c1af54 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -736,7 +736,12 @@ bool amdgpu_need_post(struct amdgpu_device *adev) | |||
736 | adev->has_hw_reset = false; | 736 | adev->has_hw_reset = false; |
737 | return true; | 737 | return true; |
738 | } | 738 | } |
739 | /* then check MEM_SIZE, in case the crtcs are off */ | 739 | |
740 | /* bios scratch used on CIK+ */ | ||
741 | if (adev->asic_type >= CHIP_BONAIRE) | ||
742 | return amdgpu_atombios_scratch_need_asic_init(adev); | ||
743 | |||
744 | /* check MEM_SIZE for older asics */ | ||
740 | reg = amdgpu_asic_get_config_memsize(adev); | 745 | reg = amdgpu_asic_get_config_memsize(adev); |
741 | 746 | ||
742 | if ((reg != 0) && (reg != 0xffffffff)) | 747 | if ((reg != 0) && (reg != 0xffffffff)) |