[PATCH xf86-video-amdgpu 1/3] Ignore AMDGPU_DRM_QUEUE_ERROR (0) in amdgpu_drm_abort_entry

Michel Dänzer michel at daenzer.net
Wed Apr 18 10:37:38 UTC 2018


From: Michel Dänzer <michel.daenzer at amd.com>

This allows a following change to be slightly simpler.

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/amdgpu_drm_queue.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/amdgpu_drm_queue.c b/src/amdgpu_drm_queue.c
index 2aa21e04d..d1456ca84 100644
--- a/src/amdgpu_drm_queue.c
+++ b/src/amdgpu_drm_queue.c
@@ -150,6 +150,9 @@ amdgpu_drm_abort_entry(uintptr_t seq)
 {
 	struct amdgpu_drm_queue_entry *e, *tmp;
 
+	if (seq == AMDGPU_DRM_QUEUE_ERROR)
+		return;
+
 	xorg_list_for_each_entry_safe(e, tmp, &amdgpu_drm_queue, list) {
 		if (e->seq == seq) {
 			amdgpu_drm_abort_one(e);
-- 
2.17.0



More information about the amd-gfx mailing list