]> Git Repo - linux.git/commitdiff
drm/amdgpu: put gtt at 0 in the internal address space
authorAlex Deucher <[email protected]>
Thu, 17 Nov 2016 20:40:22 +0000 (15:40 -0500)
committerAlex Deucher <[email protected]>
Thu, 30 Mar 2017 03:53:23 +0000 (23:53 -0400)
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 <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 00bf0ea0c6d07a809759da3aa27d9abddc2fb890..cc01b3f27a1fed5b5ef9555c8a0416c48d2dd8ab 100644 (file)
@@ -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");
This page took 0.063285 seconds and 4 git commands to generate.