Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp3081734lqt; Tue, 23 Apr 2024 09:47:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXc+Fgi/OA4Z+Kq+9E7GBRK/J+6cY3ls5LFn+t3Z52LwRlhYq/wlDw+67zgjmYXpcQOybyPl6c60XMvpGuH1Qk64RzzJumACCQs3shnDQ== X-Google-Smtp-Source: AGHT+IHKt/zQ2rrIAKcrieOaHhcLjQhor7OP3entxC39Hn9sphFaL0JiKye1Bk93E4l07MS+EKv9 X-Received: by 2002:a2e:984c:0:b0:2d8:2fea:2e4d with SMTP id e12-20020a2e984c000000b002d82fea2e4dmr9137915ljj.2.1713890832864; Tue, 23 Apr 2024 09:47:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713890832; cv=pass; d=google.com; s=arc-20160816; b=W1XPfLvQC6tg2r9+8NtdXlg1sKPNBszkz+AGgC2J/tkjwm4ddpDO3LVKSOvOUpzh50 zv/RFxyUt0Eq7DFC/SgZhSrS5v0zNf/99WEqOdzyMNA3JCaButJL9WtrxJOpYEsPe+d1 oYMg9lVPsM6HJ2ojEJ5qRU0gbstfRFDA2hjZdQIhl3Eai2/7rEP5Crb/JmHSKo1WdBE0 MPQhfbv5knF5KEtmZgihvuicE3x0x8OHylWRFX0c7pl+SkD3Dd2JnC4YC0XRGH1+i/cn g9SQ96Urtmra5Qt4usPT1NsYOuyoctLDUvG6upgrdTrkxjfhSSeO2xJHvxcMCCgCm8Vp daDw== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=r1kc2BP9NTsB9m9vHNAs4aLPdFmWfleU/8O3kOpypDU=; fh=uPS7mHXik8g3FY1h1+kg1j5xIRaeakolDt1cxl/aTb4=; b=Yiegmr2bOfdCLlftzcpku/GUb7GU6Sy/6lXnKQYa96aGy5hIPdVPcjhhwDFKcU/d6V j5+AP7ROoaaTXM728sKo/qt1aefadCUM3sTtOiEhr4LpF/9haH2lyxwTSiAE575mVolu pEJfwMfyDwmuytEOaTmERMFkanB7kO9PFApk89yfDJXCYQdrd4VnKIiGC/BQvQpDkiQl 1tvdYGJLMFssbueWbDB8CM+RECa6+On+nEZZecItPV72/W9HIZdFJEwovpPX/7vSzYNO cJBf8fX33sv7yiykxWDDm1Wa7VeYdz+3QDx0tyzJzYDAymuc2EBXOrpk/gZcCGEkDtdY QO+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XwGZMm8y; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-155255-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155255-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y3-20020a056402440300b00571d5f92106si5987047eda.584.2024.04.23.09.47.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 09:47:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155255-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=@intel.com header.s=Intel header.b=XwGZMm8y; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-155255-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155255-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 EBF7B1F25828 for ; Tue, 23 Apr 2024 13:09:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6BA02136E2F; Tue, 23 Apr 2024 13:08:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="XwGZMm8y" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 1AE831332AC; Tue, 23 Apr 2024 13:08:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713877731; cv=none; b=U01Qi/cbFnjWwoz/UzJzUsxBbBvAA+2stTjUJHazIYv9LF6bW9yD8rcdD7mQJ7d5WiLTig4LrbkXDbGsiLIOWaTxHpFl04xPcGI/PWzp3oiY/JcVwPrSFpYS9TBBgst0W5w4QC6mKVka7niUv5cE0p3h2iAD0ltDV5UhSuGEnDE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713877731; c=relaxed/simple; bh=tiSx6svfQLvugPCGXyVAGPzzoOTF3iLPPrc0SKFu0M8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=XFKwFk1QzI8L/Qfz8qqPHPfN+jKohztx1RbPBaPU0oLaaZFHJkHHp+q/NjglqqAJDlF0qDfsRrtBlO8803CYoOmpbVaTD8tsvJromZKWZ9Z1ABB613vHSU8/bjEK5CfAX96BInHq87/pHVsYS9lo+0Fh4dmWlFJEJk28gBxQNCk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=XwGZMm8y; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713877730; x=1745413730; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=tiSx6svfQLvugPCGXyVAGPzzoOTF3iLPPrc0SKFu0M8=; b=XwGZMm8y0fBEdVH2rK6TyeanO7D8Gc2+ZJYir4BWzjO8z3Jhw5hxQo9P WgLd+b8sfot5lA0K6RHLFpy5vclyX5Qfqt4nQzXZ0mLhbVNjxeo2cmyDV ziWyaOfQpVuvzPHX9E6s4wQUkAgjv/BU8AViw55J1X6J7KdYIIrK7E4Zt CwsAEJcISY27hFF9Jj7uqAgmWbtE8SmrTyNNZab6JPv/otFBMvnqhTjGj F0INaS31WlA8CgM5jldB6Q6Nq6yqw7Mm0JvjywElU/a9H4Dtijo09hqjw dw/8Ft0ulUHoV/LudU56cTnpGjjzhWKbnNaIf+9Q4LD+G3MqTms6Pbyjl w==; X-CSE-ConnectionGUID: Sqzw/vWwTjaPHIRmDBDY8g== X-CSE-MsgGUID: kIC0K6JgSbOib901EAFoUg== X-IronPort-AV: E=McAfee;i="6600,9927,11052"; a="20008203" X-IronPort-AV: E=Sophos;i="6.07,222,1708416000"; d="scan'208";a="20008203" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2024 06:08:44 -0700 X-CSE-ConnectionGUID: OYpV9A9RRUa4vVQImhUSjQ== X-CSE-MsgGUID: dKv9YnJiSqC5zgo/pnELCg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,222,1708416000"; d="scan'208";a="24399533" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.245.247.40]) by fmviesa006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2024 06:08:37 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: Bjorn Helgaas , linux-pci@vger.kernel.org, "Maciej W. Rozycki" , linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH v2 2/2] PCI: Small clarification to the intent of LT wait Date: Tue, 23 Apr 2024 16:08:20 +0300 Message-Id: <20240423130820.43824-2-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240423130820.43824-1-ilpo.jarvinen@linux.intel.com> References: <20240423130820.43824-1-ilpo.jarvinen@linux.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-Transfer-Encoding: 8bit Make a small clarification into the comment relating to the LT wait and the purpose of the check that implements the implementation note in PCIe r6.1 sec 7.5.3.7. Suggested-by: Maciej W. Rozycki Signed-off-by: Ilpo Järvinen --- v2: - New patch --- drivers/pci/pci.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 70b8c87055cb..5a25facb3ce7 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -4625,9 +4625,10 @@ int pcie_retrain_link(struct pci_dev *pdev, bool use_lt) /* * Ensure the updated LNKCTL parameters are used during link - * training by checking that there is no ongoing link training to - * avoid LTSSM race as recommended in Implementation Note at the - * end of PCIe r6.0.1 sec 7.5.3.7. + * training by checking that there is no ongoing link training that + * may have started before link parameters were changed, so as to + * avoid LTSSM race as recommended in Implementation Note at the end + * of PCIe r6.1 sec 7.5.3.7. */ rc = pcie_wait_for_link_status(pdev, true, false); if (rc) -- 2.39.2