aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0903-drm-amdgpu-mask-out-WC-from-BO-on-unsupported-arches.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0903-drm-amdgpu-mask-out-WC-from-BO-on-unsupported-arches.patch')
-rw-r--r--common/recipes-kernel/linux/files/0903-drm-amdgpu-mask-out-WC-from-BO-on-unsupported-arches.patch47
1 files changed, 0 insertions, 47 deletions
diff --git a/common/recipes-kernel/linux/files/0903-drm-amdgpu-mask-out-WC-from-BO-on-unsupported-arches.patch b/common/recipes-kernel/linux/files/0903-drm-amdgpu-mask-out-WC-from-BO-on-unsupported-arches.patch
deleted file mode 100644
index a16e18fc..00000000
--- a/common/recipes-kernel/linux/files/0903-drm-amdgpu-mask-out-WC-from-BO-on-unsupported-arches.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-From 67faaa1dd312c39b8b5a87f7e6f3316149275a24 Mon Sep 17 00:00:00 2001
-From: Oded Gabbay <oded.gabbay@gmail.com>
-Date: Sat, 30 Jan 2016 07:59:34 +0200
-Subject: [PATCH 0903/1565] drm/amdgpu: mask out WC from BO on unsupported
- arches
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Reviewed-by: Christian König <christian.koenig@amd.com>
-Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
-Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
-Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-Cc: stable@vger.kernel.org
----
- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 8 ++++++++
- 1 file changed, 8 insertions(+)
-
-diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
-index a2a16ac..b8fbbd7 100644
---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
-+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
-@@ -33,6 +33,7 @@
- #include <linux/slab.h>
- #include <drm/drmP.h>
- #include <drm/amdgpu_drm.h>
-+#include <drm/drm_cache.h>
- #include "amdgpu.h"
- #include "amdgpu_trace.h"
-
-@@ -261,6 +262,13 @@ int amdgpu_bo_create_restricted(struct amdgpu_device *adev,
- AMDGPU_GEM_DOMAIN_OA);
-
- bo->flags = flags;
-+
-+ /* For architectures that don't support WC memory,
-+ * mask out the WC flag from the BO
-+ */
-+ if (!drm_arch_can_wc_memory())
-+ bo->flags &= ~AMDGPU_GEM_CREATE_CPU_GTT_USWC;
-+
- amdgpu_fill_placement_to_bo(bo, placement);
- /* Kernel allocation are uninterruptible */
- r = ttm_bo_init(&adev->mman.bdev, &bo->tbo, size, type,
---
-1.9.1
-