Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp122219rdh; Tue, 6 Feb 2024 22:36:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGRZFbIT/9xXdXlrFXvDGHOpxwM54DZJVJ841AgrANFGMa2duiJyVNUpb+Q4988+U1zuMZs X-Received: by 2002:a17:90a:ca96:b0:295:c361:ed0e with SMTP id y22-20020a17090aca9600b00295c361ed0emr1639330pjt.46.1707287808890; Tue, 06 Feb 2024 22:36:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707287808; cv=pass; d=google.com; s=arc-20160816; b=vp3laj4+xu5yMAL6CaCrm69USC8Q+S8e9yPOXRntt0iEjDz72MF/iOPml234s0rOJ7 tm+mNWUF6VrhOxt12WSzhQ3dYg8bK6iHK9q7AeiNQSJzxiU2GEcDPewREWf/omZfhcVO EwHOHOljaOjQx8RHTG4F4vnLRXuu3LQzWuaoRPaKYTNBCRKooE6PSpby7onmf9SiolSP l/irtbTnf6+wuO8A6eovic9CpRSE/oSs1FKADd2dyxS30X0yn2knzFMKlQQ99cOlVb/W veRLBWU8NSdBrDoMNaipEex1mgCvt9l5OEWh5eF2MnFOUJMUsPFboPKoTQWv435hHc0d +/9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=ttQuRjkrOA882sgmcciq24ruU2hERRsTyaxuyMWHbh8=; fh=o8urxUrjjGG6M5Juqk9ODxcZLoq5PhQDIg3G8ljQAHU=; b=yKLI63QJdoT1mcllPBFVGDGvalXWPSK3N1PKw4CrRyOHaZAQGbYTjNY8ogsTuZa1Xw pHFDmrFFS3b4gCvC3NtrpLhXPrJXCS5O/MzhQzoAv/KKvO/bOaMErY3yUct+Kt9kz24p ETDkV0PApuBhzRMOuSCcL5NRqCLW8VLFMZL5DAEWpx+p9mQaWpot43LmoP9/NeA20C47 Scp11ubt+tIKYwQP3B9JgtAIh7HtAt8xyjolGXX7nctWz6Rj02FNuln+ikeqbH/34ekv BhskH8OpM6EkOdMI7/SvCtHwJ3ZQCnP+gsoOvT10vsx1hHVawtib+2RyfGfv7oAAyxNP qwIg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@endlessos.org header.s=google header.b=dkbOrG1X; arc=pass (i=1 spf=pass spfdomain=endlessos.org dkim=pass dkdomain=endlessos.org dmarc=pass fromdomain=endlessos.org); spf=pass (google.com: domain of linux-kernel+bounces-56023-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56023-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=endlessos.org X-Forwarded-Encrypted: i=2; AJvYcCXh6ZXWm1mOEMA17t43FBDJw5+viOwMC8DkG/IjWaerHQEiVsrW46odqLStFR46s0k3RNqYZ9A7QDTpAUJJYEh7U1CXguRop69A81hX5A== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bv17-20020a17090af19100b002902f53c190si2669565pjb.57.2024.02.06.22.36.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 22:36:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56023-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@endlessos.org header.s=google header.b=dkbOrG1X; arc=pass (i=1 spf=pass spfdomain=endlessos.org dkim=pass dkdomain=endlessos.org dmarc=pass fromdomain=endlessos.org); spf=pass (google.com: domain of linux-kernel+bounces-56023-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56023-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=endlessos.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B5F49B26B22 for ; Wed, 7 Feb 2024 06:36:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBA671773D; Wed, 7 Feb 2024 06:36:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=endlessos.org header.i=@endlessos.org header.b="dkbOrG1X" Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com [209.85.128.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C84F61CF8B for ; Wed, 7 Feb 2024 06:36:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707287765; cv=none; b=BxD7N87rSvz5Ugb9Qiuzur0VIAhDOLTcnVJ/EpJvY+Q0hKWbgFj7Z3sO+nwj2q1fhM53bF+LD72MU9C52B86XDLlerJr7xttMfPPHtTxwLbNX2jI16ZMfswBNwf5hf8ED0tlbUlCQDpMMZZhFRPjBcpGXbBiVIX9q7fpwv9oBpI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707287765; c=relaxed/simple; bh=QiVRFoKs2wFwGHvDewmSG3cFDRhh5i4srunXDFEJBWA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=kOVMS3B3A2RZbnBIT+9hb8mQBfVhSd738oWGE27v2vo41/ECuELPYzvfNO9WFSdIsK9oyB/cw46k9estEWkZtEsd0FkKNvFKvdcoYhERpDDiRLU0LuV1Ewfw5pGfc73FPUhWZX+gMrAV60UZXAcszZbmbc6UVIW+DF1ldZqAVGQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=endlessos.org; spf=pass smtp.mailfrom=endlessos.org; dkim=pass (2048-bit key) header.d=endlessos.org header.i=@endlessos.org header.b=dkbOrG1X; arc=none smtp.client-ip=209.85.128.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=endlessos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=endlessos.org Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-6047bb0d20fso3055017b3.1 for ; Tue, 06 Feb 2024 22:36:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessos.org; s=google; t=1707287761; x=1707892561; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ttQuRjkrOA882sgmcciq24ruU2hERRsTyaxuyMWHbh8=; b=dkbOrG1XWijAb1mBt+e3Tcvk3fXB3L3EU9yeLVWg2gni89iNrWb7y6cjMyiX3LSCos xbNyCbAx9EZJgaL4IifEyBZuY9hX2CsWYM49q6rsegjTH8E24Te0SgJ+99jTKVLpC2pU CaDeggoeOw62ANnwErHSpHo7z/oavJDgGraeU2KDsRmvY3fTatdH0B3C7z2+LbTtd/7G 2rCtkjujVlK2LZbfkTnXVubgSSjr0Qq5KifEN2bAb7tqgyHKordpQ1HwklesJqBsv0ds bT+ZHV8j4ZtT9aw+oR2RUEO409HCg+75Rv3+haNTsPXhbTjKzDo0Y6gcXa0Altwbk85q HoNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707287761; x=1707892561; h=content-transfer-encoding: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=ttQuRjkrOA882sgmcciq24ruU2hERRsTyaxuyMWHbh8=; b=FaSjMosd6d3pYyRUClJTXZ2SUNkARK4BVDCmNbMbySSd5A6/A26yn9Zr1MpRMBCdhC Sg1MoRlPlKAETkZ3OSOOTHd44OaY6Q103asKKSfLBpfLAUV2lVnZ3CoCctqM2vrIL7Co eOP4aJCHD5DA6ZJvz+KD8dnQymwzW/2KQRtBwVzhRks17ZQMHeKZfoiLiKhijSTllja6 5Kd8e+Ql+t5lmh+7hHxWtPLp5zCqBGmbXGEw1unwC3KubTxh/qGi4pKzG16Ds7u1RXUC dYSHUAk/rD3Mrw5f4TRf6q2BCbegMYsG7csKWCKb33rgno6XdpAJB8EOJnZV+qR8GQRK zpfQ== X-Gm-Message-State: AOJu0YxSNyinQZzi7lsOelWnUxyV+fjvoLUwMT4r5ueZzlJv51P6d9oy 0U0fLquBF0T6YD/iijF434XeuN4KG+Se0ID9cCPJGqXGvvwt+ck1aFzgvfKhTE4iumYBJAY/n30 I6TfgA6M54T3GXOGmGlCfsdu/rw92Vek2gEB7PiklCAAhDURzKeHUwg== X-Received: by 2002:a81:7e11:0:b0:603:d575:e2e8 with SMTP id o17-20020a817e11000000b00603d575e2e8mr3720535ywn.10.1707287761664; Tue, 06 Feb 2024 22:36:01 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240130101335.GU2543524@black.fi.intel.com> In-Reply-To: From: Jian-Hong Pan Date: Wed, 7 Feb 2024 14:35:25 +0800 Message-ID: Subject: Re: [PATCH 1/2] ata: ahci: Add force LPM policy quirk for ASUS B1400CEAE To: Niklas Cassel Cc: Dan Williams , Daniel Drake , Vitalii Solomonov , Mika Westerberg , David Box , Damien Le Moal , Nirmal Patel , Jonathan Derrick , linux-ide@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux@endlessos.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Niklas Cassel =E6=96=BC 2024=E5=B9=B42=E6=9C=887=E6=97= =A5 =E9=80=B1=E4=B8=89 =E4=B8=8A=E5=8D=886:07=E5=AF=AB=E9=81=93=EF=BC=9A > > On Tue, Feb 06, 2024 at 02:12:17PM +0100, Niklas Cassel wrote: > > On Tue, Feb 06, 2024 at 04:39:02PM +0800, Jian-Hong Pan wrote: > > > Niklas Cassel =E6=96=BC 2024=E5=B9=B42=E6=9C=885= =E6=97=A5 =E9=80=B1=E4=B8=80 =E4=B8=8B=E5=8D=887:33=E5=AF=AB=E9=81=93=EF=BC= =9A > > (snip) > > > > > It seems that at least Intel AHCI controllers that also have Intel VMD > > enabled break when this quirk is applied. > > > > I guess one way would be to do a: > > git show c312ef176399:drivers/ata/ahci.c | grep "PCI_VDEVICE(INTEL" > > and replace everything that is not: board_ahci_pcs7 > > with a board_ahci_pcs_quirk, board_ahci_low_power_pcs_quirk, and > > board_ahci_avn_pcs_quirk, and after that change all board_ahci_pcs7 > > entries to board_ahci, and assume that entries added since c312ef176399 > > do not need the quirk. > > > > But it would be nice if someone from Intel could clean this up. > > While it would still be nice if someone cleaned up the intel_pcs_quirk. > > > Jian-Hong, perhaps you can try my series: > https://lore.kernel.org/linux-ide/20240206211352.1664816-1-cassel@kernel.= org/ > > Also available here: > https://github.com/floatious/linux/tree/external-port-v2 > > With that series, you should not need an explicit "board_ahci_low_power" > entry for Tiger Lake to get working LPM. > > If fact, you want to ensure that you do not have any Tiger Lake entry in > ahci_pci_tbl, as that will apply intel_pcs_quirk and break your platform. > > Testing is appreciated :) > > Let's hope that LPM is enabled and that you can also enter low-power > C-states. Yes! That patch series binds LPM policy by default and avoids disappeared SATA storage issue. Thanks! Jian-Hong Pan