drm/amdgpu: force fbdev into vram
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 5 May 2020 13:42:26 +0000 (09:42 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 May 2020 06:20:22 +0000 (08:20 +0200)
commit32b9de3e935dbaf39a2044824b5df799f50cac84
tree2686f9d86ea17103a236b7aeda308d3109e776cd
parente1b2b93243ca1dbdb6dd9a2f448c4ef9dbdb2673
drm/amdgpu: force fbdev into vram

[ Upstream commit a6aacb2b26e85aa619cf0c6f98d0ca77314cd2a1 ]

We set the fb smem pointer to the offset into the BAR, so keep
the fbdev bo in vram.

Bug: https://bugzilla.kernel.org/show_bug.cgi?id=207581
Fixes: 6c8d74caa2fa33 ("drm/amdgpu: Enable scatter gather display support")
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c