Re: iwlwifi: Regression after migrating to 6.6.32

From: Johannes Berg
Date: Tue Jun 11 2024 - 08:53:09 EST


On Tue, 2024-06-11 at 08:46 -0300, Fabio Estevam wrote:
>
> [ 6.995391] ------------[ cut here ]------------
> [ 7.373564] WARNING: CPU: 3 PID: 136 at
> /drivers/net/wireless/intel/iwlwifi/pcie/rx.c:269
> iwl_pcie_rxmq_restock+0x158/0x178 [iwlwifi]
>

This warning happens if DMA mapping/allocation returns a page that's not
page-aligned??

rxb->page_dma =
dma_map_page(trans->dev, page, rxb->offset,
trans_pcie->rx_buf_bytes,
DMA_FROM_DEVICE);

(or similar places), where rxb->offset will always be 0 unless
rx_buf_bytes is set to 2048, but that can only happen if the amsdu_size
module parameter is set to 4 (=2k) but that's not even supported any
more?

Maybe make this WARN_ONCE(...) with a string that has more info on the
addresses.

johannes