Re: [6.2][regression] after commit cd372b8c99c5a5cf6a464acebb7e4a79af7ec8ae stopping working wifi mt7921e

From: Thorsten Leemhuis
Date: Mon Dec 26 2022 - 06:00:11 EST




On 24.12.22 08:55, Thorsten Leemhuis wrote:
>
>
> On 22.12.22 07:47, Mikhail Gavrilov wrote:
>> On Wed, Dec 21, 2022 at 10:17 PM Felix Fietkau <nbd@xxxxxxxx> wrote:
>>>
>>> Sorry, I worked on a tree that had other pending fixes applied.
>>> Please try this:
>>>
>>>
>>> --- a/drivers/net/wireless/mediatek/mt76/dma.c
>>> +++ b/drivers/net/wireless/mediatek/mt76/dma.c
>>> @@ -205,6 +205,52 @@ mt76_dma_queue_reset(struct mt76_dev *dev, struct mt76_queue *q)
>>> mt76_dma_sync_idx(dev, q);
>>> }
>> [cutted]
>>> EXPORT_SYMBOL_GPL(mt76_rx_token_consume);
>>>
>>
>> I confirms after applying this patch the issue was gone (wifi works as
>> before commit cd372b8c99c5a5cf6a464acebb7e4a79af7ec8ae).
>>
>> Tested-by: Mikhail Gavrilov <mikhail.v.gavrilov@xxxxxxxxx>
>>
>
> TWIMC, there are two more reports that at least to my eyes look like
> they are about the problem discussed here:
>
> https://bugzilla.kernel.org/show_bug.cgi?id=216829

Stupid me, this one...

> https://bugzilla.kernel.org/show_bug.cgi?id=216839

...is about 6.1.y and thus likely something else. Apologies.

FWIW & for completeness, according to a comment from Lorenzo Bianconi
the latter bug report is fixed by:
https://patchwork.kernel.org/project/linux-wireless/patch/20221217085624.52077-1-nbd@xxxxxxxx/
("wifi: mac80211: fix initialization of rx->link and rx->link_sta")

Ciao, Thorsten