From patchwork Mon Sep 9 23:14:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 273722 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 300122C0117 for ; Tue, 10 Sep 2013 09:14:18 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755700Ab3IIXOR (ORCPT ); Mon, 9 Sep 2013 19:14:17 -0400 Received: from mail-ye0-f171.google.com ([209.85.213.171]:63969 "EHLO mail-ye0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755612Ab3IIXOR (ORCPT ); Mon, 9 Sep 2013 19:14:17 -0400 Received: by mail-ye0-f171.google.com with SMTP id q3so2204204yen.2 for ; Mon, 09 Sep 2013 16:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:to:from:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=wgfCbxrAYQVbEHUIZwqQtwlvKLX6QIEdaTSqEPqBbFE=; b=c1qOXtshfIcpox/TfCsyyEUh6LIcuc1u2Oz3Kp9Rx6yo9uXySbere8HiIZcusV1eJM PdTzSKFW1h7aNH2wtieTetY6kp4iQupCAqfY1W8HE9DuTp5uKRaT8UsB5kyx1PIo8URJ CX2dLOfxljP2g3dS6+WtXv8WjQ/1srySorJPTVtK59AgT1Py0YxEXtwPpol7aUQk93ko QBqHetWb+d6/0CzfmF09J/LsQKJfan/C2r5yXbGvmI60kaCPl7apU0VqfNRwokG+2NUo dot6nVTOepSk6+JZZ1UeBuxl4q7Ow2o7UCn9jR3+r5D0skIT2Qt1prMPaCq+6q0MauVq IyWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:from:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding; bh=wgfCbxrAYQVbEHUIZwqQtwlvKLX6QIEdaTSqEPqBbFE=; b=Q3xui+bMTyOP/G4v+JDFafkE1LAw7xLJLnUUf77Xkp3AJ1Mpx2y501n9s+3zKXsOu6 QgjTYaYfYK5fLa11h8Pl63A8Ycx+zYiSFSYRDxBg3JSEyZ+Zew62fT7MQRYRajyzXBwn gYk4pGIVBitlAM0At/mTz9zMkYIup+Eaabsr79maRTn4iSu6Mt7/sHpmrmt3NooqMM6P KSyXcCZQNMliYlbEDrnwAFSL5s0h3mmCOhDSblr7WeYQbKn4628ns+i2Vu3guZgWHZyy cj4sSDZsOTuEKYDaawaJxwTcVSg4JT7MsKrAQqMgCRbkZSMx3HjDFMA9Q6hS8a6ZrhEb kJww== X-Gm-Message-State: ALoCoQm1RWfJDTHtiNydOGtUunbK8NYxcvQTtyx5Cf+4xyTJSzuX5zyHpw/FlrMlopEWVrThQ3HjELmpb9i+A+NOikuQZmqtorxg4ZqQemYtnvvtvylmtO7RJBMW5IWLNsEaZ2v+6c5LaZsuvu8qJjrrzRfPGgkuvy0+vwNRbIW3amBBsLZ0WOSeVfV1PfLBFWfw37ekxohtqpv8b8QjejpVYUuASUpqHg== X-Received: by 10.236.121.144 with SMTP id r16mr3183181yhh.64.1378768456537; Mon, 09 Sep 2013 16:14:16 -0700 (PDT) Received: from localhost ([172.16.51.73]) by mx.google.com with ESMTPSA id v96sm20734850yhp.3.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 09 Sep 2013 16:14:16 -0700 (PDT) Subject: [PATCH 5/7] lspci: Decode PCIe LnkCtl "Read Completion Boundary" for PCIe-to-PCI bridges To: Martin Mares From: Bjorn Helgaas Cc: linux-pci@vger.kernel.org Date: Mon, 09 Sep 2013 17:14:14 -0600 Message-ID: <20130909231414.30095.72172.stgit@bhelgaas-glaptop> In-Reply-To: <20130909231345.30095.61638.stgit@bhelgaas-glaptop> References: <20130909231345.30095.61638.stgit@bhelgaas-glaptop> User-Agent: StGit/0.16 MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org The PCIe spec (r3.0, Table 7-16) says the Read Completion Boundary is valid for Root Ports, Endpoints, and Bridges. I only added decoding for PCIe-to- PCI/PCI-X bridges because the RCB of a Bridge indicates the RCB of the upstream Root Port, so I don't think it makes sense for PCI-to-PCIe bridges. Signed-off-by: Bjorn Helgaas --- ls-caps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/ls-caps.c b/ls-caps.c index de0d79e..3b554fe 100644 --- a/ls-caps.c +++ b/ls-caps.c @@ -774,7 +774,7 @@ static void cap_express_link(struct device *d, int where, int type) w = get_conf_word(d, where + PCI_EXP_LNKCTL); printf("\t\tLnkCtl:\tASPM %s;", aspm_enabled(w & PCI_EXP_LNKCTL_ASPM)); if ((type == PCI_EXP_TYPE_ROOT_PORT) || (type == PCI_EXP_TYPE_ENDPOINT) || - (type == PCI_EXP_TYPE_LEG_END)) + (type == PCI_EXP_TYPE_LEG_END) || (type == PCI_EXP_TYPE_PCI_BRIDGE)) printf(" RCB %d bytes", w & PCI_EXP_LNKCTL_RCB ? 128 : 64); printf(" Disabled%c Retrain%c CommClk%c\n\t\t\tExtSynch%c ClockPM%c AutWidDis%c BWInt%c AutBWInt%c\n", FLAG(w, PCI_EXP_LNKCTL_DISABLE),