diff options
Diffstat (limited to 'meta-amdfalconx86/recipes-kernel/linux/linux-yocto/1047-drm-amdgpu-add-warning-to-amdgpu_bo_gpu_offset-v2.patch')
-rw-r--r-- | meta-amdfalconx86/recipes-kernel/linux/linux-yocto/1047-drm-amdgpu-add-warning-to-amdgpu_bo_gpu_offset-v2.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/1047-drm-amdgpu-add-warning-to-amdgpu_bo_gpu_offset-v2.patch b/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/1047-drm-amdgpu-add-warning-to-amdgpu_bo_gpu_offset-v2.patch new file mode 100644 index 00000000..6a3866a0 --- /dev/null +++ b/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/1047-drm-amdgpu-add-warning-to-amdgpu_bo_gpu_offset-v2.patch @@ -0,0 +1,35 @@ +From 8a4fcf1c2d46529ca1d74c2cabe827df8bd189d1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com> +Date: Tue, 15 Dec 2015 11:10:30 +0100 +Subject: [PATCH 1047/1050] drm/amdgpu: add warning to amdgpu_bo_gpu_offset() + v2 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Check if there really is a valid offset for the BO. + +v2: user WARN_ON_ONCE + +Signed-off-by: Christian König <christian.koenig@amd.com> +Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1) +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +index ea756e7..5107fb2 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +@@ -96,6 +96,7 @@ static inline void amdgpu_bo_unreserve(struct amdgpu_bo *bo) + */ + static inline u64 amdgpu_bo_gpu_offset(struct amdgpu_bo *bo) + { ++ WARN_ON_ONCE(bo->tbo.mem.mem_type == TTM_PL_SYSTEM); + return bo->tbo.offset; + } + +-- +1.9.1 + |