Bug 2169274 - Realtek RTL8723DE wireless card causes system freeze at boot
Summary: Realtek RTL8723DE wireless card causes system freeze at boot
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 37
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-13 06:54 UTC by MGMX
Modified: 2023-08-06 16:04 UTC (History)
22 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-06 16:04:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description MGMX 2023-02-13 06:54:37 UTC
Description of problem:

After upgrading to kernel version 6.1, the Realtek RTL8723DE wireless card causes the system to be stuck at boot time

How reproducible:

Every time the system boots with a 6.1+ kernel version

Steps to Reproduce:

1. Install a Realtek RTL8723DE wireless card on the system
2. Boot any kernel version 6.1 or above

Actual results:

System freezes at boot. Unable to change to a functional TTY or Display Manger. The system remains in that state until forcefully powered down.

Expected results:

System continues booting normally and allows login either via TTY or graphically sign via a display manager

Additional info:

Tried stripping down all Linux command like parameters in /etc/default/grub so boot output is verbose. The last thing the system prints before freeze is the start and then successful start of wpa_supplicant.service.

Disabling the NetworkManager service and then manually enabling when the system has fully booted works and allows the system to have a wireless connection without issues.

For sanity check the wireless card was tested in another system running openSUSE Tumbleweed with kernel 6.1.11 and it has the same results. Maybe an upstream issue?

P.S: becasue the system I did the test has migrated to the latest kernel version (6.1.10) I can no longer boot any version prior to 6.1, so recovering logs is a tricky endeavor.

Comment 1 Peter Robinson 2023-02-13 09:56:27 UTC
> After upgrading to kernel version 6.1, the Realtek RTL8723DE wireless card
> causes the system to be stuck at boot time

If this is an issue when you upgrade the kernel why have you filed it against linux-firmware? Did it work with 6.0.x?

Comment 2 MGMX 2023-02-15 15:42:16 UTC
> If this is an issue when you upgrade the kernel why have you filed it
> against linux-firmware? Did it work with 6.0.x?

I filed against firmware becasue it happens when the firmware for the card gets loaded at starting the network services (or that is what things seem to lead).

And yes, it worked perfectly with 6.0.x

BTW, I used a livecd to chroot into the installation and disable NetworkManager so I could boot the system. I manually started NetworkManager when the system booted and I got this in dmesg:

    [   77.990493] Generic FE-GE Realtek PHY r8169-0-100:00: attached PHY driver (mii_bus:phy_addr=r8169-0-100:00, irq=MAC)
    [   78.135602] r8169 0000:01:00.0 eth0: Link is Down
    [   80.508845] rtw_8723de 0000:02:00.0: failed to poll offset=0x6 mask=0x2 value=0x2
    [   80.508883] rtw_8723de 0000:02:00.0: mac power on failed
    [   80.508900] rtw_8723de 0000:02:00.0: failed to power on mac
    [   80.508915] rtw_8723de 0000:02:00.0: leave idle state failed
    [   80.509332] rtw_8723de 0000:02:00.0: failed to leave ips state
    [   80.509354] rtw_8723de 0000:02:00.0: failed to leave idle state
    [   81.359998] rtw_8723de 0000:02:00.0: timed out to flush pci tx ring[5]
    [   82.805200] wlan0: authenticate with f8:2d:c0:f0:22:39
    [   82.805309] wlan0: 80 MHz not supported, disabling VHT
    [   84.805747] rtw_8723de 0000:02:00.0: failed to poll offset=0x6 mask=0x2 value=0x2
    [   84.805776] rtw_8723de 0000:02:00.0: mac power on failed
    [   84.805793] rtw_8723de 0000:02:00.0: failed to power on mac
    [   84.805808] rtw_8723de 0000:02:00.0: leave idle state failed
    [   84.806226] rtw_8723de 0000:02:00.0: failed to leave ips state
    [   84.806251] rtw_8723de 0000:02:00.0: failed to leave idle state
    [   84.824655] rtw_8723de 0000:02:00.0: S1 TX IQK isn't done
    [   84.840272] rtw_8723de 0000:02:00.0: S1 RX IQK isn't done
    [   84.855313] rtw_8723de 0000:02:00.0: S1 RX IQK isn't done
    [   84.870946] rtw_8723de 0000:02:00.0: S1 RX IQK isn't done
    [   84.885905] rtw_8723de 0000:02:00.0: S1 RX IQK isn't done
    [   84.904127] rtw_8723de 0000:02:00.0: S0 TX IQK isn't done
    [   84.919782] rtw_8723de 0000:02:00.0: S0 RX IQK isn't done
    [   84.934714] rtw_8723de 0000:02:00.0: S0 RX IQK isn't done
    [   84.950237] rtw_8723de 0000:02:00.0: S0 RX IQK isn't done
    [   84.965313] rtw_8723de 0000:02:00.0: S0 RX IQK isn't done
    [   84.984557] rtw_8723de 0000:02:00.0: S1 TX IQK isn't done
    [   85.000107] rtw_8723de 0000:02:00.0: S1 RX IQK isn't done
    [   85.015116] rtw_8723de 0000:02:00.0: S1 RX IQK isn't done
    [   85.030742] rtw_8723de 0000:02:00.0: S1 RX IQK isn't done
    [   85.045789] rtw_8723de 0000:02:00.0: S1 RX IQK isn't done
    [   85.064425] rtw_8723de 0000:02:00.0: S0 TX IQK isn't done
    [   85.080462] rtw_8723de 0000:02:00.0: S0 RX IQK isn't done
    [   85.095886] rtw_8723de 0000:02:00.0: S0 RX IQK isn't done
    [   85.111875] rtw_8723de 0000:02:00.0: S0 RX IQK isn't done
    [   85.127266] rtw_8723de 0000:02:00.0: S0 RX IQK isn't done
    [   85.130173] wlan0: send auth to f8:2d:c0:f0:22:39 (try 1/3)
    [   85.907555] wlan0: send auth to f8:2d:c0:f0:22:39 (try 2/3)
    [   86.870612] rtw_8723de 0000:02:00.0: failed to send h2c command
    [   86.934647] rtw_8723de 0000:02:00.0: failed to send h2c command
    [   87.939050] rtw_8723de 0000:02:00.0: failed to poll LCK status bit
    [   87.958079] rtw_8723de 0000:02:00.0: S1 TX IQK isn't done
    [   87.974719] rtw_8723de 0000:02:00.0: S1 RX IQK isn't done
    [   87.990755] rtw_8723de 0000:02:00.0: S1 RX IQK isn't done
    [   88.007065] rtw_8723de 0000:02:00.0: S1 RX IQK isn't done
    [   88.022451] rtw_8723de 0000:02:00.0: S1 RX IQK isn't done
    [   88.040910] rtw_8723de 0000:02:00.0: S0 TX IQK isn't done
    [   88.056681] rtw_8723de 0000:02:00.0: S0 RX IQK isn't done
    [   88.071728] rtw_8723de 0000:02:00.0: S0 RX IQK isn't done
    [   88.087709] rtw_8723de 0000:02:00.0: S0 RX IQK isn't done
    [   88.102981] rtw_8723de 0000:02:00.0: S0 RX IQK isn't done
    [   88.122371] rtw_8723de 0000:02:00.0: S1 TX IQK isn't done
    [   88.138234] rtw_8723de 0000:02:00.0: S1 RX IQK isn't done
    [   88.153678] rtw_8723de 0000:02:00.0: S1 RX IQK isn't done
    [   88.169593] rtw_8723de 0000:02:00.0: S1 RX IQK isn't done
    [   88.184782] rtw_8723de 0000:02:00.0: S1 RX IQK isn't done
    [   88.203179] rtw_8723de 0000:02:00.0: S0 TX IQK isn't done
    [   88.219098] rtw_8723de 0000:02:00.0: S0 RX IQK isn't done
    [   88.234278] rtw_8723de 0000:02:00.0: S0 RX IQK isn't done
    [   88.250143] rtw_8723de 0000:02:00.0: S0 RX IQK isn't done
    [   88.265392] rtw_8723de 0000:02:00.0: S0 RX IQK isn't done
    [   88.271214] rtw_8723de 0000:02:00.0: failed to send h2c command
    [   88.271489] wlan0: send auth to f8:2d:c0:f0:22:39 (try 3/3)
    [   88.915503] wlan0: authentication with f8:2d:c0:f0:22:39 timed out
    [   88.920164] rtw_8723de 0000:02:00.0: timed out to flush pci tx ring[5]
    [   88.923629] rtw_8723de 0000:02:00.0: failed to send h2c command
    [   90.012746] wlan0: authenticate with f8:2d:c0:f0:22:39
    [   90.013500] wlan0: 80 MHz not supported, disabling VHT
    [   90.262089] wlan0: send auth to f8:2d:c0:f0:22:39 (try 1/3)
    [   90.264091] wlan0: authenticated
    [   90.265350] wlan0: associate with f8:2d:c0:f0:22:39 (try 1/3)
    [   90.272831] wlan0: RX AssocResp from f8:2d:c0:f0:22:39 (capab=0x431 status=0 aid=4)
    [   90.273429] wlan0: associated
    [   90.413918] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

Comment 3 Peter Robinson 2023-03-06 12:21:12 UTC
(In reply to MGMX from comment #2)
> > If this is an issue when you upgrade the kernel why have you filed it
> > against linux-firmware? Did it work with 6.0.x?
> 
> I filed against firmware becasue it happens when the firmware for the card
> gets loaded at starting the network services (or that is what things seem to
> lead).

It's a kernel problem, fix headed for 6.3 and will eventually land in 6.1/6.2:

https://lore.kernel.org/linux-wireless/20230216053633.20366-1-pkshih@realtek.com/T/#u

Comment 4 Peter Robinson 2023-08-06 16:04:27 UTC
Fedora is now on 6.4 and this fixed landed into 6.3


Note You need to log in before you can comment on or make changes to this bug.