Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp31207imm; Tue, 19 Jun 2018 15:18:04 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIkk/LgchmSw3jh8If+bbNjALXfRrYC9enN4Qko9g5sIedQzMC0VdgqJ2QisRbyAYwV/A8A X-Received: by 2002:a62:660a:: with SMTP id a10-v6mr19950100pfc.156.1529446684783; Tue, 19 Jun 2018 15:18:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529446684; cv=none; d=google.com; s=arc-20160816; b=icEhKMnSjAwI8gE/22zOiU85rC0+PLBK8ZOWxIn/uLp5gOQSb7Jgra0kvMVGPDSCPu F1BesOp8BMP+JoXCLv3uC3onwSegDO2PvXZ4SZGy1ZA6+EpKFzeYxXXs+KDUYPRe95KZ FpjQgsIGiUN5yeOBYAPGGjBfHK2omPHmdJMHpEAOPtZGBsrEaTk2Pe1TBTcIM0J56qWT bjHqFLUTcfFOUsaQXlWE7R3mr1OH4U5gTW7KpzIL2ZdlH/DT8R/StE8hK+ZBiNGBCvaK QlWjDPDbxukIhdUl5h6aE2xO7dOuuW7TDkZPP1RCCkwqwybvlNMUwb9l55JZdAfBa5Wa T5Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=94yl8F0e4ULjSdQJC+14b1HLq1lujMc/HT7sQwJ3INA=; b=AvEF0zg75h3uoYne5DbVn0WMrpHzmsPwLGnLwdKeWUM826RADeVaeW8bQ6Wq+7CRnr +AuED/aC5o9zGoLx8teT/knxHMhZdBUmtS2Nlhe/ql6SOqwYHoHJ9oXIwSOkb3gpAJmK Wn+A5LeDGYgcPJcRRogPXKR8O9k0FSv34pywa97wjEb/ai6XwdQsWCIyH9Am5ip7SYrb AktxZfdAMzhBL4rdzYwUPJGkp5eYuO9H9E2qP5dVDN8DNAuCSEj2myZ2GotgFxz3BLM9 v2TQA96RxaYkQBY02tzESxdZuKeicCbGvhUK66YjdTVZRuNVzW6vv2V5EFDnA/L+W7RO Dudw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="rmbYsrW/"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h16-v6si678348pfi.84.2018.06.19.15.17.50; Tue, 19 Jun 2018 15:18:04 -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=@kernel.org header.s=default header.b="rmbYsrW/"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965017AbeFSWRB (ORCPT + 99 others); Tue, 19 Jun 2018 18:17:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:41702 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964933AbeFSWQx (ORCPT ); Tue, 19 Jun 2018 18:16:53 -0400 Received: from localhost (unknown [146.7.4.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ABEB820693; Tue, 19 Jun 2018 22:16:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1529446612; bh=xd12WkQNgXWdXbcdmp3hzREWVtxXCLEeQTNQoLqFL/U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rmbYsrW/PvT+YwF7IyEe584Z6AamEup1f489C4XkN5XjuWYEfeV3zobGjTA7KasDI COXtUeLxOBHZTTriudd0N5yHf5PJzBNTic9i17vsMF57fKOoByv3N63faJZHE+OLC8 hilbcsQYHxfIdtBAFeekkidT4sAXzvpe+5kfaLO4= Date: Tue, 19 Jun 2018 17:16:51 -0500 From: Bjorn Helgaas To: Rajat Jain Cc: Bjorn Helgaas , Jonathan Corbet , Philippe Ombredanne , Kate Stewart , Thomas Gleixner , Greg Kroah-Hartman , Frederick Lawler , Oza Pawandeep , Keith Busch , Gabriele Paoloni , 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 Subject: Re: [PATCH v2 0/5] Expose PCIe AER stats via sysfs Message-ID: <20180619221651.GH33049@bhelgaas-glaptop.roam.corp.google.com> References: <20180522222805.80314-1-rajatja@google.com> <20180523175808.28030-1-rajatja@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180523175808.28030-1-rajatja@google.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 23, 2018 at 10:58:03AM -0700, Rajat Jain wrote: > This patchset exposes the AER stats via the sysfs attributes. > > Patchset v2 has minor changes to v1 based on the review comments, > no functional change. > Primarily: > * Fix license header > * Use tabs instead of spaces > * Remove use on unlikely() etc > * Move documentation to Documentation/ABI/ > > Rajat Jain (5): > PCI/AER: Define and allocate aer_stats structure for AER capable > devices > PCI/AER: Add sysfs stats for AER capable devices > PCI/AER: Add sysfs attributes to provide breakdown of AERs > PCI/AER: Add sysfs attributes for rootport cumulative stats > Documentation/ABI: Add details of PCI AER statistics > > .../testing/sysfs-bus-pci-devices-aer_stats | 103 ++++++++++ > Documentation/PCI/pcieaer-howto.txt | 5 + > drivers/pci/pci-sysfs.c | 3 + > drivers/pci/pci.h | 4 +- > drivers/pci/pcie/aer/Makefile | 2 +- > drivers/pci/pcie/aer/aerdrv.h | 15 ++ > drivers/pci/pcie/aer/aerdrv_core.c | 11 + > drivers/pci/pcie/aer/aerdrv_errprint.c | 7 +- > drivers/pci/pcie/aer/aerdrv_stats.c | 192 ++++++++++++++++++ > drivers/pci/probe.c | 1 + > include/linux/pci.h | 3 + > 11 files changed, 342 insertions(+), 4 deletions(-) > create mode 100644 Documentation/ABI/testing/sysfs-bus-pci-devices-aer_stats > create mode 100644 drivers/pci/pcie/aer/aerdrv_stats.c I broke this by putting all the AER code in one file in v4.18-rc1, sorry! Would you mind rebasing these on top of that? Since everything AER-related is now in aer.c, I'd suggest putting the stats code there, too.