Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nick-nhusb]: src/sys Transfer are only ever allocated from thread contex...
details: https://anonhg.NetBSD.org/src/rev/710df4b8ce06
branches: nick-nhusb
changeset: 334344:710df4b8ce06
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Dec 23 07:59:19 2015 +0000
description:
Transfer are only ever allocated from thread context now. Change IPL_USB
to IPL_NONE in pool_cache_init for the xfer struct pool.
diffstat:
sys/dev/usb/ehci.c | 6 +++---
sys/dev/usb/motg.c | 6 +++---
sys/dev/usb/ohci.c | 6 +++---
sys/dev/usb/xhci.c | 6 +++---
sys/external/bsd/dwc2/dwc2.c | 6 +++---
5 files changed, 15 insertions(+), 15 deletions(-)
diffs (135 lines):
diff -r 7e36479f1e30 -r 710df4b8ce06 sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c Mon Dec 21 15:26:40 2015 +0000
+++ b/sys/dev/usb/ehci.c Wed Dec 23 07:59:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ehci.c,v 1.234.2.70 2015/12/21 12:26:38 skrll Exp $ */
+/* $NetBSD: ehci.c,v 1.234.2.71 2015/12/23 07:59:19 skrll Exp $ */
/*
* Copyright (c) 2004-2012 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.234.2.70 2015/12/21 12:26:38 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.234.2.71 2015/12/23 07:59:19 skrll Exp $");
#include "ohci.h"
#include "uhci.h"
@@ -406,7 +406,7 @@
cv_init(&sc->sc_doorbell, "ehcidi");
sc->sc_xferpool = pool_cache_init(sizeof(struct ehci_xfer), 0, 0, 0,
- "ehcixfer", NULL, IPL_USB, NULL, NULL, NULL);
+ "ehcixfer", NULL, IPL_NONE, NULL, NULL, NULL);
sc->sc_doorbell_si = softint_establish(SOFTINT_NET | SOFTINT_MPSAFE,
ehci_doorbell, sc);
diff -r 7e36479f1e30 -r 710df4b8ce06 sys/dev/usb/motg.c
--- a/sys/dev/usb/motg.c Mon Dec 21 15:26:40 2015 +0000
+++ b/sys/dev/usb/motg.c Wed Dec 23 07:59:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: motg.c,v 1.12.2.25 2015/12/19 09:59:03 skrll Exp $ */
+/* $NetBSD: motg.c,v 1.12.2.26 2015/12/23 07:59:19 skrll Exp $ */
/*
* Copyright (c) 1998, 2004, 2011, 2012, 2014 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
#include "opt_motg.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: motg.c,v 1.12.2.25 2015/12/19 09:59:03 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: motg.c,v 1.12.2.26 2015/12/23 07:59:19 skrll Exp $");
#include <sys/param.h>
@@ -461,7 +461,7 @@
UWRITE1(sc, MUSB2_REG_INTUSBE, MUSB2_MASK_IRESET);
sc->sc_xferpool = pool_cache_init(sizeof(struct motg_xfer), 0, 0, 0,
- "motgxfer", NULL, IPL_USB, NULL, NULL, NULL);
+ "motgxfer", NULL, IPL_NONE, NULL, NULL, NULL);
mutex_init(&sc->sc_lock, MUTEX_DEFAULT, IPL_SOFTUSB);
mutex_init(&sc->sc_intr_lock, MUTEX_DEFAULT, IPL_USB);
diff -r 7e36479f1e30 -r 710df4b8ce06 sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c Mon Dec 21 15:26:40 2015 +0000
+++ b/sys/dev/usb/ohci.c Wed Dec 23 07:59:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ohci.c,v 1.254.2.35 2015/12/06 15:39:35 skrll Exp $ */
+/* $NetBSD: ohci.c,v 1.254.2.36 2015/12/23 07:59:19 skrll Exp $ */
/*
* Copyright (c) 1998, 2004, 2005, 2012 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.254.2.35 2015/12/06 15:39:35 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.254.2.36 2015/12/23 07:59:19 skrll Exp $");
#include "opt_usb.h"
@@ -857,7 +857,7 @@
LIST_INIT(&sc->sc_hash_itds[i]);
sc->sc_xferpool = pool_cache_init(sizeof(struct ohci_xfer), 0, 0, 0,
- "ohcixfer", NULL, IPL_USB, NULL, NULL, NULL);
+ "ohcixfer", NULL, IPL_NONE, NULL, NULL, NULL);
rev = OREAD4(sc, OHCI_REVISION);
aprint_normal("OHCI version %d.%d%s\n",
diff -r 7e36479f1e30 -r 710df4b8ce06 sys/dev/usb/xhci.c
--- a/sys/dev/usb/xhci.c Mon Dec 21 15:26:40 2015 +0000
+++ b/sys/dev/usb/xhci.c Wed Dec 23 07:59:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xhci.c,v 1.28.2.46 2015/10/24 08:43:25 skrll Exp $ */
+/* $NetBSD: xhci.c,v 1.28.2.47 2015/12/23 07:59:19 skrll Exp $ */
/*
* Copyright (c) 2013 Jonathan A. Kollasch
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.28.2.46 2015/10/24 08:43:25 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.28.2.47 2015/12/23 07:59:19 skrll Exp $");
#include "opt_usb.h"
@@ -927,7 +927,7 @@
cv_init(&sc->sc_softwake_cv, "xhciab");
sc->sc_xferpool = pool_cache_init(sizeof(struct xhci_xfer), 0, 0, 0,
- "xhcixfer", NULL, IPL_USB, NULL, NULL, NULL);
+ "xhcixfer", NULL, IPL_NONE, NULL, NULL, NULL);
/* Set up the bus struct. */
sc->sc_bus.ub_methods = &xhci_bus_methods;
diff -r 7e36479f1e30 -r 710df4b8ce06 sys/external/bsd/dwc2/dwc2.c
--- a/sys/external/bsd/dwc2/dwc2.c Mon Dec 21 15:26:40 2015 +0000
+++ b/sys/external/bsd/dwc2/dwc2.c Wed Dec 23 07:59:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc2.c,v 1.32.2.14 2015/10/22 12:07:48 skrll Exp $ */
+/* $NetBSD: dwc2.c,v 1.32.2.15 2015/12/23 07:59:19 skrll Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.32.2.14 2015/10/22 12:07:48 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.32.2.15 2015/12/23 07:59:19 skrll Exp $");
#include "opt_usb.h"
@@ -1379,7 +1379,7 @@
dwc2_rhc, sc);
sc->sc_xferpool = pool_cache_init(sizeof(struct dwc2_xfer), 0, 0, 0,
- "dwc2xfer", NULL, IPL_USB, NULL, NULL, NULL);
+ "dwc2xfer", NULL, IPL_NONE, NULL, NULL, NULL);
sc->sc_qhpool = pool_cache_init(sizeof(struct dwc2_qh), 0, 0, 0,
"dwc2qh", NULL, IPL_USB, NULL, NULL, NULL);
sc->sc_qtdpool = pool_cache_init(sizeof(struct dwc2_qtd), 0, 0, 0,
Home |
Main Index |
Thread Index |
Old Index