Can't connect to wireless AP after resume from S3

Bug #1861669 reported by You-Sheng Yang
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HWE Next
Fix Released
Undecided
Unassigned
rtl8821ce (Ubuntu)
Fix Released
Undecided
You-Sheng Yang
Bionic
Fix Released
Undecided
Unassigned
Eoan
Fix Released
Undecided
Unassigned
Focal
Fix Released
Undecided
You-Sheng Yang

Bug Description

[SRU Justification]

[Impact]
RTL8821CE dkms driver version 5.2.5.2.1.30816.20190425-0ubuntu1 fails to re-associate previously associated WiFi AP when resumed from suspend, and it takes a reboot to recover from this situation.

[Fix]
This is fixed in a new release 20190614_RTL8821CE_WiFi_linux_v5.5.2_34066_COEX20180712-3232.20190614.zip, which has issues to compile against Focal 5.4 kernel, and is then fixed in yet another minor release RTL8821CE_WiFi_linux_v5.5.2.1_35598_COEX20180712-3232.20191029.zip.

[Test Case]
1. Install this dkms and make sure corresponding kernel module is generated.
2. Reboot. Wi-Fi interface should be up and works just fine. Try get associated to some AP.
3. Suspend the system and resume a while after.
4. Check if Wi-Fi interface is automatically brought up and associated to the previous AP.

[Regression Potential]
Low. This is the DKMS package for specific hardware models, which is known to have this issue and have to be fixed with this package and this package along. Doesn't affect other systems/hardware.

========== original bug description ==========

RTL8821CE dkms driver version 5.2.5.2.1.30816.20190425-0ubuntu1 fails to re-associate previously associated WiFi AP when resumed from suspend, and it takes a reboot to recover from this situation.

[ 203.545116] PM: suspend entry (deep)
[ 203.545118] PM: Syncing filesystems ... done.
[ 204.026363] Freezing user space processes ... (elapsed 0.002 seconds) done.
[ 204.029131] OOM killer disabled.
[ 204.029132] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 204.030453] Suspending console(s) (use no_console_suspend to debug)
[ 204.031766] RTW: suspend start
[ 204.031779] RTW: rtw_cmd_thread(wlo1) stop_req:1, break
[ 204.031826] RTW: rtw_suspend_normal: ### ERROR #### driver in IPS ####ERROR###!!!
[ 204.031834] RTW: rtw_dev_unload: driver in IPS-FWLPS
[ 204.031845] RTW: rtw suspend success in 0 ms
[ 205.107104] ACPI: Preparing to enter system sleep state S3
[ 205.443577] PM: Saving platform NVS memory
[ 205.443658] Disabling non-boot CPUs ...

.... and when resumed ....

[ 205.796968] ACPI: Low-level resume complete
[ 205.797020] PM: Restoring platform NVS memory
[ 205.797573] Enabling non-boot CPUs ...
[ 205.797625] x86: Booting SMP configuration:
...
[ 205.837514] ACPI: Waking up from system sleep state S3
[ 205.880254] RTW: resume start
[ 206.381440] RTW: wlo1- hw port(0) mac_addr =40:5b:d8:79:35:1d
[ 206.381658] RTW: rtw_resume_common:0 in 500 ms
[ 206.381691] RTW: WARN Unhandled ISR = 20000000, 0, 0
[ 206.534803] OOM killer enabled.
[ 206.534804] Restarting tasks ... done.
[ 206.539698] PM: suspend exit
[ 210.158137] rtl8821ce 0000:17:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x000e address=0x00000000fed7d000 flags=0x0000]
[ 210.158147] rtl8821ce 0000:17:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x000e address=0x00000000fed7d030 flags=0x0000]
[ 210.646668] RTW: wlo1- hw port(0) mac_addr =40:5b:d8:79:35:1d
[ 210.646868] RTW: nolinked power save leave
[ 210.647031] RTW: set bssid:00:00:00:00:00:00
[ 210.647081] RTW: set ssid [\xfeC\xfb\xfa\xaa:\xfb)\xd1\xe6<|\x94uؾa\x89\xf9\\xbb\xa8\x99\x95\xb1\xeb\xf1\xb3] fw_state=0x00000008
[ 210.667923] IPv6: ADDRCONF(NETDEV_UP): wlo1: link is not ready
[ 212.933864] RTW: indicate disassoc
[ 212.937336] RTW: There are some pkts to transmit
[ 212.937342] RTW: free_xmitbuf_cnt: 128, free_xmit_extbuf_cnt: 0
[ 212.990652] RTW: set ssid [HIDDEN-SSID] fw_state=0x00000008
[ 212.993334] RTW: set bssid:a4:56:30:be:51:10
[ 213.088342] RTW: start auth
[ 214.701727] RTW: indicate disassoc
[ 217.100438] RTW: set ssid [HIDDEN-SSID] fw_state=0x00000008
[ 217.100458] RTW: set bssid:2c:36:f8:fa:f5:b0
[ 217.161695] RTW: start auth
[ 218.762801] RTW: indicate disassoc
[ 221.154160] RTW: set ssid [HIDDEN-SSID] fw_state=0x00000008
[ 221.154182] RTW: set bssid:a4:56:30:be:51:10
[ 221.235930] RTW: start auth
[ 222.828269] RTW: indicate disassoc

---
ProblemType: Bug
ApportVersion: 2.20.9-0ubuntu7.9
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
DistributionChannelDescriptor:
 # This is the distribution channel descriptor for the OEM CDs
 canonical-oem-stella-bionic-amd64-806
DistroRelease: Ubuntu 18.04
InstallationDate: Installed on 2020-01-14 (21 days ago)
InstallationMedia: Ubuntu 18.04 "Bionic" - Build amd64 LIVE Binary 20191205-16:26
Package: rtl8821ce-dkms 5.2.5.2.1.30816.20190425-0ubuntu1~18.04.1
PackageArchitecture: all
ProcVersionSignature: Ubuntu 4.15.0-1067.77-oem 4.15.18
Tags: bionic
Uname: Linux 4.15.0-1067-oem x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True

Related branches

You-Sheng Yang (vicamo)
tags: added: oem-priority originate-from-1856285 stella
Changed in rtl8821ce-dkms (Ubuntu):
assignee: nobody → You-Sheng Yang (vicamo)
Revision history for this message
You-Sheng Yang (vicamo) wrote : Dependencies.txt

apport information

tags: added: apport-collected bionic
description: updated
Revision history for this message
You-Sheng Yang (vicamo) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
You-Sheng Yang (vicamo) wrote : ProcEnviron.txt

apport information

Revision history for this message
You-Sheng Yang (vicamo) wrote :
  • dmesg Edit (111.2 KiB, application/octet-stream)
Revision history for this message
You-Sheng Yang (vicamo) wrote :

This can be fixed in vendor release v5.5.2_34066.20190614_COEX20180712-3232.

description: updated
Revision history for this message
You-Sheng Yang (vicamo) wrote :
Changed in rtl8821ce-dkms (Ubuntu):
status: New → In Progress
Colin Watson (cjwatson)
affects: rtl8821ce-dkms (Ubuntu) → rtl8821ce (Ubuntu)
Revision history for this message
You-Sheng Yang (vicamo) wrote :

All bionic kernels (4.15 oem/generic, 4.18 generic, 5.0 oem-osp1/generic, 5.3 generic), focal kernel 5.4 generic as well as mainline v5.5.1 kernel all pass runtime verification. Requesting sponsors to help landing.

Revision history for this message
You-Sheng Yang (vicamo) wrote :
Changed in rtl8821ce (Ubuntu Focal):
status: In Progress → Fix Committed
Revision history for this message
You-Sheng Yang (vicamo) wrote : Re: [Bug 1861669] Re: Can't connect to wireless AP after resume from S3

Verified from focal-proposed version 5.5.2.1-0ubuntu1.

Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello You-Sheng, or anyone else affected,

Accepted rtl8821ce into eoan-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/rtl8821ce/5.5.2.1-0ubuntu1~19.10.1 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 and change the tag from verification-needed-eoan to verification-done-eoan. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-eoan. 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.

Changed in rtl8821ce (Ubuntu Eoan):
status: New → Fix Committed
tags: added: verification-needed verification-needed-eoan
Changed in rtl8821ce (Ubuntu Bionic):
status: New → Fix Committed
tags: added: verification-needed-bionic
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello You-Sheng, or anyone else affected,

Accepted rtl8821ce into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/rtl8821ce/5.5.2.1-0ubuntu1~18.04.1 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 and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. 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
You-Sheng Yang (vicamo) wrote :
Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (rtl8821ce/5.5.2.1-0ubuntu1~19.10.1)

All autopkgtests for the newly accepted rtl8821ce (5.5.2.1-0ubuntu1~19.10.1) for eoan have finished running.
The following regressions have been reported in tests triggered by the package:

rtl8821ce/5.5.2.1-0ubuntu1~19.10.1 (arm64, ppc64el, armhf)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/eoan/update_excuses.html#rtl8821ce

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (rtl8821ce/5.5.2.1-0ubuntu1~18.04.1)

All autopkgtests for the newly accepted rtl8821ce (5.5.2.1-0ubuntu1~18.04.1) for bionic have finished running.
The following regressions have been reported in tests triggered by the package:

rtl8821ce/5.5.2.1-0ubuntu1~18.04.1 (armhf, arm64, ppc64el)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/bionic/update_excuses.html#rtl8821ce

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Mark verification failed. Fixing autopkgtest failures.

tags: added: verification-failed-bionic verification-failed-eoan
removed: verification-needed verification-needed-bionic verification-needed-eoan
Revision history for this message
You-Sheng Yang (vicamo) wrote :

The original source doesn't really supports multiarch generic Linux but some selected development boards, and android. Will turn off multiarch builds until fixed/verified.

You-Sheng Yang (vicamo)
Changed in rtl8821ce (Ubuntu Bionic):
status: Fix Committed → In Progress
Changed in rtl8821ce (Ubuntu Eoan):
status: Fix Committed → In Progress
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Verified version 5.5.2.1-0ubuntu2 from focal-proposed.

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Pushed new revision to the PPA bionic series to include i386 build.

bionic-amd64$ dkms status
rtl8821ce, 5.5.2.1, 4.15.0-1067-oem, x86_64: installed
rtl8821ce, 5.5.2.1, 4.15.0-76-generic, x86_64: installed
rtl8821ce, 5.5.2.1, 4.18.0-25-generic, x86_64: installed
rtl8821ce, 5.5.2.1, 5.0.0-1037-oem-osp1, x86_64: installed
rtl8821ce, 5.5.2.1, 5.0.0-37-generic, x86_64: installed
rtl8821ce, 5.5.2.1, 5.3.0-28-generic, x86_64: installed

bionic-i386$ dkms status
rtl8821ce, 5.5.2.1, 4.15.0-76-generic, x86_64: installed
rtl8821ce, 5.5.2.1, 4.18.0-25-generic, x86_64: installed
rtl8821ce, 5.5.2.1, 5.0.0-37-generic, x86_64: installed
rtl8821ce, 5.5.2.1, 5.3.0-28-generic, x86_64: installed

Revision history for this message
You-Sheng Yang (vicamo) wrote :

So apparently limiting host architectures is not a valid option as now proposed migration lists above upload as "Not considered". I've re-uploaded yet another run, 5.5.2.1-0ubuntu3, which should build on amd64/arm64/armhf/ppc64el/s390x on Focal, and i386 on Bionic.

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

This bug was fixed in the package rtl8821ce - 5.5.2.1-0ubuntu3

---------------
rtl8821ce (5.5.2.1-0ubuntu3) focal; urgency=medium

  * debian/control:
    - build all architectures again.

  * debian/patches/*:
    - make: support build from multi-arched debian-based platform
    - rtl8821ce: use dma_addr_t

 -- You-Sheng Yang <email address hidden> Mon, 17 Feb 2020 21:04:38 +0800

Changed in rtl8821ce (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Verified 5.5.2.1-0ubuntu3 from focal-release, and 5.5.2.1-0ubuntu3~18.04.1 from my PPA.

You-Sheng Yang (vicamo)
description: updated
description: updated
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello You-Sheng, or anyone else affected,

Accepted rtl8821ce into eoan-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/rtl8821ce/5.5.2.1-0ubuntu3~19.10.1 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 and change the tag from verification-needed-eoan to verification-done-eoan. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-eoan. 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.

Changed in rtl8821ce (Ubuntu Eoan):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-eoan
removed: verification-failed-eoan
Changed in rtl8821ce (Ubuntu Bionic):
status: In Progress → Fix Committed
tags: added: verification-needed-bionic
removed: verification-failed-bionic
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello You-Sheng, or anyone else affected,

Accepted rtl8821ce into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/rtl8821ce/5.5.2.1-0ubuntu3~18.04.1 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 and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. 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
You-Sheng Yang (vicamo) wrote :

Verified 5.5.2.1-0ubuntu3~18.04.1 from bionic-proposed, 5.5.2.1-0ubuntu3~19.10.1 from eoan-proposed.

tags: added: verification-done verification-done-bionic verification-done-eoan
removed: verification-needed verification-needed-bionic verification-needed-eoan
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rtl8821ce - 5.5.2.1-0ubuntu3~19.10.1

---------------
rtl8821ce (5.5.2.1-0ubuntu3~19.10.1) eoan; urgency=medium

  * debian/control:
    - build all architectures again.

  * debian/patches/*:
    - make: support build from multi-arched debian-based platform
    - rtl8821ce: use dma_addr_t
    - rtl8821ce: guard wireless_send_event with CONFIG_WIRELESS_EXT instead

rtl8821ce (5.5.2.1-0ubuntu2~19.10.1) eoan; urgency=medium

  * debian/control:
    - build on amd64 only

rtl8821ce (5.5.2.1-0ubuntu1~19.10.1) eoan; urgency=medium

  * New upstream release. (LP: #1861669)
    - rtl8821CE_WiFi_linux_v5.5.2_34066.20190614_COEX20180712-3232.tar.gz
    - rtl8821CE_WiFi_linux_v5.5.2.1_35598.20191029_COEX20180712-3232.tar.gz

  * rtl8821ce
    - respect some more environment vars
    - fix build against kernel >= v5.3
    - disable debug messages

  * debian/*:
    - update Vcs URLs
    - enable parallel build
    - fix DKMS builds
    - explicitely add missed build dependency: bc, quilt

 -- You-Sheng Yang <email address hidden> Mon, 17 Feb 2020 21:04:38 +0800

Changed in rtl8821ce (Ubuntu Eoan):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for rtl8821ce 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 rtl8821ce - 5.5.2.1-0ubuntu3~18.04.1

---------------
rtl8821ce (5.5.2.1-0ubuntu3~18.04.1) bionic; urgency=medium

  * debian/control:
    - build all architectures again.

  * debian/patches/*:
    - make: support build from multi-arched debian-based platform
    - rtl8821ce: use dma_addr_t
    - rtl8821ce: guard wireless_send_event with CONFIG_WIRELESS_EXT instead

rtl8821ce (5.5.2.1-0ubuntu2~18.04.2) bionic; urgency=medium

  * debian/control:
    - build on i386 as well.

rtl8821ce (5.5.2.1-0ubuntu2~18.04.1) bionic; urgency=medium

  * debian/control:
    - build on amd64 only

rtl8821ce (5.5.2.1-0ubuntu1~18.04.1) bionic; urgency=medium

  * New upstream release. (LP: #1861669)
    - rtl8821CE_WiFi_linux_v5.5.2_34066.20190614_COEX20180712-3232.tar.gz
    - rtl8821CE_WiFi_linux_v5.5.2.1_35598.20191029_COEX20180712-3232.tar.gz

  * rtl8821ce
    - respect some more environment vars
    - fix build against kernel >= v5.3
    - disable debug messages

  * debian/*:
    - update Vcs URLs
    - enable parallel build
    - fix DKMS builds
    - explicitely add missed build dependency: bc, quilt

 -- You-Sheng Yang <email address hidden> Mon, 17 Feb 2020 21:04:38 +0800

Changed in rtl8821ce (Ubuntu Bionic):
status: Fix Committed → Fix Released
You-Sheng Yang (vicamo)
Changed in hwe-next:
status: New → Fix Released
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.