Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp34670imm; Tue, 19 Jun 2018 15:22:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJj9i9YNAnG76llIll3xsCuexCIIQGms9uoqP+ZWK7RixTIzRNZXCeTHcGflR5ndFDZRT15 X-Received: by 2002:a65:40c3:: with SMTP id u3-v6mr16484581pgp.356.1529446964519; Tue, 19 Jun 2018 15:22:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529446964; cv=none; d=google.com; s=arc-20160816; b=Q3O6lRPRhck7ZAZ/TKIiEuFQXxYEuP7N1b0uIpgjsmrvYcqO6ktlKB5Bc+Q/GkJ5w+ Laq6dL+6TMdOqRQznmomiOoghOcKSxTUAhpXL/o+U9H28Re32o1mNMB/2Tw0kGENvL26 7lbwrXzU79H3BUeW/nxdd+fXg9qWOhHeHd+JckhhF+rSvQMbP5Rg0ypPVvujJ1Qlx1Fz 3nyCvpvYZNyXe1wnHxZsEIumLAEpb1INaebNGpwrsxq6A++IbX6O9/C25migGsoCI+A9 MHXq155yV7NhHONpMUiDgAOJ4vufa3Ye7z0IsBwUlQKoddVU0dlBEgs7HZh8OfaD9iMa SDGA== 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:dkim-signature :arc-authentication-results; bh=f/Wcmh59EFi9Tk5Yq+sGuzyYaBJptFCOOLX9okkvuFA=; b=UqKe2CcRta7ERtck+HVh711v00mBLRZFSB2slhkG9HKZt4K0VRlGA1Ppu+V2SADTAl cpkKFJEiIN2ZeImtrErO3GFSiG5QcAF/CQzNlCGyG1iUxgE4coPEyiERm6ntOHtAbw8h OMuOzDsEmLO3R+qn82eJ5xGutvydx7YQ+fSTr6IBX5XMbgmueM3M6fLCbDphiF28dEpf ialHjZodRXRq7jxwZ7MUIVst99MVY0dleJdRoIs3k9U0Y5eL4w7y8i5KbuWQova5OmZF sxzrsF0EA+WNZFDOqfZaKZIOmZlV5rPR3Us8lP2jVvP6N7UeljfliShIjljZvyDVBwAH woCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SrjE6eoP; 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 b25-v6si651850pgn.259.2018.06.19.15.22.30; Tue, 19 Jun 2018 15:22:44 -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=SrjE6eoP; 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 S1751032AbeFSWUe (ORCPT + 99 others); Tue, 19 Jun 2018 18:20:34 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:36866 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750726AbeFSWUb (ORCPT ); Tue, 19 Jun 2018 18:20:31 -0400 Received: by mail-ot0-f196.google.com with SMTP id 101-v6so1505890oth.4; Tue, 19 Jun 2018 15:20:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=f/Wcmh59EFi9Tk5Yq+sGuzyYaBJptFCOOLX9okkvuFA=; b=SrjE6eoPUbkDTlCees/3YIDfz7L4+boo6Q5XcVecJBZGpS9UjVcTuhzPZmeEAU6tzo /GKiw9QFc7O8qNJNQa5f6av79i/9DVYyl7fyHRI2aWB4fTPFAM7YbBbVfoyl6LFZr+EU xxcTPeDtIKRv641z6UTUGVRr5rE1WqWGtuoPNfrYcOdiLjpioeyLnDmTU3rXoN2svoPN yGpVXHUJbt2H4L03ff9Sw1asK0/LFiLYDyykAFiOUuvgXLA/dSP4eAVFJOAkTod8i7YB 2q70Hdbb+On6zIzKDrZEjuZORVV5MAZZvezhXuz4ixv743hC5HS/eM5N1yjLTRSS1nHK 56YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=f/Wcmh59EFi9Tk5Yq+sGuzyYaBJptFCOOLX9okkvuFA=; b=tjc43Ei3MSqlUVxmqQe7StITCX9huqjmWxbbDGoQUpoWtzXXrOjnsP/5H/fBdxd13t b48MtCE4GRnIG2JXPvjdsaHycML2oxjH5Cmqnjl+a4r87VBNNIaf6vZOTjejNRwNvpDx ss3wnPZ7qlEPGaMlKI/VafIBwSeKGnj6Tj5sv5Tpxd1hEdoT1iWKqLia8S7CQl4mdeIL uBKTS3u4HALiY/FOTHAAvAowvP59wMJUdw4YAzWrtKgHnEd0IA9JkILhlsYXeIkXnTRy kYvrWZgLL2UymKK75DNDIQngpa0dPMXg6bHBq3AmHA4MWmsYOaE+VDvUZFiI4HzJ04OH rlvg== X-Gm-Message-State: APt69E2FXpqUHgwfVvV2nqPxEHM2cshLBqBU51eUyafhOXosILl6GD2w bfDL5DRC5kwC4Jh0tCy6PD0= X-Received: by 2002:a9d:5550:: with SMTP id h16-v6mr10667587oti.24.1529446830372; Tue, 19 Jun 2018 15:20:30 -0700 (PDT) Received: from nuclearis2_1.gtech (c-98-201-114-184.hsd1.tx.comcast.net. [98.201.114.184]) by smtp.gmail.com with ESMTPSA id u14-v6sm450042otf.26.2018.06.19.15.20.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jun 2018 15:20:29 -0700 (PDT) Subject: Re: [PATCH v2 0/5] Expose PCIe AER stats via sysfs To: Bjorn Helgaas , Rajat Jain Cc: Bjorn Helgaas , Jonathan Corbet , Philippe Ombredanne , Kate Stewart , Thomas Gleixner , Greg Kroah-Hartman , Frederick Lawler , Oza Pawandeep , Keith Busch , Gabriele Paoloni , 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 References: <20180522222805.80314-1-rajatja@google.com> <20180523175808.28030-1-rajatja@google.com> <20180619221651.GH33049@bhelgaas-glaptop.roam.corp.google.com> From: "Alex G." Message-ID: Date: Tue, 19 Jun 2018 17:20:28 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180619221651.GH33049@bhelgaas-glaptop.roam.corp.google.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 06/19/2018 05:16 PM, Bjorn Helgaas wrote: > 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, I see the next phoronix headline: "Linux maintainer breaks things and watches in amusement as contributors rush to the fix" ;) Alex > 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. >