drm/amdgpu/gmc9: rework stolen vga memory handling
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Aug 2018 14:31:56 +0000 (09:31 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Sun, 2 Sep 2018 15:16:51 +0000 (10:16 -0500)
commitcd2b56238ef7173e1e0363c9e6d035cfd4f47140
tree48d430cad8baa3e68a3ee506628c28675ff48e07
parent5d35ed4832dab334e076a24c18a52776c2f24911
drm/amdgpu/gmc9: rework stolen vga memory handling

No functional change, just rework it in order to adjust the
behavior on a per asic level.  The problem is that on vega10,
something corrupts the lower 8 MB of vram on the second
resume from S3.  This does not seem to affect Raven, other
gmc9 based asics need testing.

Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c