Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/linux drm: Assert dma_fence_wait inter...
details: https://anonhg.NetBSD.org/src/rev/b1ef1fe57d7b
branches: trunk
changeset: 1028958:b1ef1fe57d7b
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 12:34:58 2021 +0000
description:
drm: Assert dma_fence_wait internal return value.
diffstat:
sys/external/bsd/drm2/linux/linux_dma_fence.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r d4ece6dfcbe3 -r b1ef1fe57d7b sys/external/bsd/drm2/linux/linux_dma_fence.c
--- a/sys/external/bsd/drm2/linux/linux_dma_fence.c Sun Dec 19 12:34:50 2021 +0000
+++ b/sys/external/bsd/drm2/linux/linux_dma_fence.c Sun Dec 19 12:34:58 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_dma_fence.c,v 1.32 2021/12/19 12:34:16 riastradh Exp $ */
+/* $NetBSD: linux_dma_fence.c,v 1.33 2021/12/19 12:34:58 riastradh Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_dma_fence.c,v 1.32 2021/12/19 12:34:16 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_dma_fence.c,v 1.33 2021/12/19 12:34:58 riastradh Exp $");
#include <sys/atomic.h>
#include <sys/condvar.h>
@@ -909,6 +909,8 @@
ret = dma_fence_default_wait(fence, intr,
MAX_SCHEDULE_TIMEOUT);
KASSERT(ret != 0);
+ KASSERTMSG(ret == -ERESTARTSYS || ret == MAX_SCHEDULE_TIMEOUT,
+ "ret=%ld", ret);
return (ret < 0 ? ret : 0);
}
Home |
Main Index |
Thread Index |
Old Index