rtw89_pci constantly drops connection with old firmware

Bug #1960933 reported by Christian Lamparter
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-firmware (Ubuntu)
Invalid
Undecided
Unassigned
Impish
Fix Released
Undecided
Juerg Haefliger

Bug Description

[Impact]

This was on a new Lenovo P14s Gen2 AMD. I'm using Ubuntu 21.10 (impish)

The current linux-firmware package (1.201.4+1.201.3) ships with realtek rtw89_pci firmware (/lib/firmware/rtw89/rtw8852a_fw.bin) version v0.13.8.0.

My wifi chip wasn't able to keep a connection for more than a minute when connected to a Rodgers "Advanced Wi-Fi Modem". I searched around tried disabling the power_save and stuff. But that had little to no effect. I was about to open an issue on the upstream project and did a last ditch attempt to see if there were any firmware updates... I found linux-firmware.git and it had
two newer versions!

 - v0.13.30.0 (was submitted in May 2021, but it took until october 2021 to show up)
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/rtw89/rtw8852a_fw.bin?id=ec17b637b7ab928ca7ebc0389e0e3921f1cc7d17

 - v0.13.33.0 (was submitted in November 2021 and got merged in December 2021):
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/rtw89/rtw8852a_fw.bin?id=4a7e1f5cabaebe5c044b94b91149f35471d1e983

I've downloaded and installed the latest "v0.13.33.0" on a whim and rebooted. And what a pleasant surprise: Instantly, my wifi connection lasted until the rest of the day.

Could you please consider updating this realtek firmware in the next release? Thanks!

[Test Case]

See above.

[Fix]

Cherry pick two commit to match current Jammy:
4a7e1f5cabae ("rtw89: 8852a: update fw to v0.13.33.0")
ec17b637b7ab ("rtw89: 8852a: update fw to v0.13.30.0")

[Where Problems Could Occur]

Limited to wifi using RTL8852A HW.

Juerg Haefliger (juergh)
tags: added: kern-2469
Juerg Haefliger (juergh)
Changed in linux-firmware (Ubuntu Impish):
status: New → In Progress
Changed in linux-firmware (Ubuntu):
status: New → Invalid
description: updated
Juerg Haefliger (juergh)
Changed in linux-firmware (Ubuntu Impish):
status: In Progress → Fix Committed
assignee: nobody → Juerg Haefliger (juergh)
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Christian, or anyone else affected,

Accepted linux-firmware into impish-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/linux-firmware/1.201.5 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-impish to verification-done-impish. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-impish. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Christian Lamparter (signuke) wrote :

yeah sure, I've upgraded to the proposed "linux-firmware 1.201.5". So far it keeps the connection to the Modem well enough for daily use... nevertheless, I'll keep an eye out for future improvements.

Revision history for this message
Raphaël Pinson (raphink) wrote :

Hi,

I'm experiencing the exact same bug on impish with a Lenovo P14s, with connection drops every 5 to 10 minutes.

I've just installed the proposed package and will update the bug report tomorrow if the connection drops have stopped.

Revision history for this message
Christian Lamparter (signuke) wrote :

There's a new firmware:

https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=c784d7a3e3c2a83e3911fd3dd0e105911a323a5f

But this needs a driver feature-patch to work:

https://patchwork.kernel<email address hidden>/

"We found management frames get stuck when wifi chip
enters low ps mode. So we add one notify wake function
to trigger wifi chip into normal mode before forwarding
management frames."

(hw_scan feature seems to be less important.)

Revision history for this message
Raphaël Pinson (raphink) wrote :

I can confirm that the proposed package already improves the situation quite a bit.

As far as I can tell, I've only experienced 3 disconnections since last night, without setting any of the `disable_*` parameters.

If there's a package to test the new patch from the 25th of Feb, I'm willing to give it a try, too!

Juerg Haefliger (juergh)
tags: added: verification-done-impish
Revision history for this message
Chris Halse Rogers (raof) wrote : Update Released

The verification of the Stable Release Update for linux-firmware has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-firmware - 1.201.5

---------------
linux-firmware (1.201.5) impish; urgency=medium

  * rtw89_pci constantly drops connection with old firmware (LP: #1960933)
    - rtw89: 8852a: update fw to v0.13.30.0
    - rtw89: 8852a: update fw to v0.13.33.0

 -- Juerg Haefliger <email address hidden> Fri, 18 Feb 2022 15:22:53 +0100

Changed in linux-firmware (Ubuntu Impish):
status: Fix Committed → Fix Released
Revision history for this message
Raphaël Pinson (raphink) wrote :

As commented before, the fix released in `-proposed` worked for me.

Since updating to `1.201.5` via `-updates` though, I'm seeing the bug again.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.