Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6734603rdb; Tue, 2 Jan 2024 11:23:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGgsE/2Eby9qGuthuTFJn2HtwaR59TavyjFZhmV9dHHXRsPg4CUWlgQpwPJ64EzF0jhTIK3 X-Received: by 2002:a05:600c:470d:b0:40d:7583:55fc with SMTP id v13-20020a05600c470d00b0040d758355fcmr1862322wmo.280.1704223401013; Tue, 02 Jan 2024 11:23:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704223401; cv=none; d=google.com; s=arc-20160816; b=ynUiS6/hF8lK1m5hUV8/PHhgz+wgR5gXjHQRPIFWQJq7WIZM0N/4CiJoJiJIBIrEVP gpppJXMZCql2Ecm4th8/kD7L7dYIL9D4VSao/Oy3QoqzRP71gmbBJrxaW0/GQYacZGBJ kFnIAhc8mcGDOYTcrrra0KWpeG8OVruNOd01YS0xv+ZDwYruP9Vq60slPgVPJpOmDskt ISZZksKblBm48sGeVGGRhTLSIzXiyoffFcncC6WqtJHOoIz30ZNmaLqdObN5X/YJXnIk XMh4NDirvaKqwgQS5ABJWWfR70jP9HA/8bNEQHel6VUJ6ZrIokXfHE85Ura7N5lrL8Im 7DkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=xPW8oe2jA2KcWZaCgPiTyMNaW5bhM6MDnwUeSwmgXgs=; fh=I87Ml+PfmvApSXwH9Sfl2PkFkbr94XOGlGpbPUlm+KY=; b=Onjac3mr+PEKDZFFG/MO0N4z2UO9X6HA/u2dYbLbjTb4t7st7Tvz7YcuxZ6jiu3oZH lgU5H+tdlNYGB7XvyjjFMgTL9a7Vk0fmfMfVJ8M//udk31hF3Ni5HTCbSTcjbw0ub4BU hLobA1+vLqIfyHMgVaKzFjLfGsq5fPDRbCA/sNdlVPYOgb1nTiGFzoVw8UPRuRoRfZUW E9GHCW8+/BfZ1ItMdMbJqiDTqEU0a4SwARPcwGMR9YCQwbFNR8yF5jd8a70+M3cdxMXs 82viBfF4TsD+CsZbB0X7YQZeYckTqp/JeBzYQq18PlacuwMZKAqV35KE/uhKd8LcLloE 3Wgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PBlwKhCy; spf=pass (google.com: domain of linux-kernel+bounces-14767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14767-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id vl15-20020a17090730cf00b00a23619be213si10183310ejb.159.2024.01.02.11.23.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 11:23:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PBlwKhCy; spf=pass (google.com: domain of linux-kernel+bounces-14767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14767-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C0E1B1F230E9 for ; Tue, 2 Jan 2024 19:23:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0091415AFE; Tue, 2 Jan 2024 19:23:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="PBlwKhCy" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E4F016405; Tue, 2 Jan 2024 19:23:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704223391; x=1735759391; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=Pi4zx7xRM7AxSQNbCyQOKolzB32nwlVky/j9CjcIrT4=; b=PBlwKhCyg6lR07E0Xltt/78lZW0zYPGgjffeCfHSQXunxrDPbvgWSlA8 yJWcYZTLOncEEl4bvpzhhN7SOS/FHDE812joDCcS1IkzKQY0iTkPpbGiT OaCrnK3nfrKtFvYtEFc9of0lx4G7c4e8P9YA0cmKRM4nNS+cEx9ht7DaP mtMtoRXvmDhw9VC7yF0m9u7ND7mcvsGT9whtHUSOfgC9oVmY0U1/DSbFx SuuY/WESlAfo9xrwbG8C2N+WQU2oTrNTKzAA8fwxgOtNNqnOhqa0Tl5sZ T9kHyNRS1tr0funlVtn7tbE1fqtwpkBz8HF9xJvqKTUBQbn87QmlZ1OL1 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="428078531" X-IronPort-AV: E=Sophos;i="6.04,325,1695711600"; d="scan'208";a="428078531" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jan 2024 11:23:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="1111132084" X-IronPort-AV: E=Sophos;i="6.04,325,1695711600"; d="scan'208";a="1111132084" Received: from keithj1-mobl2.amr.corp.intel.com (HELO [10.209.44.31]) ([10.209.44.31]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jan 2024 11:23:10 -0800 Message-ID: Date: Tue, 2 Jan 2024 11:23:11 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/3] PCI/AER: Use 'Correctable' and 'Uncorrectable' spec terms for errors Content-Language: en-US To: Bjorn Helgaas , linux-pci@vger.kernel.org Cc: Mahesh J Salgaonkar , Oliver O'Halloran , Robert Richter , Terry Bowman , Kai-Heng Feng , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Bjorn Helgaas References: <20231206224231.732765-1-helgaas@kernel.org> <20231206224231.732765-2-helgaas@kernel.org> From: Kuppuswamy Sathyanarayanan In-Reply-To: <20231206224231.732765-2-helgaas@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/6/2023 2:42 PM, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > The PCIe spec classifies errors as either "Correctable" or "Uncorrectable". > Previously we printed these as "Corrected" or "Uncorrected". To avoid > confusion, use the same terms as the spec. > > One confusing situation is when one agent detects an error, but another > agent is responsible for recovery, e.g., by re-attempting the operation. > The first agent may log a "correctable" error but it has not yet been > corrected. The recovery agent must report an uncorrectable error if it is > unable to recover. If we print the first agent's error as "Corrected", it > gives the false impression that it has already been resolved. > > Sample message change: > > - pcieport 0000:00:1c.5: AER: Corrected error received: 0000:00:1c.5 > + pcieport 0000:00:1c.5: AER: Correctable error received: 0000:00:1c.5 > > Signed-off-by: Bjorn Helgaas > --- Looks good to me. Reviewed-by: Kuppuswamy Sathyanarayanan > drivers/pci/pcie/aer.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c > index 42a3bd35a3e1..20db80018b5d 100644 > --- a/drivers/pci/pcie/aer.c > +++ b/drivers/pci/pcie/aer.c > @@ -436,9 +436,9 @@ void pci_aer_exit(struct pci_dev *dev) > * AER error strings > */ > static const char *aer_error_severity_string[] = { > - "Uncorrected (Non-Fatal)", > - "Uncorrected (Fatal)", > - "Corrected" > + "Uncorrectable (Non-Fatal)", > + "Uncorrectable (Fatal)", > + "Correctable" > }; > > static const char *aer_error_layer[] = { -- Sathyanarayanan Kuppuswamy Linux Kernel Developer