Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1534311rdb; Wed, 31 Jan 2024 01:15:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhboj4/RV/o/8YF0qovDzrKhogXgVOkHomhhlDeFLEoRnokBy4M2tYQU3NwtvCyUKyxbBn X-Received: by 2002:a05:6a20:6221:b0:19c:8412:2dd8 with SMTP id p33-20020a056a20622100b0019c84122dd8mr3772818pze.15.1706692513987; Wed, 31 Jan 2024 01:15:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706692513; cv=pass; d=google.com; s=arc-20160816; b=Y70d6TqWtHogpA0Bg2js5HKDMkgTS5kIcc39+m4dmRyQs0neiM9bQPhuay8uRbg8cL usBZhwd0SpUnensZe/nUlA5D11n7KPi+SVA34ld0SNBlkKvSfWl6p+rz1J9uxjU5Oh2B TUpnaQJKU5KNUBL/nwyQmqOyh50l4V6Xc6z2JRG/wISfp4FaFWxDbKFdGI+hkXAVMb2o nxrQ2+RTmrQ1NGdDyr58YZ3Oo21I6/YVSXjVc1RJTPcFU1Zw3rlctGBUPrgW3Qd6y5wt ZRS/XGHLA/ZY4+6qv05g/W4poaoJOg9OnBxlWmeTT8SMImh0Y8S/CdnRg8+nthu1gewT 4lSg== 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=PKv1oho1laKgagdEbM4KbckuWDsfrLBNKB+tjbPNi3M=; fh=NTbz2FDas0Fsril+Q/uAjXqV1Zq3w9RfORZNPzigy70=; b=BS+ARY3p18g01s/48ImPZfLkdr2PJOJ2RpUZiDegJJNaNEYHKaJv5qDSJdArUn1DSf yfB1WmnPC33RvlhaPb7Kjlm1vhi62GW0VjN7obSLxSCJOFl0FAAOeMmc/U7oq2HxGC74 tbMbH1Bf6VlkjQFEHvFasv8xFtbATY9QZ3BlE+e5FNqap8nThVTtOE37G7J+woMDnW9Y WV89v92oVtw3eAKdd2geGfV7/YVYPFugJUMyMSOSBDiL26C1qRuhq7chTHPSpHlU3/1E 5+tk7kFM8rU78mM875rvklZc9S1YANiOuXrv4r2+lMRKDbm8BuU98hqVSpH1qYagWXCg 4zew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@endlessos.org header.s=google header.b=IgJxrBM+; 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-46086-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46086-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=endlessos.org X-Forwarded-Encrypted: i=1; AJvYcCWQ+1/oOFnEL5b0gypSMnPyqr1RF634vkubG00rrlzs0lKzINgSdyjTKMEEW0a9B2EqfLhFAWXUJrSqaqfnl3UxXtJwUuxjOuLATVUxlQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b185-20020a6334c2000000b005d3a532f031si9129311pga.257.2024.01.31.01.15.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 01:15:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46086-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@endlessos.org header.s=google header.b=IgJxrBM+; 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-46086-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46086-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AD9B128FC1A for ; Wed, 31 Jan 2024 09:05:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8AEF469D1F; Wed, 31 Jan 2024 08:57:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=endlessos.org header.i=@endlessos.org header.b="IgJxrBM+" Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) (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 0D3B769D16 for ; Wed, 31 Jan 2024 08:57:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706691425; cv=none; b=iXSKObMxbO33CeK9oOex3MqzU8aMsE/7LSuINyR38UBxXVRqVl7S6KBiRD1xF2JoXA22DtavDMG9NHSfH1oPWXvPjRmAvQvdNCqKyn217b1QkK1lCRpwUXY5Z1DMtEDnSH+ilAa8tssffhvT/fkgb9+4XoF2KGMf++1VYGiguW0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706691425; c=relaxed/simple; bh=PKv1oho1laKgagdEbM4KbckuWDsfrLBNKB+tjbPNi3M=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=BM6pLS2vNOLH2XPghXgwGZ5yqwiDU0uQi7V7wlVm3307n9Rt9RtPZbfFEP67lGvwz90M0Yeg3bZgAbBT9dJcE8qWKUUMcTapy97azNXomk7/Xvok8Sfd0PdtZENMJUUi/QmC6ZrvX8SeUsOpJwxQ0Kl/ZvQm8ItB7bMnaeS+gr4= 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=IgJxrBM+; arc=none smtp.client-ip=209.85.128.174 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-f174.google.com with SMTP id 00721157ae682-602c714bdbeso5600017b3.1 for ; Wed, 31 Jan 2024 00:57:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessos.org; s=google; t=1706691423; x=1707296223; 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=PKv1oho1laKgagdEbM4KbckuWDsfrLBNKB+tjbPNi3M=; b=IgJxrBM+2Ws/5QsIxdv95oTwl5UAoPG5XIJPXncZ47xfU7k/N2oqOAZw5ChVg0llDX 4qrlGRHrUo9EI9CqIEAX2QB8vx4abLHe4mLWpEL77WOiEsWyLZOUwPw/jJZKVfWDNYgg 6EZTO/61DcUg404oh90qSt5srbSjSqZNsjdy3XTadQcxihze0nPYQ+gC8Bvt2p9my69+ uGYNNLLL5QoW9M1Ck2jDiS5mEoLtp8Fuz6reSEzZ5ktLinP1W/a4qBRcKah2KutuDyr5 0SKcamLORZyUYYp1L7+qHkOnjv3QjolOt+gy2RyfWVJ5KNfxlV+Ic3R2OtdD+xg+eZ5T EAVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706691423; x=1707296223; 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=PKv1oho1laKgagdEbM4KbckuWDsfrLBNKB+tjbPNi3M=; b=YZEogJTwpcjKXH/ifQ+Zx32FYWjOQxMJLfuatWxeoYWyzl7gJVyfRMrLiuxLkfgVbe Z94HCFhj04kunM8ybGLZIml1wJ/AYqM+QEvMraIrchcK0tr1zOO8NqxOrE99vU6Bj7w+ Ei5wDATeD3bG9pk16tg7/PoR6/CMMVnd+djnbO1YJFcBzFNW5ZQCatcALnFhbKNwSo1E GDyvBUEY/5YOeM4qNlNyulgOsjubt+znjXfI8wL5Sda6qCjfb4HBKidmdczfXkeKe7ku ggA0ay2dF0LwesFiK1wX6F5LRMCuuv9WqYlB+eLAr29Lqw6SLP3gSe0Cxxj78xngL0kf e6ig== X-Gm-Message-State: AOJu0Yx5bgNlqCUImi2m/IzSBelNDOZ2UWZUIPcB8UNnSqbrWPSMPmp4 drnHCKjPsTuKQX+HybRxLA9mh9tzuTaHJLCQLjSS72jmRQe8npTMu7GigKNo3xF+WHpnoUgi0Fr Dqt5DLSuLjHzfHb9RHjsq7Ujj1L6lDIWoH36Ksg== X-Received: by 2002:a0d:eb48:0:b0:604:3ef:a729 with SMTP id u69-20020a0deb48000000b0060403efa729mr1442117ywe.15.1706691422846; Wed, 31 Jan 2024 00:57:02 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240130095933.14158-1-jhp@endlessos.org> <20240130101335.GU2543524@black.fi.intel.com> In-Reply-To: <20240130101335.GU2543524@black.fi.intel.com> From: Jian-Hong Pan Date: Wed, 31 Jan 2024 16:56:27 +0800 Message-ID: Subject: Re: [PATCH 1/2] ata: ahci: Add force LPM policy quirk for ASUS B1400CEAE To: Mika Westerberg Cc: David Box , Damien Le Moal , Niklas Cassel , 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 Mika Westerberg =E6=96=BC 2024=E5=B9=B41= =E6=9C=8830=E6=97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=886:13=E5=AF=AB=E9= =81=93=EF=BC=9A > > Hi, > > On Tue, Jan 30, 2024 at 05:59:33PM +0800, Jian-Hong Pan wrote: > > Some systems, like ASUS B1400CEAE equipped with the SATA controller > > [8086:a0d3] can use LPM policy to save power, especially for s2idle. > > > > However, the same controller may be failed on other platforms. So, > > commit (ata: ahci: Revert "ata: ahci: Add Tiger Lake UP{3,4} AHCI > > controller") drops LPM policy for [8086:a0d3]. But, this blocks going > > to deeper CPU Package C-state when s2idle with enabled Intel VMD. > > Tiger Lake really should support this with no issues (as are the > generations after it). I suggest trying to figure out what was the root > cause of the original problem that triggered the revert, if possible at > all, perhaps it is is something not related to LPM and that would allow > us to enable this unconditionally on all Tiger Lake. > > I'm pretty sure the platform where this was reported suffers the same > s2idle issue you are seeing without this patch. Simply applying LPM policy to [8086:a0d3] sounds like a good idea! I installed an SATA storage into ASUS B1400CEAE and tested with enabled & disabled VMD again. Both the NVMe and SATA storage work with applying LPM policy to [8086:a0d3], which means that it does not hit the issue mentioned in the commit (ata: ahci: Revert "ata: ahci: Add Tiger Lake UP{3,4} AHCI controller"). Jian-Hong Pan