drm/amdgpu: add coreboot workaround for KV/KB
authorChristian König <christian.koenig@amd.com>
Thu, 16 Jan 2020 13:06:59 +0000 (14:06 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Jan 2020 21:46:45 +0000 (16:46 -0500)
commit77171eade8faa713c1104b29ea7ff96915ecf9fb
tree20d9fe6b15869cc0840f22c071e1075d4e3ee936
parentda2f84ba73df11186cf23bec45d039f3b9162bd8
drm/amdgpu: add coreboot workaround for KV/KB

Coreboot seems to have a problem correctly setting up access to the stolen VRAM
on KV/KB. Use the direct access only when necessary.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reported-and-tested-by: Fredrik Bruhn <fredrik.bruhn@unibap.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c