Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp132888imm; Tue, 22 May 2018 15:28:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrJni8gj8j0SrHw3w9z7KuLoQWJXSJquCFfXJxjjqzC8CqSfqcm3Yqb/jJoBwBY5JwJI3Bn X-Received: by 2002:a63:b007:: with SMTP id h7-v6mr244200pgf.448.1527028138732; Tue, 22 May 2018 15:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527028138; cv=none; d=google.com; s=arc-20160816; b=LM8++OprCqVI2TZBPhqRTTkAUFoLacOrn66vZnT5Cx1se9yqGCUXdSexdimWutD4Yr 5TfbANHhh3fREMh2q2EvbnL1oDJ59xc42IK99XrLFW9lgpKXkNvHF0BuPVC4axODyY65 7luouePhNVvDAtcoHRAqg9DmufCDPlAzbk8/U377PP0GdXYQLSo3L7E+4wPyLN6YNh4s JB8HENDSsaQh8UDzqCV3xPqEkNOB3dIvhoH/IVtuKlfiTU27YDyE78xaZf5Ou3eBTsi4 QRh7x1UgwT3fOAlpaudh5H8LlWY5v3qmwcOq9tR5KniXXyhHuT1dL9EcfRCW22zAJ13c 3n1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=z7VkBQQlYBnvGN1Gtxd8V7KUxPUVslFvPtw1dHurOCM=; b=PJ+S6yIje8Iq8VTFkew6K8SRbVyRg8eM2qezn4OAsF4rWYrp4n8vocb7kLtdE1DQ0Z OwvdvBqi2DCGypz11EHtpWw+aUbO94FJfTOqM2UuxsYmML+y/5WxVWd6XOmfolPvL9LB LzdHtaELahnPW/4CsXJ6MCkqAyykNQ5Tt0rMyc2jZ20aA/hZ+eV0XbMoKoAiCL19sHOP 2SulWPQAvJkYSKMi5r1Cq7M5StETqWydb6Co7+fAgz61qYx2MlWPi8anyk/3fF+/p2Q2 CYQ7U9aWQfCCm/5k3L67O+V6XRadH0sG6z6CtQCC9m2FkNo0BwbrEPPMiDGcYj1XwWfF BtVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Im6X19go; 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 c32-v6si11699019plj.177.2018.05.22.15.28.44; Tue, 22 May 2018 15:28:58 -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=Im6X19go; 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 S1753429AbeEVW2d (ORCPT + 99 others); Tue, 22 May 2018 18:28:33 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:34199 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753406AbeEVW2a (ORCPT ); Tue, 22 May 2018 18:28:30 -0400 Received: by mail-pl0-f65.google.com with SMTP id ay10-v6so11742230plb.1 for ; Tue, 22 May 2018 15:28:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=z7VkBQQlYBnvGN1Gtxd8V7KUxPUVslFvPtw1dHurOCM=; b=Im6X19goSnAIwczCEWkfWe6g8yWklA+xrSn4mIPx/5zWGgTVZnUhPDfHbOrT+Q9g0A tA13+JiEdXujiHl22unVZj8UgBrmP97cxm9xbrkHdxvXV02MzAnrpFGRQzHsftIZA53p n3V7uyh/8cKWau8KurcGuMmtipvgpA6sYLpPSVVlA8kxIaiXS0FQbxSfL/o43eYoHJo3 quq+ruKCBE9Iabt/+1mL3wl/ag25aR/osN031hbhVDXN2PbHKUP7ZvbzOuvex3oXECKI 2/r/I0lMlT5GHR/PSeHRtQrK6oDI/V7EYzGVKleOz/Arp3atGHio8B1OwF+lBZAn1ajh gF0w== 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:in-reply-to :references; bh=z7VkBQQlYBnvGN1Gtxd8V7KUxPUVslFvPtw1dHurOCM=; b=n7yIgUo4IvwokPa7Kd6f//xkAg9CfV+sCrg4RtGBn3sbXcI17uJCdBCIF6RHXv5+b8 Od5IFRKwXso11OEQnhjWIkfkFGisvOZAnO0JzNUI9ljpOzNEQu4vw691dYtfQQXJ6Yz1 4aAfhX183v3sBVuoaXbHP1nsn2miFzwK0ILXjfmDpEOtUsj1kwBniDDQQVHNLnIoVI6a RaEfNIDejOsWZKZYLlyEMmEtkIpCZj8PGCH1dqUyJAC1hWq21pzAmaS7FhZbqcwivDdf 1/wpDul9yiGAK4ecYR+5I06b3CY0nlEeQsVsQSObl+oR8sU+ddfqtMH3skP0UQV0kJJF mjmg== X-Gm-Message-State: ALKqPwewftx+//48TbeQtbZSgUbOzS2dUcF0Wg7Os5kNWIAlgW/4PRZB OPapz1TrPjYcWuVW2kb/qxD3zA== X-Received: by 2002:a17:902:3c5:: with SMTP id d63-v6mr291803pld.163.1527028109443; Tue, 22 May 2018 15:28:29 -0700 (PDT) Received: from rajat.mtv.corp.google.com ([2620:0:1000:1501:dc81:9a9e:fdee:decf]) by smtp.gmail.com with ESMTPSA id b72-v6sm34327852pfm.69.2018.05.22.15.28.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 15:28:28 -0700 (PDT) From: Rajat Jain To: Bjorn Helgaas , Jonathan Corbet , Philippe Ombredanne , Kate Stewart , Thomas Gleixner , Greg Kroah-Hartman , Rajat Jain , 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 Cc: rajatxjain@gmail.com Subject: [PATCH 5/5] Documentation/PCI: Add details of PCI AER statistics Date: Tue, 22 May 2018 15:28:05 -0700 Message-Id: <20180522222805.80314-6-rajatja@google.com> X-Mailer: git-send-email 2.17.0.441.gb46fe60e1d-goog In-Reply-To: <20180522222805.80314-1-rajatja@google.com> References: <20180522222805.80314-1-rajatja@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the PCI AER statistics details to Documentation/PCI/pcieaer-howto.txt Signed-off-by: Rajat Jain --- Documentation/PCI/pcieaer-howto.txt | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/Documentation/PCI/pcieaer-howto.txt b/Documentation/PCI/pcieaer-howto.txt index acd0dddd6bb8..86ee9f9ff5e1 100644 --- a/Documentation/PCI/pcieaer-howto.txt +++ b/Documentation/PCI/pcieaer-howto.txt @@ -73,6 +73,41 @@ In the example, 'Requester ID' means the ID of the device who sends the error message to root port. Pls. refer to pci express specs for other fields. +2.4 AER statistics + +When AER messages are captured, the statistics are exposed via the following +sysfs attributes under the "aer_stats" folder for the device: + +2.4.1 Device sysfs Attributes + +These attributes show up under all the devices that are AER capable. These +indicate the errors "as seen by the device". Note that this may mean that if +an end point is causing problems, the AER counters may increment at its link +partner (e.g. root port) because the errors will be "seen" by the link partner +and not the the problematic end point itself (which may report all counters +as 0 as it never saw any problems). + + * dev_total_cor_errs: number of correctable errors seen by the device. + * dev_total_fatal_errs: number of fatal uncorrectable errors seen by the device. + * dev_total_nonfatal_errs: number of nonfatal uncorr errors seen by the device. + * dev_breakdown_correctable: Provides a breakdown of different type of + correctable errors seen. + * dev_breakdown_uncorrectable: Provides a breakdown of different type of + uncorrectable errors seen. + +2.4.1 Rootport sysfs Attributes + +These attributes showup under only the rootports that are AER capable. These +indicate the number of error messages as "reported to" the rootport. Please note +that the rootports also transmit (internally) the ERR_* messages for errors seen +by the internal rootport PCI device, so these counters includes them and are +thus cumulative of all the error messages on the PCI hierarchy originating +at that root port. + + * rootport_total_cor_errs: number of ERR_COR messages reported to rootport. + * rootport_total_fatal_errs: number of ERR_FATAL messages reported to rootport. + * rootport_total_nonfatal_errs: number of ERR_NONFATAL messages reporeted to + rootport. 3. Developer Guide -- 2.17.0.441.gb46fe60e1d-goog