From: Alex Deucher Date: Thu, 17 Nov 2016 20:40:22 +0000 (-0500) Subject: drm/amdgpu: put gtt at 0 in the internal address space X-Git-Tag: Ubuntu-5.13.0-19.19~13573^2~23^2~241 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=9dc5a91e4d1cc7accd776f20198df48255de516f;p=mirror_ubuntu-jammy-kernel.git drm/amdgpu: put gtt at 0 in the internal address space There still seem to be some blocks that make accesses in the lower part of the address space. This works around this. Reviewed-by: Junwei Zhang Reviewed-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 00bf0ea0c6d0..cc01b3f27a1f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -602,7 +602,7 @@ void amdgpu_gtt_location(struct amdgpu_device *adev, struct amdgpu_mc *mc) dev_warn(adev->dev, "limiting GTT\n"); mc->gtt_size = size_bf; } - mc->gtt_start = (mc->vram_start & ~mc->gtt_base_align) - mc->gtt_size; + mc->gtt_start = 0; } else { if (mc->gtt_size > size_af) { dev_warn(adev->dev, "limiting GTT\n");