Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1850578imm; Mon, 3 Sep 2018 11:04:14 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZC3+hmwzlxQlgyS7Uxx0fVA/iPRIrryuBusbF6kEmV8PK3ykjnCIxVoYH//JQDAq+xAt+W X-Received: by 2002:a62:f610:: with SMTP id x16-v6mr30061616pfh.169.1535997854682; Mon, 03 Sep 2018 11:04:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535997854; cv=none; d=google.com; s=arc-20160816; b=D767imvYxqZH7o0ng8ecknGVCopcMDkDv+V+lr+x7XCHzqKPR0rIZ7ppLuD+K2tYSU hErRohtLUSwRKlAK+OwGklNVc+DT9STvXgyDkeMqMQBIqgzIr7SnJW1mB58+p0X5D0Iy aCaYvd5azzrHZVwqSerhwymf5FVJJ9j/toskP+XTYpvWq/iaR1SQ7oet2kS7+H2uPfn/ u71fovzx6FWGpedcKgUcwJkaHjzn3+oN1c/S7N/yRwElGuMlLP4Ga80B+/YjwOVFGTGv 75yw5NN7rneWK8UMsZziQYFDxVovgKdWI991LdOftggs8q89fGO9jVTgWpeYpyKPwJO3 c/rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=NyzqkBvvRFaYY1/t28udcxu1QEwQXtRB+qE2FzRBy5M=; b=HqO7KCgfsiz8H09YJ1sco6CbTZULRxz14NP7RMkXfEaM0v8LVFQQ4wH8E590ipq++R EoiiRt9WmQsRP96tVVl5cB3U90ZZ0vMHgvjC3MF2zUX/j85tUGMRczLAo3j77MB9nOAf AcKdVZPPHYpZrBSe1SSVvE+ufXK08o/MC7Cv6FSQFhtufurOnrxTMVQ2AnoLSmblz2Cf erlBlMONmaRvhEmKGQzipQBDzu2dV45QdsOrtIwQjuDymQaocFDg0yKvVwVL66wEVVc6 76rTwukpwRBxeTbsdwtrNKnpU4KcMAplM3Mmhe1VBFDP08iLEtJrz/gj+kQ5HVcAKqbK bdsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ne5zctDo; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 67-v6si19324003pfc.21.2018.09.03.11.03.58; Mon, 03 Sep 2018 11:04:14 -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=@gmail.com header.s=20161025 header.b=Ne5zctDo; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727468AbeICWYL (ORCPT + 99 others); Mon, 3 Sep 2018 18:24:11 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:40247 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727271AbeICWYL (ORCPT ); Mon, 3 Sep 2018 18:24:11 -0400 Received: by mail-oi0-f68.google.com with SMTP id l202-v6so2248657oig.7; Mon, 03 Sep 2018 11:02:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=NyzqkBvvRFaYY1/t28udcxu1QEwQXtRB+qE2FzRBy5M=; b=Ne5zctDo82Bgg7ySoKR1HfsX4PLT6fzAdIEuz3TfhUWUNJsY+lof2kmW/ELcSipR4U TV7LZgPEQT17gTJ2o3TtDZV8gElnvw/jgPqxbgoUMsjTisxDM1jG1U/MU0f46JY0TzxQ gwFi4zB0zL5BEVU/BJ6W/9tP5ms6QuH7SaG+IMrYj0Tq6gYoLNMGStrIJIZVLWgZWQsS 7rqT1tNd1yGbB7fIfiFDCZStSAGEFzN5MM5oGtk7MVp7MpVaKl1VHC5fPUkR+haZAvEz e703+pQuAiFQxVw0vJtHDUg8LBm8jQ+Xq7FH0c5FGrp9W7JrpfjGVSA1pny1IFDqxcqi +7oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=NyzqkBvvRFaYY1/t28udcxu1QEwQXtRB+qE2FzRBy5M=; b=s5kwOrTzTk1k7Wbs2L5hQJm2dMw4u1hu0tPNIHrMLFPURZk9UYZ7suMSo+XXhC1R44 u+ZfKn0fl0TwZrYNHUvs32VGs63225UbYyNxeJ1HjDawsODU98uPvrrjiNGxNuWwiDyI D3YXzQoLoB4dbz+i6D3K0kjrOyGkjCgugFgIsHQ3ebMqANTctFqC/KmqKrpr8NhHUiZ5 fdDckgpMvsJ1S0aUMfY9lNChypmI0Vi2AmALLIA1/WcTz/smJEn9JQ3+vwQD2EI8xuKP In18TdsDs6e7pZwmLy41qUJvseggRlyNJiGBzyGDA8EnFLmd6PKpT/JwcIvUkgzM3Hm3 PSQA== X-Gm-Message-State: APzg51BKFtIQQ2EhlRgfHvLLzyCJwiLy9TvwlWmzsxqEXa+uuqqmoJD3 nNevo3GvXVVYeRwbPv+xMt0ntPokGMM= X-Received: by 2002:aca:b985:: with SMTP id j127-v6mr19739255oif.257.1535997773041; Mon, 03 Sep 2018 11:02:53 -0700 (PDT) Received: from nuclearis2-1.lan (c-98-195-139-126.hsd1.tx.comcast.net. [98.195.139.126]) by smtp.gmail.com with ESMTPSA id q124-v6sm15785737oif.8.2018.09.03.11.02.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Sep 2018 11:02:52 -0700 (PDT) From: Alexandru Gagniuc To: linux-pci@vger.kernel.org, bhelgaas@google.com Cc: keith.busch@intel.com, alex_gagniuc@dellteam.com, austin_bolen@dell.com, shyam_iyer@dell.com, Alexandru Gagniuc , Ariel Elior , everest-linux-l2@cavium.com, "David S. Miller" , Michael Chan , Ganesh Goudar , Jeff Kirsher , Tariq Toukan , Saeed Mahameed , Leon Romanovsky , Jakub Kicinski , Dirk van der Merwe , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-rdma@vger.kernel.org, oss-drivers@netronome.com Subject: [PATCH 0/9] Export PCIe bandwidth via sysfs Date: Mon, 3 Sep 2018 13:02:27 -0500 Message-Id: <20180903180242.14504-1-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a follow-on series to Commit 2d1ce5ec2117 ("PCI: Check for PCIe Link downtraining") The remaining issues was that some pcie drivers print link status directly, sometimes resulting in duplicate system log messages with degraded links. From my understanding, the maintainers of these drivers are fine with removing the duplicate prints as long as the bandwidth information is readily available. sysfs seemed to be the consensus. Example: $ cat /sys/bus/pci/devices/0000:b1:00.0/available_bandwidth 7.876 Gb/s Alexandru Gagniuc (9): PCI: sysfs: Export available PCIe bandwidth bnx2x: Do not call pcie_print_link_status() bnxt_en: Do not call pcie_print_link_status() cxgb4: Do not call pcie_print_link_status() fm10k: Do not call pcie_print_link_status() ixgbe: Do not call pcie_print_link_status() net/mlx4: Do not call pcie_print_link_status() net/mlx5: Do not call pcie_print_link_status() nfp: Do not call pcie_print_link_status() .../net/ethernet/broadcom/bnx2x/bnx2x_main.c | 1 - drivers/net/ethernet/broadcom/bnxt/bnxt.c | 1 - .../net/ethernet/chelsio/cxgb4/cxgb4_main.c | 3 --- drivers/net/ethernet/intel/fm10k/fm10k_pci.c | 3 --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 26 ------------------- drivers/net/ethernet/mellanox/mlx4/main.c | 7 ----- .../net/ethernet/mellanox/mlx5/core/main.c | 4 --- .../netronome/nfp/nfpcore/nfp6000_pcie.c | 1 - drivers/pci/pci-sysfs.c | 13 ++++++++++ 9 files changed, 13 insertions(+), 46 deletions(-) -- 2.17.1