Bug 2182001

Summary: The provided firmware does not work for rtw89_8852be
Product: [Fedora] Fedora Reporter: Michael Stoykov <M.Stoikov>
Component: linux-firmwareAssignee: David Woodhouse <dwmw2>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: dwmw2, jforbes, jwboyer, kernel-maint, laura, pbrobinson
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: linux-firmware-20230404-149.fc38 linux-firmware-20230404-149.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-22 00:48:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael Stoykov 2023-03-27 08:19:12 UTC
Description of problem:

Running kernel 6.2.7 (or any 6.2.x so far) with a Realtek b852 wifi network controller gives:

> Mar 27 09:51:17 fedora kernel: rtw89_8852be 0000:01:00.0: no suitable firmware found
> Mar 27 09:51:17 fedora kernel: rtw89_8852be 0000:01:00.0: failed to recognize firmware
> Mar 27 09:51:17 fedora kernel: rtw89_8852be 0000:01:00.0: failed to setup chip information
> Mar 27 09:51:17 fedora kernel: rtw89_8852be: probe of 0000:01:00.0 failed with error -2

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Get a laptop wiht Realtek b852 (in thsi case hp elitebook 845 g9) 
2. Get kernel 6.2 + (as the driver was not in the kernel before that)
3. Get linux-firmware
4. boot - get no wifi working and the error.

Actual results:

Wifi card not being found at all

Expected results:

Working wifi


Additional info:

https://github.com/lwfinger/rtw89 does work (and worked with previous kernel versions. (for 6.2 you need to blacklist the kernel drivers though :( )

Given the actual problem and following the [note](https://github.com/lwfinger/rtw89) about firmware *fixes* the issue.

So downloading https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtw89/rtw8852b_fw.bin and putting it in /lib/firmware/rtw89/ fixes the issue.

But in the same directory there are already 3 files including rtw8852b_fw.bin.xz which is provided by `linux-firmware` but it seems to not work.

Comment 1 Peter Robinson 2023-03-27 10:52:31 UTC
There was a problem with firmware upstream with dealing with newer versions of firmware and compatibility of the old ones, this will be fixed with the next upstream release, and there should be a patch coming to the stable kernels as well to deal with it.

commit 416a66cae796939d7d096988c72c641656c81c5a
Author: Ping-Ke Shih <pkshih>
Date:   Sat Mar 18 08:10:22 2023 +0800

    rtw89: 8852b: rollback firmware to v0.27.32.1
    
    Since the format change of 8852b firmware will break user space as
    discussion in threads [1] [2], I should rollback firmware to v0.27.32.1
    in original format.
    
    This patch is equal to revert two patches:
      7375bcff3ffd "rtw89: 8852b: update fw to v0.29.29.0"
      5148670daadc "rtw89: 8852b: update fw to v0.29.26.0"
    
    Then, re-add these two with new firmware filename rtw89/rtw8852b_fw-1.bin.
    
    [1] https://lore.kernel.org/linux-wireless/df1ce994-3368-a57e-7078-8bdcccf4a1fd@gmail.com/T/#m24cb43be31a762d0ea70bf07f27ae96c59f6931b
    [2] https://bugzilla.kernel.org/show_bug.cgi?id=217207
    
    Signed-off-by: Ping-Ke Shih <pkshih>

Comment 2 Michael Stoykov 2023-03-27 11:47:25 UTC
Looking at the changelog from https://koji.fedoraproject.org/koji/buildinfo?buildID=2169294 it seems like 20230210-147 should work? as it will be from before the upgrade?

Comment 3 Peter Robinson 2023-03-27 12:07:59 UTC
sounds about right, we'll have an update early/mid april that will pull in the the fix too, but downgrade in the meantime should also solve the problem.

Comment 4 Fedora Update System 2023-04-19 09:44:50 UTC
FEDORA-2023-ffeecefff7 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-ffeecefff7

Comment 5 Fedora Update System 2023-04-19 09:44:56 UTC
FEDORA-2023-1cf0937309 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-1cf0937309

Comment 6 Fedora Update System 2023-04-19 09:45:01 UTC
FEDORA-2023-460849706f has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2023-460849706f

Comment 7 Fedora Update System 2023-04-20 04:29:39 UTC
FEDORA-2023-1cf0937309 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-1cf0937309`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-1cf0937309

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2023-04-20 05:42:46 UTC
FEDORA-2023-460849706f has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-460849706f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-460849706f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2023-04-20 06:08:37 UTC
FEDORA-2023-ffeecefff7 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-ffeecefff7`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-ffeecefff7

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2023-04-22 00:48:18 UTC
FEDORA-2023-1cf0937309 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2023-04-22 21:47:44 UTC
FEDORA-2023-ffeecefff7 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.