From patchwork Tue Aug 27 00:51:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajat Jain X-Patchwork-Id: 1153519 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="K3dIPuCi"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 46HVgH0PRyz9sBF for ; Tue, 27 Aug 2019 10:51:22 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727205AbfH0AvV (ORCPT ); Mon, 26 Aug 2019 20:51:21 -0400 Received: from mail-qt1-f201.google.com ([209.85.160.201]:54718 "EHLO mail-qt1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726543AbfH0AvV (ORCPT ); Mon, 26 Aug 2019 20:51:21 -0400 Received: by mail-qt1-f201.google.com with SMTP id t5so19251170qtd.21 for ; Mon, 26 Aug 2019 17:51:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=g3ZhUSq1j3Lxx16fgpQE0iUGf8D5v9KeIf9gHJhK6As=; b=K3dIPuCiYmDT7JdD+OPTROgfZh0kK3kMT6mC5+cKNbRDfqtkvEhkP34dMYBBa8U3hL /jH7c3fgAQ+4/NEOzE5+r+YZXJ7I9VMjBCpJQta9e79ZOuCYgtIR21YVFeFGg9YHL0Pq QENxhBVyD95yUspmnBymEpzq3go8lBmvPFPPlXQ6dFARXilg4fYE8goa3mQCR/0GuqAu 5t+5CxMDauJdfwiEsIwJatFUdl4D4tO+JyimUClvUcVa8Z5zui4TyzcZFXndLfn+CXWG ijSeCHIjscAwVUbkhIx5joCSEH+5LIDGHxm+6PdWL2BK+boUv2MfzW3sYWylGQs96BG0 5gAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=g3ZhUSq1j3Lxx16fgpQE0iUGf8D5v9KeIf9gHJhK6As=; b=WM3TSaQmY8aOluOrZYgUz8BrlPuxHMykOTTl17gJnUomyy4EfF8jGvGQKjWFVKqpcn hd+8HVmi0jryzo4Z0N/1kho4dkFHMKmghbx2UIvZ3IzzM+eiQWEKjhBPfb9+vvdjwvDL JIqDx4RAP37wFpjtCuvWWmpzrtCJ6y9dQL78QLYmVgefqN/iRawcfoeDryssoXG+DeYK v1HANL2yeO8fRoUd5i5lva1J6i+Rad1CArQLcxS4YQnfxYQL2317B/MPCgvgF5/cPwAF ko7Odtrc4Z48jYdPGVufh6BwCOLydyMsBury0N2UGsSik2Tx7gj6If/dQD+51E5XstAF NRSA== X-Gm-Message-State: APjAAAXIhaCmbmb6s9apClM75bd+Kt3GiTOhL0w+RmY9oPaCPnniG8N+ d6w2NkZYM35GUpX616Mvuf610Lx/BcEn X-Google-Smtp-Source: APXvYqy9SYnn6y7EsNLzuH0BmPkFq3ePbS/CXXEmWkCR2y7v33Lxff9102PBNbeD9keTFlsrQDiP4C0Wq0ey X-Received: by 2002:a05:620a:126c:: with SMTP id b12mr19883438qkl.177.1566867079971; Mon, 26 Aug 2019 17:51:19 -0700 (PDT) Date: Mon, 26 Aug 2019 17:51:13 -0700 In-Reply-To: <20190821231513.36454-2-rajatja@google.com> Message-Id: <20190827005114.229726-1-rajatja@google.com> Mime-Version: 1.0 References: <20190821231513.36454-2-rajatja@google.com> X-Mailer: git-send-email 2.23.0.187.g17f5b7556c-goog Subject: [PATCH v2 1/2] PCI/AER: Add PoisonTLPBlocked to Uncorrectable errors From: Rajat Jain To: gregkh@linuxfoundation.com, Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rajat Jain , rajatxjain@gmail.com Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org The elements in the aer_uncorrectable_error_string[] refer to the bit names in Uncorrectable Error status Register in the PCIe spec (Sec 7.8.4.2 in PCIe 4.0) Add the last error bit in the strings array that was missing. Signed-off-by: Rajat Jain --- v2: same as v1 drivers/pci/pcie/aer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c index b45bc47d04fe..68060a290291 100644 --- a/drivers/pci/pcie/aer.c +++ b/drivers/pci/pcie/aer.c @@ -36,7 +36,7 @@ #define AER_ERROR_SOURCES_MAX 128 #define AER_MAX_TYPEOF_COR_ERRS 16 /* as per PCI_ERR_COR_STATUS */ -#define AER_MAX_TYPEOF_UNCOR_ERRS 26 /* as per PCI_ERR_UNCOR_STATUS*/ +#define AER_MAX_TYPEOF_UNCOR_ERRS 27 /* as per PCI_ERR_UNCOR_STATUS*/ struct aer_err_source { unsigned int status; @@ -560,6 +560,7 @@ static const char *aer_uncorrectable_error_string[AER_MAX_TYPEOF_UNCOR_ERRS] = { "BlockedTLP", /* Bit Position 23 */ "AtomicOpBlocked", /* Bit Position 24 */ "TLPBlockedErr", /* Bit Position 25 */ + "PoisonTLPBlocked", /* Bit Position 26 */ }; static const char *aer_agent_string[] = {