summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2020-06-11 08:20:34 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2020-06-11 08:20:34 +0000
commit98afadd9da92aaa2b1733058e0c771d27b5d81c4 (patch)
tree2084933ad257026f08e341d25a78fe5428b11212
parent70ff1895a6b074c04a5eeee11e2dc88affd2e97e (diff)
Increase iwx(4) command queue size. Otherwise the firmware sends duplicate
"command done" notifications for earlier commands and then crashes. There might be an underlying issue that we still need to figure out. But as of this change the device becomes functional with -48 firmware, which is a good first step towards switching to -48 firmware eventually. Tested by jcs@, sven falempin, and myself. ok patrick@
-rw-r--r--sys/dev/pci/if_iwxreg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwxreg.h b/sys/dev/pci/if_iwxreg.h
index 978b1f91a6e..c3fe26b44d0 100644
--- a/sys/dev/pci/if_iwxreg.h
+++ b/sys/dev/pci/if_iwxreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwxreg.h,v 1.8 2020/06/11 08:18:24 stsp Exp $ */
+/* $OpenBSD: if_iwxreg.h,v 1.9 2020/06/11 08:20:33 stsp Exp $ */
/*-
* Based on BSD-licensed source modules in the Linux iwlwifi driver,
@@ -1402,7 +1402,7 @@ enum iwx_gen2_tx_fifo {
#define IWX_TX_QUEUE_CFG_TFD_SHORT_FORMAT (1 << 1)
#define IWX_DEFAULT_QUEUE_SIZE IWX_TFD_QUEUE_SIZE_MAX
-#define IWX_CMD_QUEUE_SIZE 32
+#define IWX_CMD_QUEUE_SIZE 64
/**
* struct iwx_tx_queue_cfg_cmd - txq hw scheduler config command