Search Linux Wireless

Re: rtw88_8821ce (sometimes) fails to wake from sleep

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

Thanks for the suggestion; It doesn't change anything, Just to be
extra-sure I recompiled with .config
# CONFIG_PCIEASPM is not set
to eliminate some odd corner case.

One reason to think it's not ASPM is that the network never hangs
while the laptop lid is open (i.e. not suspended to disk.)  (And I've
left it running for months w/o any problem.)

When I do go to close the laptop lid, the one reliable work-around is
to just disable wireless (via GUI pulldown menus) before the suspend.

Guessing wildly, I started looking at `rtw_core_stop()` in main.c I'm
guessing that some TCP packet arrives in the middle of that sequence,
gets stuffed into some dma queue or whatever, scrambles the hardware
state in some way that prevents D3hot from working correctly. Or
something. I'm just guessing.

-- Linas

On Thu, Aug 29, 2024 at 10:37 PM Ping-Ke Shih <pkshih@xxxxxxxxxxx> wrote:
>
> Linas Vepstas <linasvepstas@xxxxxxxxx> wrote:
>
> > [  364.001579] rtw_8821ce 0000:01:00.0: Unable to change power state
> > from D3hot to D0, device inaccessible
>
> By the clue, I suggest to turn off aspm by:
>
> Add a configuration file at: /etc/modprobe.d/70-rtw88.conf
> with content:
> options rtw88_pci disable_aspm=1
>
> Please shutdown your system to ensure resetting hardware states.
> After booting up, doing 'cat /sys/modules/rtw88_pci/parameters/disable_aspm' to
> ensure that above setting takes effect.
>
>


-- 
Patrick: Are they laughing at us?
Sponge Bob: No, Patrick, they are laughing next to us.





[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux