Bug 1178105 - Wlan rtl8821ce does not work with kernel 5.9
Wlan rtl8821ce does not work with kernel 5.9
Status: NEW
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Kernel
x86-64 Other
: P5 - None : Normal (vote)
: ---
Assigned To: openSUSE Kernel Bugs
E-mail List
Depends on:
  Show dependency treegraph
Reported: 2020-10-25 10:48 UTC by Stephan Hemeier
Modified: 2021-11-24 08:51 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Hemeier 2020-10-25 10:48:14 UTC
In kernel5.9 the rtw88_8821ce has been inserted to the kernel.

But it doe not work here:

journalctl -k | grep -Ei 'firm|rtw'
Okt 25 13:07:59 hp-laptop kernel: Spectre V2 : Enabling Restricted Speculation for firmware calls
Okt 25 13:07:59 hp-laptop kernel: ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
Okt 25 13:08:00 hp-laptop kernel: i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
Okt 25 12:08:04 hp-laptop kernel: Bluetooth: hci0: RTL: assuming no firmware upload needed
Okt 25 12:08:05 hp-laptop kernel: rtw_8821ce 0000:02:00.0: Firmware version 24.5.0, H2C version 12
Okt 25 12:08:05 hp-laptop kernel: rtw_8821ce 0000:02:00.0: rfe 2 isn't supported
Okt 25 12:08:05 hp-laptop kernel: rtw_8821ce 0000:02:00.0: failed to setup chip efuse info
Okt 25 12:08:05 hp-laptop kernel: rtw_8821ce 0000:02:00.0: failed to setup chip information

There is a patch from August, but not inserted to the kernel:

 drivers/net/wireless/realtek/rtw88/rtw8821c.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/wireless/realtek/rtw88/rtw8821c.c b/drivers/net/wireless/realtek/rtw88/rtw8821c.c
index d8863d8a5468..f7270d0f1d55 100644
--- a/drivers/net/wireless/realtek/rtw88/rtw8821c.c
+++ b/drivers/net/wireless/realtek/rtw88/rtw8821c.c
@@ -1410,6 +1410,7 @@ static const struct rtw_intf_phy_para_table phy_para_table_8821c = {
 static const struct rtw_rfe_def rtw8821c_rfe_defs[] = {
 	[0] = RTW_DEF_RFE(8821c, 0, 0),
+	[2] = RTW_DEF_RFE(8821c, 0, 0),
 static struct rtw_hw_reg rtw8821c_dig[] = {

Can this be done in kernel:stable?
Comment 1 Takashi Iwai 2020-10-25 17:33:51 UTC
The patch was not accepted by the upstream, so it doesn't look right to take it for TW kernel...
Comment 2 Stephan Hemeier 2020-10-25 18:26:04 UTC
Thank you for your quick response.

So I have to build it in OBS further.

Comment 3 Takashi Iwai 2020-10-26 08:17:48 UTC
Yes, please keep it for a while.  AFAIK, the Realtek people are working on the patches, but it missed 5.10 merge window.  Also, the suggested oneliner patch might be taken as a short term solution, too.

Adding Larry to Cc, as he might have better clue about the situation.
Comment 4 Larry Finger 2020-10-26 16:27:46 UTC
That patch does not get you very much. It enables 5G at very short distances from the AP. The 2.4G band does not work at all. In addition, it apparently screws up the BlueTooth. Because it is a false fix, I NACKed it at wireless. Once Realtek publishes the real patches at linux-wireless@vger.kernel.org, I will push them to GitHub.com/lwfinger/rtw88.git.
Comment 5 Stephan Hemeier 2020-10-26 19:26:59 UTC
Thank you.
So I will use rtl8821ce from https://github.com/tomaspinho/rtl8821ce.git until you have patched rtw88.