From patchwork Wed Aug 21 23:15:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajat Jain X-Patchwork-Id: 11108267 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3397A912 for ; Wed, 21 Aug 2019 23:15:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0AA182332A for ; Wed, 21 Aug 2019 23:15:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="AI/Rp2MW" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729763AbfHUXPS (ORCPT ); Wed, 21 Aug 2019 19:15:18 -0400 Received: from mail-pg1-f202.google.com ([209.85.215.202]:44748 "EHLO mail-pg1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727992AbfHUXPS (ORCPT ); Wed, 21 Aug 2019 19:15:18 -0400 Received: by mail-pg1-f202.google.com with SMTP id i134so2086474pgd.11 for ; Wed, 21 Aug 2019 16:15:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=aTcFmLdXUI/2mHIHBSaJPQwAMPCPvepbAHOZt/6Mmos=; b=AI/Rp2MWIPpvDRbQr66vsJVH2VKLk2AiLCwhWSisDViX7+3vHz2xKX+AT/zL/SGev7 wHZRQ0uMksr4RgAPMluxI5XycKeyMZK2ngZre6OI9KsOnBGbgYBElJaJxB7YNr+Vwlx7 Fw89w2se8LCwfj05KujChNy4UcFZmXKdDuZVP8wQRdBHvRmoaCwi3z/WQNmDseKUHKg+ 59YieleuSvPhc1ECg3xX1Uo6pu8SXMJVUJeOoNg+1SrOVwWKWzMQAjJJ7uDS8+EQRF6T 8h3Lhykl32/jA3vB7Q+ecCOwCS7qEgLA8/4jrTJLtq3GgxeYbce5fiIk5PNSmjhPuwik v+tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=aTcFmLdXUI/2mHIHBSaJPQwAMPCPvepbAHOZt/6Mmos=; b=rXzAnxOcRPfdqjqh6vnlAKLPKPEbWXubPe4ORCUsX4rktTrzfbfwto4/LNPZ2Xxgsb qjL3laPYf/Z6N9hT7eegcSUnBoZmNZBeRHShxLlehhbvY/o6HyiHQLyK+OLpJlhBYePO Wc3S1fqo9h8SHJZIgl1UyCSlW9skDFeQ5YwNgiaha9yKtsm/jQXzIrdTSBZYvf9FnaTe OrWMrfl5uaIl+a5FEx6mbRCTaeUcFuOTQQVkHdZxhGFZTVNZZh5+RNaGSJz6HVy0/Z8L yza157Y3NRQK28YkZGqGz2u9bhy5LX8wlSBjDQKb+dTyErmsx2g9BuoDpacYJhvcTaPH N/ug== X-Gm-Message-State: APjAAAUXJ622tfUhhINkxBRzvZCF7LtrmwIb1RVLJBZHWy73MBJAQJXk Mrmz9KmICEjmvYxQ8Va9uyLfRZaVQfRb X-Google-Smtp-Source: APXvYqxQ8ni/mr2OMg+ezusc+NT2FRPeydHbTjVOrVoqbRnszmg6xyT6lDvHLFLogeGJB7kkWAQirUAxkIvX X-Received: by 2002:a65:5b09:: with SMTP id y9mr31993707pgq.345.1566429317200; Wed, 21 Aug 2019 16:15:17 -0700 (PDT) Date: Wed, 21 Aug 2019 16:15:12 -0700 Message-Id: <20190821231513.36454-1-rajatja@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.23.0.rc1.153.gdeed80330f-goog Subject: [PATCH 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 --- 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[] = {