Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp736288imm; Thu, 31 May 2018 08:31:45 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKGRekqtz2PXT8yYtPqlyjFw+YytP7vi2uDC0beIWeObSg7V1dghbXSuHtEIrlsl1VDLz4v X-Received: by 2002:a62:449c:: with SMTP id m28-v6mr7260464pfi.145.1527780704953; Thu, 31 May 2018 08:31:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527780704; cv=none; d=google.com; s=arc-20160816; b=hiZOfNJmwxyXHOP8G1m4w6MPUAxqMikrpG5PGq2YCvD2GwMmFMU+DDj5uaRGbQHrwo 75n9+RATUadHbZXBjdnQJBLMZRHtdaOspnufG1fpHeOURiCDybAmKeWt9uEBwYw5sWe2 +aJqkfbKI1YkCksNgH493ubdLab0J0rpl10ldETKrvG9U5Htb6dyoeSfBSU3UVdgdEnO IEqOVrBFT5BaLpN98Lq5dlR3ffVlzBW4RENPotxW4LLd4ENOkhFl1tJnKWCbIp+06IYN RQjjdBLriiYYywGxqpJegDiRVZdXyYfAinncdr7gjo+KbkXzKETtlbOqH5YcAm42pc1M pgoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=YUb/sWrwbralAoqAzugHqkVnfTuMXOGrH5n9HKNjsDU=; b=JI2ACRG1dok1z1dtaZUVjmpcav30yE0URryjnNMtFT1NMaBvYCtkR/VrpuoSOiwhFS MT5ZjOIu/auCnbV4B+qx5+1JoloH4W+70nGOaZV1csBhKfbv8p2QF70jdLrPQhlJAd0B MRRJTUEsP/NcImZ7ayuJ28eCZOKaSeoBPOL/i3lPqleyQNbNjql7/sOyGg5Jp2N57F67 b3HBlxzMckigtfTo1slal0HtDVXFccC54curpyt03AKJam0O0lCVHAinMpVmb4ppna38 ZVStVuBgTTgUMBQRocwn9Xb/QkIMktVGGurzCINf4UhJY5TzY2S8Wp45Jnd1wJU/B9Sl XHDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=nFq2yZXE; dkim=pass header.i=@codeaurora.org header.s=default header.b=nFq2yZXE; 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 a19-v6si3783283pfi.353.2018.05.31.08.31.30; Thu, 31 May 2018 08:31:44 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=nFq2yZXE; dkim=pass header.i=@codeaurora.org header.s=default header.b=nFq2yZXE; 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 S932719AbeEaPab (ORCPT + 99 others); Thu, 31 May 2018 11:30:31 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:37118 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932704AbeEaPa2 (ORCPT ); Thu, 31 May 2018 11:30:28 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id A54F1606FA; Thu, 31 May 2018 15:30:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527780627; bh=8UX59nYVNC1WzbjomBU6Z+0YVitWLYPqFEXkceUh8zk=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=nFq2yZXE8JFt5BIUzxQFmjnYTq9q+t8m41UI9bwAxLk/k2yvAzoFPYK3mxjNjx92p 1UtpFE5PrGhiX9PFGNcgJNoKJWdwIGvHSnzKl0qLgBaXrUR+CJMQSxX/vhRyZx2vM3 oUJyu+u5GTuUcJ53dk/T83ngax2FBe+PdAxsKHoQ= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.235.228.150] (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 4999660261; Thu, 31 May 2018 15:30:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527780627; bh=8UX59nYVNC1WzbjomBU6Z+0YVitWLYPqFEXkceUh8zk=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=nFq2yZXE8JFt5BIUzxQFmjnYTq9q+t8m41UI9bwAxLk/k2yvAzoFPYK3mxjNjx92p 1UtpFE5PrGhiX9PFGNcgJNoKJWdwIGvHSnzKl0qLgBaXrUR+CJMQSxX/vhRyZx2vM3 oUJyu+u5GTuUcJ53dk/T83ngax2FBe+PdAxsKHoQ= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 4999660261 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=okaya@codeaurora.org Subject: Re: [PATCH] PCI: Check for PCIe downtraining conditions To: Alexandru Gagniuc , bhelgaas@google.com Cc: 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 References: <20180531150535.9684-1-mr.nuke.me@gmail.com> From: Sinan Kaya Message-ID: Date: Thu, 31 May 2018 11:30:24 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180531150535.9684-1-mr.nuke.me@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/31/2018 11:05 AM, Alexandru Gagniuc wrote: > + if (dev_cur_speed < max_link_speed) > + pci_warn(dev, "PCIe downtrain: link speed is %s (%s capable)", > + pcie_bus_speed_name(dev_cur_speed), > + pcie_bus_speed_name(max_link_speed)); > + Also this isn't quite correct. Target link speed is what the device tries to train. A device can try to train to much lower speed than the maximum on purpose. It makes sense to print this if the speed that platform wants via target link speed is different from what is actually established though. -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.