Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Limit the number of dma segments used for transm...
details: https://anonhg.NetBSD.org/src/rev/eb6a7506de9c
branches: trunk
changeset: 808552:eb6a7506de9c
user: nonaka <nonaka%NetBSD.org@localhost>
date: Fri May 22 15:32:21 2015 +0000
description:
Limit the number of dma segments used for transmitting packets to
IWM_NUM_OF_TBS - 2. We have IWM_NUM_OF_TBS slots, but use two of those
for sending commands to the firmware.
>From OpenBSD rev. 1.41.
diffstat:
sys/dev/pci/if_iwm.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 7a82953a423d -r eb6a7506de9c sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c Fri May 22 10:34:13 2015 +0000
+++ b/sys/dev/pci/if_iwm.c Fri May 22 15:32:21 2015 +0000
@@ -1,5 +1,5 @@
-/* $NetBSD: if_iwm.c,v 1.34 2015/05/16 07:58:19 nonaka Exp $ */
-/* OpenBSD: if_iwm.c,v 1.39 2015/03/23 00:35:19 jsg Exp */
+/* $NetBSD: if_iwm.c,v 1.35 2015/05/22 15:32:21 nonaka Exp $ */
+/* OpenBSD: if_iwm.c,v 1.41 2015/05/22 06:50:54 kettenis Exp */
/*
* Copyright (c) 2014 genua mbh <info%genua.de@localhost>
@@ -105,7 +105,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.34 2015/05/16 07:58:19 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.35 2015/05/22 15:32:21 nonaka Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -1224,7 +1224,7 @@
paddr += sizeof(struct iwm_device_cmd);
error = bus_dmamap_create(sc->sc_dmat, IWM_RBUF_SIZE,
- IWM_NUM_OF_TBS, IWM_RBUF_SIZE, 0, BUS_DMA_NOWAIT,
+ IWM_NUM_OF_TBS - 2, IWM_RBUF_SIZE, 0, BUS_DMA_NOWAIT,
&data->map);
if (error != 0) {
aprint_error_dev(sc->sc_dev,
Home |
Main Index |
Thread Index |
Old Index