Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp77232rdb; Thu, 1 Feb 2024 02:35:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFqj2mSpfBjFTVn1NyJSz3QQO+ejwdLVCyBLdQENnrN+vdiENmUNAzUgAGXB60KvYWuomH9 X-Received: by 2002:a17:906:aad1:b0:a31:9b4:aa2 with SMTP id kt17-20020a170906aad100b00a3109b40aa2mr3756045ejb.51.1706783723159; Thu, 01 Feb 2024 02:35:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706783723; cv=pass; d=google.com; s=arc-20160816; b=hx92FcOV/uuTvl9btcwlhr8Sy1N6ScrMWcF6ufYtWePJH73/X2D0pRKGS5H+pymn8W VTbxF6Ti4YNhzFvw3KJkEd2tttfadTgpkN8i+rM0is/lE9B1GVCFsHy9sB/pgHppT/pL kkxNwGAkpGjXheB2B5QSlGPo4SSG1+oxqP7n9/vxQur5p5UKG985NC6c0H5bSFj2n7TK j5+G0Ubk29hrUTiAYo7iQGdehXK7j2YTf2vTwbWxuJ2Geg46tcFWsc77dULQ0a0FnH/h tHakV4c4vKPSeKYuwnMGBilmuvujHCeUfjUTorN3NSM6XfYYv8BaP3mMdjOMCujWm2v1 3Tmg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=n8ttEEltyOrz8a3N1kBHq7J95lRlNihkMfvb54EfPRI=; fh=cpXBvRsPY/X20vkf2+ridQJ5+fK9QFB0TgjAN6/yTR8=; b=xGj0b9s2Om2KtY9hyyoVbMT86zT9iV1ClSBOIxhZcePNQU5GoSIYnfoFUjQFpcBty9 /QOUEAJhwWviKtUqU+lAkLxHWtwX/YyeYOdHZqE8hcLhpp1H62semL9ciZaouuRouyoB bWEHku4x1oTuLrvRcW31FGBfYlzmeEQQ8caLLDCfjXBrNntmVPA/Gx+t7u8EKcc4pECT /6z7qUztDABoXhol/Mxz6hINNgfdzzlaoshqfJx0RMJ2kADx7YBsGRrMhsIlp2NUQs+D uOGuMhvjjbqjsaf0r5SsISPSwzwJMLVhQ6YhrkeKRFBsd11aAtJqCOTiRkIYmBhrrEBv TjuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L6JKkdPY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-47970-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47970-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCW0bCVDiBxFmSARoPyzQUg+6Ter2kVjrak16WkeiViD/2MVBpLROWHgXhSt2LCkTgOaVAFiXMDozGeuO31UVIfE0NKM2iJ6I/dP8WeFkA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r25-20020a170906c29900b00a2ea559ef61si6585330ejz.250.2024.02.01.02.35.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 02:35:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47970-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L6JKkdPY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-47970-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47970-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id E30151F2286C for ; Thu, 1 Feb 2024 10:35:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B7AE12BF1A; Thu, 1 Feb 2024 10:35:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="L6JKkdPY" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D6F02747F; Thu, 1 Feb 2024 10:35:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706783711; cv=none; b=nCnhCQQByXev/+8i29k/vN42l0f0vjx1wBgiFue6npndC2yLsoIf/VbO+uBzqkj8nB2+KHd/3+HYme69S9Q/F44dzFmNACBJrmnVJWtIgWaaQe9J2omPAP+CNhIZ2KYJrODYJAoDb16G/pr9dIJdx2LOKM22EWFe7fYq1amc0jw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706783711; c=relaxed/simple; bh=Bb1rYm9y/hSa3JbuBT1OhhXmxnhnEzNS0Vs6wyeIOyk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=I4i8p0qv1Xu+jBxBLnF/iXJqXt3wo+AG6z8orHi2+GlHndpNhvGiu8G5uUewkYPTmayBAowRhdPsgNQ4h9eE3BDoQ9qXIpgHnMpZA7AAuwuLa9MNg9UmXkGl3+bsZdgDDgYGgVWAzJMBNtT5ZYpY8raMnx1wuxszERu9pGt7QII= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=L6JKkdPY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5642EC43394; Thu, 1 Feb 2024 10:35:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706783711; bh=Bb1rYm9y/hSa3JbuBT1OhhXmxnhnEzNS0Vs6wyeIOyk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=L6JKkdPYUrZVOFe2NKrIVbNs4kvuubA0Mzz5CQHvjyen/csbYWeZR++BVNFwtT7ET HRpHqJl51i4FU3eNDoo80SfF/bzLHRRzBJubnNFbngJy06l6lr3PEYwKLm75eh6nVq 6ZST4KfYGCnCpiWszKFhG8rAPlYOqwyKbIxN5Fj18VetLeVEHrOZhoxr9lmMgGfb5o UOKp5bXfZvKOCHrUmkPM7/0BMBELHQ6ia8HSqFUarT/UtmyTWVIPxkYzwd7UgHCpq0 IrGx0YlJealEG+ekOryOvM+9j4ejRt7mPEHH/AORnRj8dYCRcHSqlFR8S7wCTpShqD 8bNzOkdebEndg== Date: Thu, 1 Feb 2024 11:35:04 +0100 From: Niklas Cassel To: =?utf-8?B?0JLQuNGC0LDQu9C40Lkg0KHQvtC70L7QvNC+0L3QvtCy?= Cc: Daniel Drake , Jian-Hong Pan , 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 Subject: Re: [PATCH 1/2] ata: ahci: Add force LPM policy quirk for ASUS B1400CEAE Message-ID: References: <20240130095933.14158-1-jhp@endlessos.org> <20240130101335.GU2543524@black.fi.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Feb 01, 2024 at 06:50:53AM +0300, Виталий Соломонов wrote: > Hello Daniel, Niklas > > I assume that both of these logs are from the same kernel binary. > > Does this kernel binary have the Tiger Lake LPM enablement patch included? > > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/?id=104ff59af73aba524e57ae0fef70121643ff270e > > Yes, it's the same kernel binary with applied patch. > > > > > Could you please try to set: > > CONFIG_SATA_MOBILE_LPM_POLICY=3 > > and enable VMD again, and see if that makes you able to detect the SATA > > drive even with VMD enabled. > > > With this policy settings my laptop was able to mount lvm volumes (/ and > /boot) on SSD (/dev/nvme), and stuck on mounting HDD volumes (/home) > dmesg: https://bugzilla.kernel.org/attachment.cgi?id=305804 > journalctl: https://bugzilla.kernel.org/attachment.cgi?id=305805 Just to clarify, in this latest log VMD_on_LPM_3_dmesg: [ 0.957793] ahci 10000:e0:17.0: AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x1 impl SATA mode [ 0.957796] ahci 10000:e0:17.0: flags: 64bit ncq sntf pm clo only pio slum part deso sadm sds [ 0.957982] ata1: SATA max UDMA/133 abar m2048@0x82102000 port 0x82102100 irq 142 lpm-pol 4 [ 1.271254] ata1: SATA link down (SStatus 4 SControl 300) We still don't get any link up, so LPM policy == 3 did no difference. I guess someone at Intel needs to debug why we don't get a link up with VMD enabled, since AFAICT, having VMD enabled is like adding an extra HW layer: libata -> Intel VMD -> Intel AHCI controller instead of the normal libata -> Intel AHCI controller Since it works when talking to the AHCI controller directly, the question is if it is VMD not following the spec, or if it libata that is not following the spec (and we are just lucky that it works when talking to the Intel AHCI controller directly). Kind regards, Niklas