diff options
Diffstat (limited to 'common/recipes-graphics/drm/libdrm-2.4.66/0006-amdgpu-fix-for-submition-with-no-ibs.patch')
-rw-r--r-- | common/recipes-graphics/drm/libdrm-2.4.66/0006-amdgpu-fix-for-submition-with-no-ibs.patch | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/common/recipes-graphics/drm/libdrm-2.4.66/0006-amdgpu-fix-for-submition-with-no-ibs.patch b/common/recipes-graphics/drm/libdrm-2.4.66/0006-amdgpu-fix-for-submition-with-no-ibs.patch deleted file mode 100644 index 6c3733a3..00000000 --- a/common/recipes-graphics/drm/libdrm-2.4.66/0006-amdgpu-fix-for-submition-with-no-ibs.patch +++ /dev/null @@ -1,55 +0,0 @@ -From 423c0c3cddd970ec41fd23931b0755ab85f26cc2 Mon Sep 17 00:00:00 2001 -From: Arindam Nath <arindam.nath@amd.com> -Date: Tue, 22 Mar 2016 12:43:09 +0530 -Subject: [PATCH 6/6] amdgpu: fix for submition with no ibs - -Avoid a crash if no IBs are specified. - -Signed-off-by: Ken Wang <Qingqing.Wang@amd.com> -Reviewed-by: Alex Deucher <alexander.deucher@amd.com> ---- - amdgpu/amdgpu_cs.c | 8 ++++++++ - amdgpu/amdgpu_internal.h | 1 + - 2 files changed, 9 insertions(+) - -diff --git a/amdgpu/amdgpu_cs.c b/amdgpu/amdgpu_cs.c -index 01e185e..403ff46 100644 ---- a/amdgpu/amdgpu_cs.c -+++ b/amdgpu/amdgpu_cs.c -@@ -191,6 +191,10 @@ static int amdgpu_cs_submit_one(amdgpu_context_handle context, - return -EINVAL; - if (ibs_request->number_of_ibs > AMDGPU_CS_MAX_IBS_PER_SUBMIT) - return -EINVAL; -+ if (ibs_request->number_of_ibs == 0) { -+ ibs_request->seq_no = AMDGPU_NULL_SUBMIT_SEQ; -+ return 0; -+ } - user_fence = (ibs_request->fence_info.handle != NULL); - - size = ibs_request->number_of_ibs + (user_fence ? 2 : 1) + 1; -@@ -423,6 +427,10 @@ int amdgpu_cs_query_fence_status(struct amdgpu_cs_fence *fence, - return -EINVAL; - if (fence->ring >= AMDGPU_CS_MAX_RINGS) - return -EINVAL; -+ if (fence->fence == AMDGPU_NULL_SUBMIT_SEQ) { -+ *expired = true; -+ return 0; -+ } - - *expired = false; - -diff --git a/amdgpu/amdgpu_internal.h b/amdgpu/amdgpu_internal.h -index 557ba1f..4f039b6 100644 ---- a/amdgpu/amdgpu_internal.h -+++ b/amdgpu/amdgpu_internal.h -@@ -44,6 +44,7 @@ - #define ROUND_DOWN(x, y) ((x) & ~__round_mask(x, y)) - - #define AMDGPU_INVALID_VA_ADDRESS 0xffffffffffffffff -+#define AMDGPU_NULL_SUBMIT_SEQ 0 - - struct amdgpu_bo_va_hole { - struct list_head list; --- -1.9.1 - |