Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37B6EC433EF for ; Fri, 10 Dec 2021 09:34:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236199AbhLJJhw (ORCPT ); Fri, 10 Dec 2021 04:37:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230517AbhLJJhv (ORCPT ); Fri, 10 Dec 2021 04:37:51 -0500 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A47A4C0617A2 for ; Fri, 10 Dec 2021 01:34:16 -0800 (PST) Received: by mail-oi1-x233.google.com with SMTP id o4so12453965oia.10 for ; Fri, 10 Dec 2021 01:34:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessos.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=C5610rni1qA1S97ONM74fivbTCLDtdb0GPqD2NdK+Cs=; b=KkpK0QwaC6Orez1MdmfJEhK+fZ0PtseO4yARtqs/MT4jnwN4cR9i47T8yjqlyOJiqF V3m132XCN8FY9dbmXxbvRl0fPTXmQOwN+gvRdhd8h3O8krS2wrw+u5xHnrxmZeyaZbQG 7aVom0yR3Leu3tSDXbxG0LZkkPq+0SYJcghV27BLyTIl4f8fjxykp9qPfMFCGlfX4hra 1lt6z4jMvyVrlQicJFiglNpDL3ehxqBV0PYTRW4yPsX11cSOy0tjUzO6VE1na9RpUZpy 3lr18UAqVSIxSGbNDimw6a46CHMY0aiUu7qlYGVsti++Q6DP97BP6J9XCGBCOLBBaNRe AXLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=C5610rni1qA1S97ONM74fivbTCLDtdb0GPqD2NdK+Cs=; b=JI6HnQl+tMHzib0oPnTruCzjLBOI1t86tP0zXgX7hKdH+1UMsRNwQOM8iNtXFuFY1l zgxsIHAynnSK8Lna6n2756OksAkq33uN/51qiG6Jnnx2Y8EPzcIewYpHsKhC4xb770+b qMmx7EIX5UYAgTzGHSWGufVku+Ei1RgclzXGcvLHIm+leRedcp6ossZ74opX42eu2qLM tc053/ccabxTy0TS0U1SjO65IbGD+HKoSDYef0UHrnmT9w2nUIBZSqIRziHj3goCPLBe jt2VycxzmUuwGlLCeM2iWJV6rlRoN8nHEFGUd6hsKIHr23x74vSZuHPfzIi5ufh7PrAV 9GjA== X-Gm-Message-State: AOAM533sRslbdtQ5WgCKjToqz7NCSrF7jtBWPGRyVTl4SRIBQUO8iUUz P5ibBwTTMAT6brP/BSzQwqPf606xouUYyCkiGjIkMQ== X-Google-Smtp-Source: ABdhPJwWBPx5Mqb40vNS33Uax+Ly8JSKNY9dFiEueiwRbh+hF0Yi79HGw5RU3xmsDwt7KtlUAyANOQExJKVLVFcNgQk= X-Received: by 2002:a05:6808:14:: with SMTP id u20mr11260168oic.69.1639128855984; Fri, 10 Dec 2021 01:34:15 -0800 (PST) MIME-Version: 1.0 References: <20211210081659.4621-1-jhp@endlessos.org> <6b0fcc8cf3bd4a77ad190dc6f72eb66f@realtek.com> In-Reply-To: From: Jian-Hong Pan Date: Fri, 10 Dec 2021 17:33:40 +0800 Message-ID: Subject: Re: [PATCH] rtw88: 8821c: disable the ASPM of RTL8821CE To: Kai-Heng Feng Cc: Pkshih , Yan-Hsuan Chuang , Kalle Valo , "linux-wireless@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux@endlessos.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kai-Heng Feng =E6=96=BC 2021=E5=B9=B412=E6=9C= =8810=E6=97=A5 =E9=80=B1=E4=BA=94 =E4=B8=8B=E5=8D=885:24=E5=AF=AB=E9=81=93= =EF=BC=9A > > On Fri, Dec 10, 2021 at 5:00 PM Pkshih wrote: > > > > +Kai-Heng > > > > > -----Original Message----- > > > From: Jian-Hong Pan > > > Sent: Friday, December 10, 2021 4:17 PM > > > To: Pkshih ; Yan-Hsuan Chuang ; Kalle Valo > > > > > > Cc: linux-wireless@vger.kernel.org; netdev@vger.kernel.org; linux-ker= nel@vger.kernel.org; > > > linux@endlessos.org; Jian-Hong Pan > > > Subject: [PATCH] rtw88: 8821c: disable the ASPM of RTL8821CE > > > > > > More and more laptops become frozen, due to the equipped RTL8821CE. > > > > > > This patch follows the idea mentioned in commits 956c6d4f20c5 ("rtw88= : > > > add quirks to disable pci capabilities") and 1d4dcaf3db9bd ("rtw88: a= dd > > > quirk to disable pci caps on HP Pavilion 14-ce0xxx"), but disables it= s > > > PCI ASPM capability of RTL8821CE directly, instead of checking DMI. > > > > > > Buglink:https://bugzilla.kernel.org/show_bug.cgi?id=3D215239 > > > Fixes: 1d4dcaf3db9bd ("rtw88: add quirk to disable pci caps on HP Pav= ilion 14-ce0xxx") > > > Signed-off-by: Jian-Hong Pan > > > > We also discuss similar thing in this thread: > > https://bugzilla.kernel.org/show_bug.cgi?id=3D215131 > > > > Since we still want to turn on ASPM to save more power, I would like to > > enumerate the blacklist. Does it work to you? > > Too many platforms are affected, the blacklist method won't scale. Exactly! > Right now it seems like only Intel platforms are affected, so can I > propose a patch to disable ASPM when its upstream port is Intel? I only have laptops with Intel chip now. So, I am not sure the status with AMD platforms. If this is true, then "disable ASPM when its upstream port is Intel" might be a good idea. Jian-Hong Pan > > If so, please help to add one quirk entry of your platform. > > > > Another thing is that "attachment 299735" is another workaround for cer= tain > > platform. And, we plan to add quirk to enable this workaround. > > Could you try if it works to you? > > When the hardware is doing DMA, it should initiate leaving ASPM L1, > correct? So in theory my workaround should be benign enough for most > platforms. > > Kai-Heng > > > > > Thank you > > -- > > Ping-Ke > >