Bug 27843

Summary: Problems with the RTL8821ce driver in kernel 5.10
Product: Mageia Reporter: Omer I.S. <omeritzicschwartz>
Component: RPM PackagesAssignee: Kernel and Drivers maintainers <kernel>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Normal CC: joselp, omeritzicschwartz, ouaurelien
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Omer I.S. 2020-12-16 10:11:45 CET
Description of problem:
After upgrading the kernel version to 5.10, there are problems with the driver of RTL8821ce:
1. Cannot connect to the internet using it.
2. When going to MCC, to turn on the Wi-Fi, a dialog box with "Unable to find network interface for selected device (using  driver rtl8821ce)."

Steps to Reproduce:
1. Have RTL8821ce network card.
2. Upgrade the kernel version to 5.10.
3. Try connecting to Wi-Fi.
Comment 1 Thomas Backlund 2020-12-16 14:07:21 CET
can you post output of "lspcidrake -v"

in 5.10 series kernels there the in-tree rtw88 driver has gained support for 8821ce devices.


you could also try to remove any configured wireless device, and reboot back into 5.10 series kernel and try to re-configure the wireless.

does it work then ?
Comment 2 Omer I.S. 2020-12-16 14:21:34 CET
(In reply to Thomas Backlund from comment #1)
> can you post output of "lspcidrake -v"
> 
> in 5.10 series kernels there the in-tree rtw88 driver has gained support for
> 8821ce devices.
> 
> 
> you could also try to remove any configured wireless device, and reboot back
> into 5.10 series kernel and try to re-configure the wireless.
> 
> does it work then ?

The output of "lspcidrake -v" is:
i2c_i801        : Intel Corporation|Sunrise Point-LP SMBus [SERIAL_SMBUS] (vendor:8086 device:9d23 subv:103c subd:84a7) (rev: 21)
xhci_pci        : Intel Corporation|Sunrise Point-LP USB 3.0 xHCI Controller [SERIAL_USB] (vendor:8086 device:9d2f subv:103c subd:84a7) (rev: 21)
Card:Intel 810 and later: Intel Corporation|UHD Graphics 620 [DISPLAY_VGA] (vendor:8086 device:5917 subv:103c subd:84a7) (rev: 07)
unknown         : SK hynix|BC501 NVMe Solid State Drive 512GB (vendor:1c5c device:1327 subv:1c5c subd:0000)
unknown         : Intel Corporation|Sunrise Point-LP PCI Express Root Port #5 [BRIDGE_PCI] (vendor:8086 device:9d14) (rev: f1)
intel_pch_thermal: Intel Corporation|Sunrise Point-LP Thermal subsystem [SIGNAL_OTHER] (vendor:8086 device:9d31 subv:103c subd:84a7) (rev: 21)
unknown         : Intel Corporation|Sunrise Point-LP PCI Express Root Port #9 [BRIDGE_PCI] (vendor:8086 device:9d18) (rev: f1)
unknown         : Intel Corporation|Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers [BRIDGE_HOST] (vendor:8086 device:5914 subv:103c subd:84a7) (rev: 08)
snd_hda_intel   : Intel Corporation|Sunrise Point-LP HD Audio [MULTIMEDIA_AUDIO_DEV] (vendor:8086 device:9d71 subv:103c subd:84a7) (rev: 21)
Card:NVIDIA GeForce 635 series and later: NVIDIA Corporation|GM108M [GeForce MX110] [DISPLAY_3D] (vendor:10de device:174e subv:103c subd:84a7) (rev: a2)
mei_me          : Intel Corporation|Sunrise Point-LP CSME HECI #1 [COMMUNICATION_OTHER] (vendor:8086 device:9d3a subv:103c subd:84a7) (rev: 21)
unknown         : Intel Corporation|Sunrise Point-LP PCI Express Root Port #6 [BRIDGE_PCI] (vendor:8086 device:9d15) (rev: f1)
processor_thermal_device: Intel Corporation|Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem [SIGNAL_OTHER] (vendor:8086 device:1903 subv:103c subd:84a7) (rev: 08)
r8169           : Realtek Semiconductor Co., Ltd.|RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [NETWORK_ETHERNET] (vendor:10ec device:8168 subv:103c subd:84a7) (rev: 15)
unknown         : Intel Corporation|Sunrise Point LPC Controller/eSPI Controller [BRIDGE_ISA] (vendor:8086 device:9d4e subv:103c subd:84a7) (rev: 21)
unknown         : Intel Corporation|Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model [SYSTEM_OTHER] (vendor:8086 device:1911 subv:103c subd:84a7)
unknown         : Intel Corporation|Sunrise Point-LP PCI Express Root Port #1 [BRIDGE_PCI] (vendor:8086 device:9d10) (rev: f1)
unknown         : Intel Corporation|Sunrise Point-LP PMC [MEMORY_OTHER] (vendor:8086 device:9d21 subv:103c subd:84a7) (rev: 21)
unknown         : Intel Corporation|82801 Mobile SATA Controller [RAID mode] [STORAGE_RAID] (vendor:8086 device:282a subv:103c subd:84a7) (rev: 21)
rtw88_8821ce    : Realtek Semiconductor Co., Ltd.|RTL8821CE 802.11ac PCIe Wireless Network Adapter [NETWORK_OTHER] (vendor:10ec device:c821 subv:103c subd:831a)
hub             : Linux 5.10.1-desktop-1.mga8 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
usbhid          : RAPOO|Rapoo 2.4G Wireless Device [Human Interface Device|Boot Interface Subclass|Mouse] (vendor:24ae device:1100)
usb_storage     : SanDisk|Cruzer Glide 3.0 [Mass Storage|SCSI|Bulk-Only] (vendor:0781 device:5597)
uvcvideo        : Foxlink|HP TrueVision HD Camera [Video|Video Control] (vendor:05c8 device:03ba)
btusb           : Realtek |Bluetooth Radio  [Wireless|Radio Frequency|Bluetooth] (vendor:0bda device:b00a)
hub             : Linux 5.10.1-desktop-1.mga8 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0003)
hid_generic     : RAPOO Rapoo 2.4G Wireless Device
hid_generic     : RAPOO Rapoo 2.4G Wireless Device



Re-configuring the wireless devices did not solve the problem.
Comment 3 Thomas Backlund 2020-12-16 18:08:41 CET
(In reply to Omer I.S. from comment #2)

> rtw88_8821ce    : Realtek Semiconductor Co., Ltd.|RTL8821CE 802.11ac PCIe
> Wireless Network Adapter [NETWORK_OTHER] (vendor:10ec device:c821 subv:103c
> subd:831a)


ok so the new rtw88 kernel driver definately detects your hw.


is rtlwifi-firmware installed


Can you check if there are some references to the old driver in /etc ?

as root do:

grep -R rtl8821ce /etc

also please check dmesg or journal for any errors reported regarding rtw88
Comment 4 Omer I.S. 2020-12-16 21:55:57 CET
(In reply to Thomas Backlund from comment #3)
> (In reply to Omer I.S. from comment #2)
> 
> > rtw88_8821ce    : Realtek Semiconductor Co., Ltd.|RTL8821CE 802.11ac PCIe
> > Wireless Network Adapter [NETWORK_OTHER] (vendor:10ec device:c821 subv:103c
> > subd:831a)
> 
> 
> ok so the new rtw88 kernel driver definately detects your hw.
> 
> 
> is rtlwifi-firmware installed
> 
No, it is not installed.
> 
> Can you check if there are some references to the old driver in /etc ?
> 
> as root do:
> 
> grep -R rtl8821ce /etc
The output is:
grep: /etc/alternatives/jre_openjdk/lib/security/cacerts: No such file or directory
grep: /etc/alternatives/jre_11/lib/security/cacerts: No such file or directory
grep: /etc/alternatives/jre/lib/security/cacerts: No such file or directory
grep: /etc/alternatives/jre_11_openjdk/lib/security/cacerts: No such file or directory
grep: /etc/grub2-efi.cfg: No such file or directory
grep: /etc/java/java-11-openjdk/java-11-openjdk-11.0.9.6-0.0.ea.1.mga8.x86_64/lib/security/cacerts: No such file or directory
> 
> also please check dmesg or journal for any errors reported regarding rtw88

How to check?
Comment 5 Thomas Backlund 2020-12-16 21:57:37 CET
(In reply to Omer I.S. from comment #4)
> (In reply to Thomas Backlund from comment #3)

> > is rtlwifi-firmware installed
> > 
> No, it is not installed.


Canyou intstall it, reboot and try to reconfigure wireless
Comment 6 Omer I.S. 2020-12-16 22:30:31 CET
(In reply to Thomas Backlund from comment #5)
> (In reply to Omer I.S. from comment #4)
> > (In reply to Thomas Backlund from comment #3)
> 
> > > is rtlwifi-firmware installed
> > > 
> > No, it is not installed.
> 
> 
> Canyou intstall it, reboot and try to reconfigure wireless

I cannot connect to the internet from Mageia at this moment, is there a way to download it to Windows and then move it to Mageia?
Comment 7 Thomas Backlund 2020-12-16 22:37:21 CET
If you still have kernel 5.9 installed, you can boot with that kernel and access internet.

otherwise, download this:
http://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/x86_64/media/nonfree/release/rtlwifi-firmware-20201118-1.mga8.nonfree.noarch.rpm

and save it on an usb.

then you can install it with urpmi (or doubleclicking on in should suggest installing it with the package manager)
Comment 8 Omer I.S. 2020-12-17 00:44:35 CET
(In reply to Thomas Backlund from comment #7)
> If you still have kernel 5.9 installed, you can boot with that kernel and
> access internet.
> 
> otherwise, download this:
> http://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/x86_64/media/nonfree/
> release/rtlwifi-firmware-20201118-1.mga8.nonfree.noarch.rpm
> 
> and save it on an usb.
> 
> then you can install it with urpmi (or doubleclicking on in should suggest
> installing it with the package manager)

Installing rtlwifi-firmware did not solve the problem, and upgrading the kernel version removes the driver from the system.
Comment 9 Aurelien Oudelet 2020-12-18 20:46:39 CET
Hi, thanks reporting this.

Assigning to Kernel and Drivers maintainers.

CC: (none) => ouaurelien
Assignee: bugsquad => kernel

Comment 10 Jose Manuel López 2021-01-13 17:41:17 CET
Hi all,

Here, the same issue. I can't connect to wifi in Hp 250 G7 with Realtek RTL8821CE.

Greetings!

CC: (none) => joselp

Comment 11 Jose Manuel López 2021-01-13 17:41:44 CET
In HP 250 G7 with Mageia 8 Beta 2.
Comment 12 Omer I.S. 2021-01-28 18:32:47 CET
The Wi-Fi works correctly if updating the Wi-Fi firmware before the Kernel.
Comment 13 Omer I.S. 2021-01-31 14:26:42 CET
(In reply to Omer I.S. from comment #12)
> The Wi-Fi works correctly if updating the Wi-Fi firmware before the Kernel.

The problem is back a few days after updating.
Omer I.S. 2021-02-07 22:34:07 CET

CC: (none) => omeritzicschwartz

Comment 14 Omer I.S. 2021-02-09 19:15:14 CET
Closing this bug, the internet connection is good now.

Resolution: (none) => WORKSFORME
Status: NEW => RESOLVED