Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp758318imm; Thu, 31 May 2018 08:54:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKgdlTX2jQ4uTqAm7j/qn1qToBehVsfapZP7mo4Gk7AD0GnMNY4rL9YdvwBevqjGmRHRFSS X-Received: by 2002:a17:902:a716:: with SMTP id w22-v6mr7320787plq.215.1527782099601; Thu, 31 May 2018 08:54:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527782099; cv=none; d=google.com; s=arc-20160816; b=y6Wu6HzTXvVlDrIG39ggvDEOZ9AZowEcHUVNv2t+No9ufSDi5NMveEk9+YP7eyFrOi D2WpSIdgDKNmJLgcPEkG9YrbHZe9uOcn1NBDFqirYpew89YCMvgrgcmwGEJ1XGFLmIeW H6kZNfDMHtSZUDLtr93BDDR9NhpHslnscbRdJ9DWM7w12IMUxMavRgWbCvqaUrh8brFp VyL9uOSXafzWknH3pCuEdOZdCmQaiVrCu5SHx9RGUiBZlbkH41sCsXnZa9vc0VcgeN7X 4XdGnOarlDawBXilNcJ1N2rkpk6ia0bkbCj6QAcVAPrI1NGrmAkGgx7NIscHvDPlQaxs Roqw== 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=c520psCW+ieV0pZGrV6osXOn44Qh/At8w+R8l8H2zbQ=; b=veOh3PeTLr5zbhBMPd155IlUQospZZVMVKE6hNuGF9N1ucHlV6L0eK4oQOIOYeKsmT NMndVoslnQL6rk+hBCPEzvp5oFO8Sj7mRxpuEVZshhOVFwjGDvXbvuMqVO+rKM7Qj99F RAZoaTF4DV31UFjdDVTeIw4I9XUvfBj8wARQL1TFxE24Tm3LRC06vR3Se8I5vTkYI6Td pxebNtFpzGvWlwxb1UEQCNSEw/4gTaFu+zcdYNV2Oz6UEQUqcpLerN5yPAWTSXnEdNOp N5Cx9Hqy0HMZrIB6pzt9qyuqPxi7g9SoRr/x/27UgHPYyoK9JJTQw/HGbX+NxHZHwse/ 5DXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=hJpHqQUR; dkim=pass header.i=@codeaurora.org header.s=default header.b=hJpHqQUR; 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 bd8-v6si35288691plb.559.2018.05.31.08.54.45; Thu, 31 May 2018 08:54:59 -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=hJpHqQUR; dkim=pass header.i=@codeaurora.org header.s=default header.b=hJpHqQUR; 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 S1755525AbeEaPyW (ORCPT + 99 others); Thu, 31 May 2018 11:54:22 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:48342 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755417AbeEaPyV (ORCPT ); Thu, 31 May 2018 11:54:21 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id A9CBC60261; Thu, 31 May 2018 15:54:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527782060; bh=0hFINTRcxngfbA497F7l1M3zXmewT5VFYI1FF+YfV6g=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=hJpHqQUR/2docUZlhD4Jq8K6AVR9JTmb5qTf5gpGSWjo8+jIZMfg272/C1hUv5ZW9 BzGTGsaw2XrknVLs6BbdbFTlLxyhLrMJK52NFVOy33nIJMtlyI+d6kaHyyV5r9fBK2 noISrgQz5Nzd7hEGSPhbta8O62qA+3xW4nM500RI= 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 34DEB60261; Thu, 31 May 2018 15:54:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527782060; bh=0hFINTRcxngfbA497F7l1M3zXmewT5VFYI1FF+YfV6g=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=hJpHqQUR/2docUZlhD4Jq8K6AVR9JTmb5qTf5gpGSWjo8+jIZMfg272/C1hUv5ZW9 BzGTGsaw2XrknVLs6BbdbFTlLxyhLrMJK52NFVOy33nIJMtlyI+d6kaHyyV5r9fBK2 noISrgQz5Nzd7hEGSPhbta8O62qA+3xW4nM500RI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 34DEB60261 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: "Alex G." , Alex_Gagniuc@Dellteam.com, bhelgaas@google.com Cc: 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> <28004506-24f0-6d10-2d1e-074e0483d2f9@codeaurora.org> <4e0611c872054e768daa96b302651db3@ausx13mps321.AMER.DELL.COM> <3b8a895b-3080-7ddb-cbfd-5aa972e9bf65@gmail.com> From: Sinan Kaya Message-ID: <35563ce3-e235-096c-4b9b-5f3664d67d0f@codeaurora.org> Date: Thu, 31 May 2018 11:54:18 -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: <3b8a895b-3080-7ddb-cbfd-5aa972e9bf65@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:46 AM, Alex G. wrote: >> https://lkml.org/lkml/2018/3/30/553 > Oh, pcie_get_speed_cap()/pcie_get_width_cap() seems to handle the > capability. Not seeing one for status and speed name. > >> are you working on linux-next? > v4.17-rc7 > I think everything you need is in the series. I don't know which linux tree this landed or if it landed. Probably, it is shipping for 4.18. Need some help from Bjorn where to locate these. Fri, 30 Mar 2018 16:04:40 -0500 Bjorn Helgaas (6): bnx2x: Report PCIe link properties with pcie_print_link_status() bnxt_en: Report PCIe link properties with pcie_print_link_status() cxgb4: Report PCIe link properties with pcie_print_link_status() fm10k: Report PCIe link properties with pcie_print_link_status() ixgbe: Report PCIe link properties with pcie_print_link_status() PCI: Remove unused pcie_get_minimum_link() Tal Gilboa (8): PCI: Add pcie_get_speed_cap() to find max supported link speed PCI: Add pcie_get_width_cap() to find max supported link width PCI: Add pcie_bandwidth_capable() to compute max supported link bandwidth PCI: Add pcie_bandwidth_available() to compute bandwidth available to device PCI: Add pcie_print_link_status() to log link speed and whether it's limited -- 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.