bianbu-linux-6.6/drivers/net/wireless/intel/iwlwifi/pcie
Johannes Berg f1f2e068bb wifi: iwlwifi: pcie: synchronize IRQs before NAPI
[ Upstream commit 37fb29bd1f90f16d1abc95c0e9f0ff8eec9829ad ]

When we want to synchronize the NAPI, which was added in
commit 5af2bb3168 ("wifi: iwlwifi: call napi_synchronize()
before freeing rx/tx queues"), we also need to make sure we
can't actually reschedule the NAPI. Yes, this happens while
interrupts are disabled, but interrupts may still be running
or pending. Also call iwl_pcie_synchronize_irqs() to ensure
we won't reschedule the NAPI.

Fixes: 4cf2f5904d ("iwlwifi: queue: avoid memory leak in reset flow")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20231017115047.a0f4104b479a.Id5c50a944f709092aa6256e32d8c63b2b8d8d3ac@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 11:59:03 +01:00
..
ctxt-info-gen3.c wifi: iwlwifi: Enable loading of reduce-power tables into several segments 2023-06-06 13:44:52 +02:00
ctxt-info.c wifi: iwlwifi: Generalize the parsing of the pnvm image 2023-06-06 13:43:06 +02:00
drv.c wifi: iwlwifi: pcie: avoid a warning in case prepare card failed 2023-08-22 13:19:52 +02:00
internal.h wifi: iwlwifi: remove 'def_rx_queue' struct member 2023-08-22 13:19:24 +02:00
rx.c wifi: iwlwifi: remove 'def_rx_queue' struct member 2023-08-22 13:19:24 +02:00
trans-gen2.c wifi: iwlwifi: pcie: synchronize IRQs before NAPI 2023-11-20 11:59:03 +01:00
trans.c wifi: iwlwifi: pcie: synchronize IRQs before NAPI 2023-11-20 11:59:03 +01:00
tx-gen2.c iwlwifi: de-const properly where needed 2022-02-18 10:40:50 +02:00
tx.c wifi: iwlwifi: pcie: move gen1 TB handling to header 2023-08-22 13:19:24 +02:00