diff options
Diffstat (limited to 'meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0526-drm-amdgpu-use-top-down-allocation-for-non-CPU-acces.patch')
-rw-r--r-- | meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0526-drm-amdgpu-use-top-down-allocation-for-non-CPU-acces.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0526-drm-amdgpu-use-top-down-allocation-for-non-CPU-acces.patch b/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0526-drm-amdgpu-use-top-down-allocation-for-non-CPU-acces.patch new file mode 100644 index 00000000..941f7976 --- /dev/null +++ b/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0526-drm-amdgpu-use-top-down-allocation-for-non-CPU-acces.patch @@ -0,0 +1,34 @@ +From cace5dce5581a5a1232b68e1bc7b778ff40c328b Mon Sep 17 00:00:00 2001 +From: Alex Deucher <alexander.deucher@amd.com> +Date: Wed, 2 Sep 2015 15:06:08 -0400 +Subject: [PATCH 0526/1050] drm/amdgpu: use top down allocation for non-CPU + accessible vram +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Should help avoid fragmentation of vram due to CPU access +requirements. + +Reviewed-by: Christian König <christian.koenig@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +index 57adcad..08b09d5 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +@@ -127,7 +127,7 @@ static void amdgpu_ttm_placement_init(struct amdgpu_device *adev, + placements[c].fpfn = + adev->mc.visible_vram_size >> PAGE_SHIFT; + placements[c++].flags = TTM_PL_FLAG_WC | TTM_PL_FLAG_UNCACHED | +- TTM_PL_FLAG_VRAM; ++ TTM_PL_FLAG_VRAM | TTM_PL_FLAG_TOPDOWN; + } + placements[c].fpfn = 0; + placements[c++].flags = TTM_PL_FLAG_WC | TTM_PL_FLAG_UNCACHED | +-- +1.9.1 + |