Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19007445rwd; Wed, 28 Jun 2023 03:55:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6BDN8w+fTMJFQhaeHiGDZwmrLlVX5TZmQN7lD7TH9gLYzvOU3fL82G8+MG9m60Rt4uFM1k X-Received: by 2002:a05:6808:1407:b0:39e:dde3:485 with SMTP id w7-20020a056808140700b0039edde30485mr37348305oiv.41.1687949720893; Wed, 28 Jun 2023 03:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687949720; cv=none; d=google.com; s=arc-20160816; b=hQ4WSSt9vEK9c2c+hspyXc0a5nYLDPYgMI3J6Fs1CcceHGghZxxO6WmUqcx+AelFPG 2yqvwFj9RNPObuEf6pnukNAYrI+/S/VeNze+OwvjiokMN4e0C+sul3ccEbnCuyQSLZ8O 1Af8qdD+r2D7vOKoO2hDfackScrKDmdlellt/3rZlJ8ClJKsEdZ/k97ntsxVSDtpVwZU 1B/RkvIWvEMROPlAQogtFqZ72kxfdPQi27VfoAncJK3CG+Og50GLc0Bla9QWKvjhJ+ff uBJ/YWok3l9sBC4Udv4GKp2l+AhbPMHDwqtTwt2V+D0JKnI+eXeS2sTxnbJU42VIZZxA IwOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=UFF36qN3ZuOZkQLAZyv7DUyKVdgOhZNMPXsAgM28wlU=; fh=3Jj9xfzyNTcS9oA7DAcO6fi74nMLE20JD4UU8PNT0+M=; b=x+nHjMeXAMBOvXIxLLvtR3cRKrjorarWNUNqpj68LP74No8vZoP6r07ljcrL0EGV7r aBEctM2+NgwVNepJxEmAMreE+QUynBy7aFKqPiseEWv4FEvt2BTiuIxJbsmU8nQ2lPi+ V+KPU2A3Du3VnNBkRqJpQwRGVTGxr/8ehJJBrwulxkPRbA5m32L9C8Z6xicY3Jf9OBzz de5Uy5k6Qv+sGfcfKDg0zmXSNRDwNgOwkLpikF2WSVvoMV+vcwzVuI6XKDVWfNlCejzc Dz6zxUITEEbP5ZfcrwikBBsgeutyMjnyXDXx9wtJVEQql+5CY188FGqWMjDW8eRuCofx U3cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=pnUi6Ctj; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q3-20020a656843000000b0054ff67d6666si8563710pgt.512.2023.06.28.03.55.08; Wed, 28 Jun 2023 03:55:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=pnUi6Ctj; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231898AbjF1Khk (ORCPT + 58 others); Wed, 28 Jun 2023 06:37:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232694AbjF1Kfi (ORCPT ); Wed, 28 Jun 2023 06:35:38 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36980187 for ; Wed, 28 Jun 2023 03:35:31 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-51d9c71fb4bso3313467a12.2 for ; Wed, 28 Jun 2023 03:35:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687948529; x=1690540529; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=UFF36qN3ZuOZkQLAZyv7DUyKVdgOhZNMPXsAgM28wlU=; b=pnUi6Ctj+0LbU43JP5axsRQDqfy/fLsNMnjeHbORgb2tA7WeRC2rlwv1rz9JSkovaY +n0AS5yRpaRxvaKlQanpMbiZvZAfvbocCaOwOMaYv+5Gb3MHlgKyjL28HO8yRF9lgzqM 1gxcPvFdr/6kcSCUf6j08DuTotgn4xLvjuanQeiqgDICBC2hyRNrNtEJgFRidNhbbwYs rXWztxlksD97GC+BAIUQrgML67bzR3mqrnSBKE8ASBe9Cm7wzZIq4ZDaHwvOg0a4ENrS eagsnsQkD24Ler1SI34tnXc+JFmZB2AHgd29LvXfN3KC40MJHLxgU9rfIP+3CMnIAhRU PfHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687948529; x=1690540529; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UFF36qN3ZuOZkQLAZyv7DUyKVdgOhZNMPXsAgM28wlU=; b=M2/iiZ3zr7N1yUAVpCAIIiWP+ZYxARtZgBznQ89qSLaPQcIFcQoJXVl2xqgibSjh8P uKWLjGaFPljXWAMsoHlIxWOyZ1uYhuykZFm25j5bGieMrZtg7ap3ZXueIapFPhqI0z3h xaU7tqvLRxaGEf2iFnlJ95flbg93eNjFex90nC5kLutvtVXFHW5+K4jB0SKuvFG+YG9J 0pEUZCtUXWBL0YVt7ozZrJr6Z87rtIGwY7LmVwBg9MfZXvyUgJxVvIHUAa/h2ba02WP9 ZmVkvyQUgmUMU7cyL0X8BaxYDbb4jQ2NhGebIqK6I4PH3qHFaPIddhpQ/Uf5mz02Sx/t hYqg== X-Gm-Message-State: AC+VfDwiOetNZUAkUtlz2iI3JJer9E3JwO0SYyJ+79E1tt7pX3Vpq2cD Q5Ge0Mpcz4lXm5fny5JmxIRvTawKBCUyTqA9FQ== X-Received: by 2002:a17:907:6e26:b0:98f:c9b:24ed with SMTP id sd38-20020a1709076e2600b0098f0c9b24edmr9063607ejc.67.1687948529413; Wed, 28 Jun 2023 03:35:29 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Giulio Paci Date: Wed, 28 Jun 2023 12:35:17 +0200 Message-ID: Subject: Re: Realtek 8822ce connection is very unstable To: Ping-Ke Shih Cc: James , linux-wireless@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Il mer 28 giu 2023, 03:29 Ping-Ke Shih ha scritto: > Try below options to see if they can help: > > 1. try another band (switch from 2GHz to 5GHz or opposite) I tried to force 5GHz. And then to force 2GHz. When connected to 5GHz it seems a little bit more stable, but still hangs within seconds. > 2. try another AP I have tried 2 different AP, but the situation is very similar with both. One of them supports only b/g/n, so I was able to change band only with the other one (which is a hotspot on Android phone). > 3. disable WiFi power save by > rtw88_core.ko disable_lps_deep=1 > or > iw wlan0 set power_save off I tried setting disable_lps_deep=1, but still the connection seems unstable. > By the way, when you try disable_aspm=1 and disable_msi=1, I suggest to > create a file and add them to /etc/modprobe.d/, and then shutdown and turn on > your computer after a while. Because some PCI settings are persistent if only > do rmmod/insmod. I confirm this is the approach I used in all my attempts, including disable_lps_deep=1. I also checked /sys/module/$module/parameters/$option content, to confirm that the options were correctly set. I have also carried out some additional attempts: - boot with iommu.passthrough=1 instead of pcie_aspm=off, but it does not seem to improve anything (and AER errors came back in the dmesg); - After my comments on https://github.com/lwfinger/rtw88/issues/150, https://github.com/lwfinger/rtw88/ was updated and I was able to load these modules. The connection is still very unstable, but with these modules, when the connection hangs, dmesg reports: rtw_8822ce 0000:03:00.0: firmware failed to leave lps state sometimes followed by: rtw_8822ce 0000:03:00.0: failed to send h2c command I have tried to set some of the options above using modules from https://github.com/lwfinger/rtw88/, but so far, apart from these additional messages, the results are almost identical to the precompiled modules that come with Debian. One of my colleagues has the same hardware (same AP model and same laptop model) and also tried to install Debian bookworm on it. I asked to check if he experiences the same issue, but in his case he was able to stay connected for a few hours without any issue. I wonder if the issue I am experiencing could be due to defective hardware (initially I excluded it since the same configuration is very stable under Windows). Is there any specific test that I can try to exclude hardware issues? Bests, Giulio