Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp404480lqb; Thu, 14 Mar 2024 14:58:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUMapTH8ogA+DPqxLBXVzoGrD1Clrzgwrp4jLE6dgYmvw5q9oX7vOAHZOf+ZWvpZPR6uyfdnzS50SDaQ+IQxOHBzShxO1a8uGFzgOTarA== X-Google-Smtp-Source: AGHT+IG3Ey4Alo21323u0w8HSLLtjIWNjbt7f0LxiynH7KoUoH5+K7/pkHdc5qMCJ4BhUDhJJeC+ X-Received: by 2002:a05:6358:e488:b0:17b:f233:9890 with SMTP id by8-20020a056358e48800b0017bf2339890mr3825454rwb.6.1710453512052; Thu, 14 Mar 2024 14:58:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710453512; cv=pass; d=google.com; s=arc-20160816; b=pLfwoeHv9NxwbP+qyVYzS760pQqxOHyd1UR0oiDXCx2IavDhl9g3d8npv8vp+GiuoK HCzQzb3NEXdiDg9rI4Zz3QCdjVrO4wbJk9qSAy0wj+wliIuugdPOPoY7eSNkHmmggHgP RlUx7nw1o1ry/5n/oBxMXqLudZliO1i6dlweEULBkD31Vo7qJDkxfdP4LXMvdQL6JnJX mxgvKvTYtG2ql/js62SmfkKLKt8RxboRwITLtjHTQBC97n/r/C5RnBR+DCG3dvU3VKlY cA1U6I1wwOgq7RyVe41KoQJNN/2wx30CS08GlesDE8yXorD9qSKIClF3EkRp6Kd70HwQ o3Mw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=Qv8KYdDM5uJY5i9eKPH1rdgjlsJyisPpT89t0lMdw24=; fh=KDYjbpOuQpyWGx6euMqN9Q7b7nSvN+AmaToWZqR4D7M=; b=VlOmBsBxZ5zC/w38hs6fLEUMCDaxQebqV4R5EFPY2i2hVa/cmwExdY4YC1Qop4Zyxz HzQZ1Kns4Ry0CFEAp4kmh4uWMiZUuhWokw6grwYGmr94Q/PAiCfPJS7GeMCaTGV7iall prNU9jrVXaBpN2gyP4nyzZltHePk7uwlu7ThJq189LQiuzpwfG2AjZNpbgvE3fTMFUEA HZk9rXasqlE9FmW+CscjlTySpKOIO6o7fvUfVyhryw/QpZrGN8YvmfCxl3Sn/wg5+p94 NzsqYDX+SmMPrxYuWprM4Q98cIaw5/APsGgMV2hnhjQyeYhdMqPJi2mjdmD2nkXGnb7g NGpw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-103818-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103818-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b15-20020a63eb4f000000b005dc9daed2d2si1376678pgk.429.2024.03.14.14.58.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 14:58:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103818-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; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-103818-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103818-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B0070282F62 for ; Thu, 14 Mar 2024 21:58:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A72F3768F7; Thu, 14 Mar 2024 21:58:23 +0000 (UTC) Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA3D574BF1; Thu, 14 Mar 2024 21:58:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.133.224.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710453503; cv=none; b=NwEbdOHwxaxWnZj2K7dwE1WolwipJStFLem5TA/dItFPteEW4MmTCnpEnOQV25lo9fUWQpGhAfnLU4jjc6DokHipUM1GAuXKQKefMFp9JAKlZh85xzfWEvOV9qkAnout33pcYmZAKt/hJMFSqWnllxPYCJv2+I058Vl5KcPwMhY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710453503; c=relaxed/simple; bh=QSCWd+TdMFNpJGRQ1DIVGNPy+8YVd9Lq4b3H4thFAz0=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=SHLohGhKcuPJvwiSErmBMKmSXhNIDgIpeDdMbpiNy50dl0ILsMqw87iRQeltWnzoKFlQyBfhNSV9ScGfIZ6BI02VJIAPNyMYU3aMTzWfC0H0+FGZyMKrEmI8CV18ooX4EuGn4HvVzAGbnArgMoKO+84UEeUrDFIsvYtTpwmpzCA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk; spf=none smtp.mailfrom=orcam.me.uk; arc=none smtp.client-ip=78.133.224.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=orcam.me.uk Received: by angie.orcam.me.uk (Postfix, from userid 500) id 3A0C092009C; Thu, 14 Mar 2024 22:58:11 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 2AF7492009B; Thu, 14 Mar 2024 21:58:11 +0000 (GMT) Date: Thu, 14 Mar 2024 21:58:11 +0000 (GMT) From: "Maciej W. Rozycki" To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= cc: Bjorn Helgaas , linux-pci@vger.kernel.org, LKML Subject: Re: [PATCH 1/1] PCI: Use the correct bit in Link Training not active check In-Reply-To: Message-ID: References: <20240301150641.4037-1-ilpo.jarvinen@linux.intel.com> <01666075-504d-a434-d039-2e25db931f23@linux.intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) 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-Transfer-Encoding: 8BIT On Thu, 14 Mar 2024, Ilpo Järvinen wrote: > One more point to add here, I started to wonder today why that use_lt > parameter is needed at all for pcie_retrain_link()? > > Once the Target Speed has been changed to 2.5GT/s which is what the quirk > does before calling retraining, LT too should work "normally" after that. We don't know if the link is going to become stable with the TLS update to 2.5GT/s and we want to ensure that the link has reached the active state before claiming victory; LT clear does not mean the link is active, it only means what it means, that is that the link isn't being trained at the moment. Also we don't want to reset the TLS to the maximum before the link has become active. Does this answer your question? Maciej