Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp202494imm; Thu, 21 Jun 2018 16:49:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ1EmQamFcgKQXv64DioyO2KgivOMqLPbej7x6OXQ7qVePByQ+jatzZe4QfjCQEla8YjJfw X-Received: by 2002:a17:902:9681:: with SMTP id n1-v6mr28188727plp.244.1529624975575; Thu, 21 Jun 2018 16:49:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529624975; cv=none; d=google.com; s=arc-20160816; b=Vno87Z/WngbQjbc7p1el+tLRZvkdNhy1ffYuezwI/5kGe39uul1WLsVQHa7Be0imqQ 0d0rRp5nKLexK5RouAWkG3OdIe8JKFIuSv+IfR8BxzbUjkUwKuiFBgCnIP4hB/UgG2na qtMBrsy9/kECoKFKbKCpgEQTz01VH9M+Iif8sRVwwjnhj5uN7PTiHgN7KkBtlZ9Wo0Yn sCd78YsOEB6Q1Fk+YrGMCoDzvPoyIkgqrzkNeVTOIW9lzL6SNIg2Qvko0xsLAEVqjRmT YMn/EmT0BtT1DHfCMOZqebzTfEjfD0g1j68XjTQOa2se5omSa9bKN1YyIz0ZIUtQMGTA VNBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:message-id:date :mime-version:dkim-signature:arc-authentication-results; bh=y1udrjP1twkh5X8TRWSu0vDRks7gYPJTY6Qaf3t3Lqw=; b=hRtvhwzsV7SlHh2xh/GFSPnpcH6hsOHm6UN3EtNrEE19FaoHdvmkMJW0h8XkoySb48 vCpco1ZiV+pXVxRhkmm87MTTBxNsEwFtpHmDVTKMkv6NNufkkuH7ShOfusqVb4730kHl 4N+VVHjYByKEd6sIxe1vXobbZRfFIQRyYJcKBMKgNuKPV1WrUj+5Q72uTb/AwIO5oW5x K/WvNsQraRM6FQekyojaJvblg2ZcYv1D4mxFvVuhSor5KgyeTeFH4UsAGUMqhD6Ec0Na E7DjS4htzTJ6+6/iZon477T+qco27RKZwjFopoZPyEgAcejsnGAShKv/1ZZgowwFIgmc 5bpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QR6A6ScV; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q14-v6si5756127pfq.307.2018.06.21.16.49.19; Thu, 21 Jun 2018 16:49:35 -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=@google.com header.s=20161025 header.b=QR6A6ScV; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933275AbeFUXsh (ORCPT + 99 others); Thu, 21 Jun 2018 19:48:37 -0400 Received: from mail-oi0-f74.google.com ([209.85.218.74]:42448 "EHLO mail-oi0-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932734AbeFUXse (ORCPT ); Thu, 21 Jun 2018 19:48:34 -0400 Received: by mail-oi0-f74.google.com with SMTP id q129-v6so2772522oic.9 for ; Thu, 21 Jun 2018 16:48:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:date:message-id:subject:from:to:cc; bh=y1udrjP1twkh5X8TRWSu0vDRks7gYPJTY6Qaf3t3Lqw=; b=QR6A6ScV+coQOPPsWkWM2/a5m2IFe/UVe0en/irSHJT/2nkKzCfLanPmfLr+B2JgB6 nslrYb4G7lC1zGWbumkcAi2FBpfR7J2BcZz6ploXmYm+8d3EAQ5AzgJR0swPsK6EqQUN zht5VKXV1S3eqmdpLnFUo9uH0mei7VjtS+I1rb+UpoAezdVKI7wX8AmQfcohNbLaSbsY yXR73PQcZii1KwZgUgEBYByZ/Y+n/T69SVasIWKbvrshar1zJcJJ3n7rpbiM+IcWsPFO cb9GMpU1WYUJduY1vCELgFNHcIems4HbNYarMS5GRRudjAcgLgKPwLgUVW9STmHmXKFE NzxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc; bh=y1udrjP1twkh5X8TRWSu0vDRks7gYPJTY6Qaf3t3Lqw=; b=cyhfRnNGKad3zjGb+kf60zhnAYFpheLcyfZFuP58om7etvFQpTtRA1hdqkC+vbvjjU QuxTsAWZ2GiGYy2+mnfektZJ3B464JYTMjV3GJq5E5om5mledA4rP8TiuMUBA5FmNsyD 71AyOT0VpxFDBE4kv7rw+v+XXazGvmYdlsRgeg8g0jXDQr8Y8MW314R3Se+p1nyefPyM Cs0khsQuu3ngcJWDKCQ2dUZQ/s8hYV3t8e2YZb22mydtfVVpB+mBB8Ar5p/0mh2aCs37 9t8fT+tDu4Ki7WxUkMmRnagZj1uFE+sE4bGCT79IiziZB8VOXZ12tGVy4uyXitd2uv/u CURw== X-Gm-Message-State: APt69E2eS4GRHX9rQCI9p6PO9xDp1FMQy2lWZE5W9QKzZUwg7Ap+++CR DNkQ9IJcVv91M8X2Y45pqbu4d6YkN9h4 MIME-Version: 1.0 X-Received: by 2002:a9d:57c1:: with SMTP id q1-v6mr12237109oti.38.1529624913894; Thu, 21 Jun 2018 16:48:33 -0700 (PDT) Date: Thu, 21 Jun 2018 16:48:25 -0700 Message-Id: <20180621234829.224566-1-rajatja@google.com> X-Mailer: git-send-email 2.18.0.rc2.346.g013aa6912e-goog Subject: [PATCH 0/4] Expose PCIe AER stats via sysfs From: Rajat Jain To: Bjorn Helgaas , Jonathan Corbet , Philippe Ombredanne , Kate Stewart , Thomas Gleixner , Greg Kroah-Hartman , Frederick Lawler , Oza Pawandeep , Keith Busch , Alexandru Gagniuc , Thomas Tai , "Steven Rostedt (VMware)" , linux-pci@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jes Sorensen , Kyle McMartin , rajatxjain@gmail.com, helgaas@kernel.org Cc: Rajat Jain Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a follow up to: https://lkml.org/lkml/2018/5/22/1057 Respinning as a new patchset because the old one has been refactored to include new patches (that were not part of original), and dropping some patches. The major changes are: * Provide breakdown of Fatal / non fatal errors separately * Include the "total" in the same file * do some PCI cleanup before the actual aer_stats stuff * Include documentation in the main patch * Rename variables / attributes to better match the newer reality. Rajat Jain (4): PCI: Move pci_aer_init() and pci_no_aer() declarations to drivers/pci/pci.h PCI/AER: Define and allocate aer_stats structure for AER capable devices PCI/AER: Add sysfs attributes to provide AER stats and breakdown PCI/AER: Add sysfs attributes for rootport cumulative stats .../testing/sysfs-bus-pci-devices-aer_stats | 122 +++++++++++ Documentation/PCI/pcieaer-howto.txt | 5 + drivers/pci/pci-sysfs.c | 3 + drivers/pci/pci.h | 11 + drivers/pci/pcie/aer.c | 198 +++++++++++++++++- drivers/pci/probe.c | 1 + include/linux/pci.h | 5 +- 7 files changed, 337 insertions(+), 8 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-bus-pci-devices-aer_stats -- 2.18.0.rc2.346.g013aa6912e-goog