Bug 212435

Summary: RTL8821CE: rfe 4 isn't supported
Product: Drivers Reporter: Jian-Hong Pan (jhp)
Component: network-wirelessAssignee: drivers_network-wireless (drivers_network-wireless)
Status: RESOLVED CODE_FIX    
Severity: normal CC: fordfrog
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 5.10+ Subsystem:
Regression: No Bisected commit-id:
Attachments: Full dmesg log

Description Jian-Hong Pan 2021-03-25 08:56:06 UTC
Created attachment 296053 [details]
Full dmesg log

We have a laptop equipped with AMD A4-9125 and Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter.  I have tested with latest mainline kernel and the linux-firmware.  The WiFi is always failed with the error message:

[    8.694896] rtw_8821ce 0000:02:00.0: enabling device (0000 -> 0003)
[    8.808629] rtw_8821ce 0000:02:00.0: Firmware version 24.8.0, H2C version 12
[    8.830737] rtw_8821ce 0000:02:00.0: rfe 4 isn't supported
[    8.830881] rtw_8821ce 0000:02:00.0: failed to setup chip efuse info
[    8.830884] rtw_8821ce 0000:02:00.0: failed to setup chip information
Comment 1 Jian-Hong Pan 2021-03-25 08:59:46 UTC
Forgot to mention the tested kernel version which is latest mainline kernel 5.12-rc4+.
Comment 2 Jian-Hong Pan 2021-03-25 09:09:06 UTC
Here is the Realtek wireless PCI device's information:

02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]
	Subsystem: AzureWave RTL8821CE 802.11ac PCIe Wireless Network Adapter [1a3b:3040]
	Flags: fast devsel, IRQ 42
	I/O ports at e000 [size=256]
	Memory at fe900000 (64-bit, non-prefetchable) [size=64K]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [70] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [148] Device Serial Number 00-e0-4c-ff-fe-c8-21-01
	Capabilities: [158] Latency Tolerance Reporting
	Capabilities: [160] L1 PM Substates
	Capabilities: [170] Precision Time Measurement
	Capabilities: [17c] Vendor Specific Information: ID=0003 Rev=1 Len=054 <?>
	Kernel modules: rtw88_8821ce
Comment 3 fordfrog 2021-07-24 09:36:33 UTC
i have exactly the same chip and exactly the same issue. currently on kernel 5.13.4. i'd be glad to help if i could (patching, testing, reporting back...).
Comment 4 Jian-Hong Pan 2021-12-06 09:14:09 UTC
The the RTL8821CE chip is recognized since kernel 5.16-rc3.  However, it produces another bug mentioned in https://bugzilla.kernel.org/show_bug.cgi?id=215239
Comment 5 Jian-Hong Pan 2021-12-06 09:15:48 UTC
(In reply to Jian-Hong Pan from comment #4)
> The the RTL8821CE chip is recognized since kernel 5.16-rc3.

I found it is related these two commits:
5db4943a9d6f rtw88: 8821c: correct 2.4G tx power for type 2/4 NIC
b789e3fe7047 rtw88: 8821c: support RFE type4 wifi NIC