linux_dsm_epyc7002/drivers/net/wireless/iwlwifi/pcie
Emmanuel Grumbach 23e76d1a51 iwlwifi: pcie: don't panic on host commands in iwldvm
None of the devices supported by iwldvm have support for
shadow registers. This means that we wake the NIC
when we increment the write pointer on Tx ring.
This happened even before my bad commit mentionned below.
Since my commit below, we wake up the NIC when we put a
host command on the ring regardless of shadow register
support. This means that in iwldvm (when the NIC doesn't
support shadow register), we wake up the NIC twice:

pcie_enqueue_hcmd:
	wake up the NIC
	iwl_pcie_txq_inc_wr_ptr:
		wake up the NIC - no shadow reg support

Since waking up the NIC means that we need to acquire a
spinlock, this obviously leads to a recursive spinlock
and hence a freeze.

Fixes: b943949105 ("iwlwifi: pcie: keep the NIC awake when commands are in flight")
Reported-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
2014-01-20 12:32:06 +02:00
..
drv.c iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
internal.h iwlwifi: Update Copyright to 2014 2013-12-31 19:03:53 +02:00
rx.c iwlwifi: add inline helper for packet lengths 2014-01-13 22:17:20 +02:00
trans.c iwlwifi: pcie: enable oscillator for L1 exit 2014-01-13 22:17:05 +02:00
tx.c iwlwifi: pcie: don't panic on host commands in iwldvm 2014-01-20 12:32:06 +02:00