Module Name: src
Committed By: rin
Date: Thu Apr 15 00:11:10 UTC 2021
Modified Files:
src/sys/arch/alpha/common: sgmap_typedep.c
Log Message:
Fix inverted logic!!
vmem_xalloc(9) should be used with VM_NOSLEEP for BUS_DMA_NOWAIT.
To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/alpha/common/sgmap_typedep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/alpha/common/sgmap_typedep.c
diff -u src/sys/arch/alpha/common/sgmap_typedep.c:1.40 src/sys/arch/alpha/common/sgmap_typedep.c:1.41
--- src/sys/arch/alpha/common/sgmap_typedep.c:1.40 Sun Oct 11 00:33:30 2020
+++ src/sys/arch/alpha/common/sgmap_typedep.c Thu Apr 15 00:11:09 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: sgmap_typedep.c,v 1.40 2020/10/11 00:33:30 thorpej Exp $ */
+/* $NetBSD: sgmap_typedep.c,v 1.41 2021/04/15 00:11:09 rin Exp $ */
/*-
* Copyright (c) 1997, 1998, 2001 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: sgmap_typedep.c,v 1.40 2020/10/11 00:33:30 thorpej Exp $");
+__KERNEL_RCSID(1, "$NetBSD: sgmap_typedep.c,v 1.41 2021/04/15 00:11:09 rin Exp $");
#include "opt_ddb.h"
@@ -138,7 +138,7 @@ __C(SGMAP_TYPE,_load_buffer)(bus_dma_tag
#endif
const vm_flag_t vmflags = VM_INSTANTFIT |
- ((flags & BUS_DMA_NOWAIT) ? VM_SLEEP : VM_NOSLEEP);
+ ((flags & BUS_DMA_NOWAIT) ? VM_NOSLEEP : VM_SLEEP);
error = vmem_xalloc(sgmap->aps_arena, sgvalen,
alignment, /* alignment */