Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1861073imm; Sat, 2 Jun 2018 10:44:14 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLcJR8smHS3GzPCCC4OC7D8k5iaXC+RLm1D4LhrD6UrS2qjxtVcp5JUWtXCRPoViA8lnGyO X-Received: by 2002:a17:902:205:: with SMTP id 5-v6mr15304881plc.301.1527961453950; Sat, 02 Jun 2018 10:44:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527961453; cv=none; d=google.com; s=arc-20160816; b=vwhszs70Qr0PFdOa9x69vxqGre4yg38KHBnYGXLw1GgWjHswX46KlK6AAqOwce85ed TW95/1l0hHxh+EY0cFLPqfW7f9EWPmrjFkIlq9CmeQ0wk1ePcD69ZXnZcTv7MNVkEwjT QWSUnuvemUYGh8IzpBiuIiig7uPrBi8zA9aMfixpduuOEvfHVK6WpxsP8Z0cBtTQ6FOb qNvupAZeE5Idt5zvRj7KY2gBNZEPhmeUiIlVahyHcZyzRC/+wlUGdZzBvfw0y9m5pu9G znVB6OjTtTlIjxFlXuZI/3g+5iSkB8KfrEbE+oxdCrV/xXvVDGHu8uKoGatbErjHLhKx RZmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=P8jXlgapa8MR5tHcu+IGg4QjXVuf0Cr3K3faA0dXLhM=; b=X6FuKnR0/aLREhgyXpU99yflADQYtAh93W+Jfji0wclOX2KupCKDyXvKVpEDoGPm+D sOYV7pr6sdKpq1bTC+MFeeUCm4y46u8VvCp4Q8BDT6bT5BJnbssO3to7sQr5AiViQ2K6 5Q2VzVbVS5BH36bbtFtRzK8u6qkrKKDUvAqCY3NbpWj/xMkEd9b5DUdhIrdpPC6+ki5V bFmhpjwnsNls4P8j61lP879mkSIoXOTividgQ0Co9ZBvhixodOkW84CLW62Iq3boPOez 62nw1dpgwcNAQE5v0yoSU3i+yaL2iXClK29/p2wlyz9qqgkd/YNkE/B6N5iCYiwsCuqk Ta7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5-v6si15978664pln.567.2018.06.02.10.43.44; Sat, 02 Jun 2018 10:44:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751503AbeFBRnD (ORCPT + 99 others); Sat, 2 Jun 2018 13:43:03 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:33022 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750831AbeFBRnC (ORCPT ); Sat, 2 Jun 2018 13:43:02 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 05251805B3; Sat, 2 Jun 2018 19:42:59 +0200 (CEST) Date: Sat, 2 Jun 2018 19:42:59 +0200 From: Pavel Machek To: Alexandru Gagniuc Cc: bhelgaas@google.com, alex_gagniuc@dellteam.com, austin_bolen@dell.com, shyam_iyer@dell.com, keith.busch@intel.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI: Check for PCIe downtraining conditions Message-ID: <20180602174259.GA14870@amd> References: <20180531150535.9684-1-mr.nuke.me@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline In-Reply-To: <20180531150535.9684-1-mr.nuke.me@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2018-05-31 10:05:33, Alexandru Gagniuc wrote: > PCIe downtraining happens when both the device and PCIe port are > capable of a larger bus width or higher speed than negotiated. > Downtraining might be indicative of other problems in the system, and > identifying this from userspace is neither intuitive, nor straigh > forward. > Instead, check for such conditions on device probe, and print an > appropriate message. >=20 > + if (dev_cur_width < max_link_width) { > + /* Lanes might not be routed, so use info instead of warn. */ > + pci_info(dev, "PCIe downtrain: Port and device capable of x%d, but lin= k running at x%d", > + max_link_width, dev_cur_width); > + } Would "warn" be right loglevel? Pavel =09 --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --h31gzZEtNLTqOjlF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlsS1yMACgkQMOfwapXb+vLn9wCeLrJpI37mN9luuXqrNZ6OhyAH nz4AoLLXIXxQqAtoiW4dNmxIXCI70hEi =sEfL -----END PGP SIGNATURE----- --h31gzZEtNLTqOjlF--