diff options
Diffstat (limited to 'common/recipes-kernel/linux/files/0164-drm-amdgpu-add-warning-to-amdgpu_bo_gpu_offset-v2.patch')
-rw-r--r-- | common/recipes-kernel/linux/files/0164-drm-amdgpu-add-warning-to-amdgpu_bo_gpu_offset-v2.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0164-drm-amdgpu-add-warning-to-amdgpu_bo_gpu_offset-v2.patch b/common/recipes-kernel/linux/files/0164-drm-amdgpu-add-warning-to-amdgpu_bo_gpu_offset-v2.patch new file mode 100644 index 00000000..9d1d0487 --- /dev/null +++ b/common/recipes-kernel/linux/files/0164-drm-amdgpu-add-warning-to-amdgpu_bo_gpu_offset-v2.patch @@ -0,0 +1,36 @@ +From c9fe183d1d8401a3ded4952eda78d058241224b4 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 0164/1110] 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) +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + 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; + } + +-- +2.7.4 + |