Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp150969imm; Tue, 22 May 2018 15:53:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrKEdZIC4oneBOXHnKWb7AyoOS/DbIbSgudqDXG1HOYYZ682LkaGhEaejJV9c5vpP7ySVge X-Received: by 2002:a17:902:8f93:: with SMTP id z19-v6mr384047plo.166.1527029606551; Tue, 22 May 2018 15:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527029606; cv=none; d=google.com; s=arc-20160816; b=bv+X5M4VIihruvoBiFGKLG77Qq7Y6QrT3JTyfsyrMmu53TZByqtguQj2LCyWUVyY7Y nRzoz7D38KoiqYEe7nacIIk8mpEUR+/MZGbrpmJ2TjJP3VcMp04txBtp6K2HD69p+wwf 9bTmz8Edpahyor5SeiJ9/FUvD3Z5MyYZd+0psV7A5+F78DkLZlS8NrAyVRE3AUS0FJJ/ D41RdQXg0mlMmI0+SKe3Kfzb7STqMCz8I7EFT/IP+0rbSpXSF4VYzuugHLbOVctzMV3K Qi1GBkaXTcWcz10sUsqL3K3J0QyvC4oJc7czs7qJJJANt3HZTFQDkR4UaJNVa6pbRnpP Mghw== 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=nTHTR2+9eFbNHaK7jVialz5pvYXUwSCTOmnPjqSY64k=; b=KVKU3g+OyP34v1mPfIrIoa+hGE4vmWFYF5a8wGMapTUsrrynWJK3jb4SudqxnSCEnw MhTRcPDS4SiXkdsP28DYhoHrXjEn6gpO+VZczCudgMn6TWW6zCRab6CRNLJG0kiqbtye Gu4RdkbZxoQJ6v0Xslu0MazE26GwPgB9ky+ZKDOO5Q1eR2H4SWjOrhOjFP/+qQcMUdv3 QuTeHludlkIs/IkBCyqpN2VE2ucXobaE1Oe1dczVUP3AmuW8WI4M6jr7hS8pt6of7T9z QRg2f7lf7u7Y1Kq/66AH4Rx/LQ8+WDvCv4ubxPypvWCDQIaEM+Msf8+VnulaCMh6H3SO Wi6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FpltDTxC; 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 g22-v6si13491534pgv.468.2018.05.22.15.53.11; Tue, 22 May 2018 15:53:26 -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=FpltDTxC; 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 S1753402AbeEVWwH (ORCPT + 99 others); Tue, 22 May 2018 18:52:07 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:40756 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753036AbeEVWwF (ORCPT ); Tue, 22 May 2018 18:52:05 -0400 Received: by mail-oi0-f65.google.com with SMTP id c203-v6so17780478oib.7; Tue, 22 May 2018 15:52:05 -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=nTHTR2+9eFbNHaK7jVialz5pvYXUwSCTOmnPjqSY64k=; b=FpltDTxCGPfhCBW8+bE4xRTA4kAMlln3j3t3y50oGOmF+R4YvqtyXsTxy0SSFqovtR bs+NkUoPOpx8K1lNPjDXe96gb/pQ0rP47Iwr5nEBgVeajRIDn8/4i6DwPbcYOh1i2CxD o0sl5Dfl8ynYDINcOWpE88XIzEJgI6QvcrxBExnnAmW4xzuT/9RrGfMo99+gZ2+HRaD5 HzTNo4jIvT4bpuJ0KIjyya03fVa5/RLAF3rKlNhLuHTH+RN+vRO5NsJMoeGEaYZ/woJ0 Mp8FBKf4Bw9z3ygKZ7lUrLg6xO9S1vEKrHlRndC0k9Ga4wFpGYzv0+i6v9jxDZIwMTat T+SA== 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=nTHTR2+9eFbNHaK7jVialz5pvYXUwSCTOmnPjqSY64k=; b=UvnOp2TAzuG78TDCE3qpZjxNnUxaloLwKoEUMBijhk4qsDiK5feIIdq6/5/Hs+7tVT dDcDnwyB9FV//g28jcgYnPnu3IKy5Nm1U0mBN3Zp0Qs3Ubw05jpl36k44ggKsgho8HNp fl0FYw9Tg8ZhlYpiC3/TDbMFzp04TSbYq12kMPYjAZpveZkxKVi54beXuIRmM4/xAE5D 5Djw5brmLOXF5EthkSZtlieKf1gkovRtKLIiH+KBek+p7r2cePjQVoCsuyMGHr4GayyK IWbvVoiakMlT90OXhoKeTQMfxgizEqbGgeLZ9UaIFF/8VINPE1Mg3+cEWSV6yAu0jwx1 4NFA== X-Gm-Message-State: ALKqPwfQjFFDQ9oKD2JODRiK/BtmE+MfjcTr7kspKFXdXYT5nyJsLT6x voC1w7khQ6xNeNC4sufW2Ng= X-Received: by 2002:aca:2b13:: with SMTP id i19-v6mr204563oik.292.1527029525139; Tue, 22 May 2018 15:52:05 -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 r48-v6sm15625400otb.51.2018.05.22.15.52.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 15:52:04 -0700 (PDT) Subject: Re: [PATCH 5/5] Documentation/PCI: Add details of PCI AER statistics To: Rajat Jain , 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 Cc: rajatxjain@gmail.com References: <20180522222805.80314-1-rajatja@google.com> <20180522222805.80314-6-rajatja@google.com> From: "Alex G." Message-ID: Date: Tue, 22 May 2018 17:52:03 -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: <20180522222805.80314-6-rajatja@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 05/22/2018 05:28 PM, Rajat Jain wrote: > 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). I was afraid of that. Is there a way to look at the requester ID to log AER errors to the correct device? Alex