Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3632656imm; Fri, 25 May 2018 08:56:13 -0700 (PDT) X-Google-Smtp-Source: AB8JxZosPyhhtgnlyXIdWMAXmRxmjzbGhBoNjAKVXmNjh7mlNpRYr+X6OEyJW1suH6kFKPVXV/5y X-Received: by 2002:a17:902:6ac3:: with SMTP id i3-v6mr3148522plt.378.1527263773424; Fri, 25 May 2018 08:56:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527263773; cv=none; d=google.com; s=arc-20160816; b=SFZDVzbTbR/dWq4jjLLoV8q3OfcvyDBxx7ZgBlgnV5THGmVbrx/5CDKEes/Kqi/hb1 O4jvkANtN48IoigJpHtke4K4teS/j2rdQ/7NdbrbgNkQaNDSwi0Sx1vJxO0GMHZx01MQ GLG/OTTdMI4sejkvo+1jesDajocT0qBWJYRsK9hsbroL6e9CL/NbZXq+GQuVJzO34d3M UHODLQyGS1MnTCrRFQyATjUcjy/7bm9mAfZwy0VyH/Gr6lSy7n5ito6bCRvxXeo9q27h hnKzbBeBdw9z918+I+AGRXyEL65eZEZbycKCuo6qXixmyWABDQJHvMjjs19ffuDXlU0D KMjw== 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=6I60anH+iun6KRqYKM0ViT7vcLGKojFGqanBV9n+GdQ=; b=JRvf9ZWfpma2hm3u5pHT3c9pe2Hqgfc+HGdA+qjSXrXWkUD8rhCglKvdXZHg+uCmvF CCAz9NBZUl2x57cQO7j5Nm4AU4Aa7ShVS09Mb0ERrI48HCJ+RDnMzIvFSyacpqT9Wuo2 0ORJdrsbuE5ICtzqgb92FzGDvUgkBnwx2Wh0LyMLn6hC9ysW+BCUes13zpJqo7L6EoYy jsuktRHDq6wSZX42SVimpZkJNUQ7Ifztl2gIu7Yc6T2AaeP3SRDigWdPTT9zZhHQ8ZVY OSBz4ktzitcCHZ9r9lauerIQxhbmSepjSZlNxrgXg5vhORSY5l4pTOWzoL9zNNr2W+l0 zxvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rAJ6x/Nv; 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 bi1-v6si22799938plb.267.2018.05.25.08.55.58; Fri, 25 May 2018 08:56:13 -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=rAJ6x/Nv; 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 S967061AbeEYPyM (ORCPT + 99 others); Fri, 25 May 2018 11:54:12 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:42773 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965666AbeEYPyI (ORCPT ); Fri, 25 May 2018 11:54:08 -0400 Received: by mail-ot0-f195.google.com with SMTP id l13-v6so6569162otk.9; Fri, 25 May 2018 08:54:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6I60anH+iun6KRqYKM0ViT7vcLGKojFGqanBV9n+GdQ=; b=rAJ6x/NvQDLcxEMKIJA0bFObyZd4cJwOd+5JHHia1H35CbO4GCE26RLDeQ2WO/ccSq Ft/KFpkkh+9hRgnjrxzOnqh+HFBL+np3Ec0hLjaB1SzNMaGttAXMxdEVt82LXHzIXfpa 94/7L2vT/BqH0ahHbWllciHefaUagbRLoyCSDBV41A4x9RiPIqOvD0u+2aVDuPHOaF69 AkgRCIgpRgj8PKdZBoPx0gGHPWwGX0iTyjHQacP2DhCaXTZIx9fONRRGsTI6fkIFIGVm Mf9RQWk2ZY1SlGmA0wszehEZ7pkQYQkvoJUJAw/MdlN8Aiv7oebU/F+Fw1ynIqYgzIhV vs4w== 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=6I60anH+iun6KRqYKM0ViT7vcLGKojFGqanBV9n+GdQ=; b=Pz86/jsd07emOhTpKDly2IxfDm+/TsFIbDGJ8LVRNgCOEr68/zn6QEUMGV1Aebix7l 5TiI9d9u6iMnAF59gog0TtiyCh3hhqCsIgwmywxPUNi+b8Lr5NyurVR7MXB+MTSel4Jr qJccKhiY8ut1wgXlzqejx2blV8BpuUan9faXQ1Lxocxprdw7+Wjg+GvfDSPQUZBlT5Uk 63A3TmivSO3cmZvVHrCuV4Drkff3A5WYbApuktPIKfF8dOIfa3GalZ9QvsqHLscdQ7PR vOFjkuI+eBixSnip/LsfibDstdq7PFdDMjzCAsfiZ73roIrILeVfVfTnPjCbDSO3bmoc KM5Q== X-Gm-Message-State: ALKqPwc5GNQb/n61FcPv4qNYzEE+Oc3hr/MufVADMcw+OI9VgrmzO38G gE20eVZnqoPexORI4qOwFzjFASar X-Received: by 2002:a9d:3c73:: with SMTP id j48-v6mr2031139ote.354.1527263647903; Fri, 25 May 2018 08:54:07 -0700 (PDT) Received: from nuclearis2_1.lan (c-98-201-114-184.hsd1.tx.comcast.net. [98.201.114.184]) by smtp.gmail.com with ESMTPSA id o206-v6sm2636856oia.35.2018.05.25.08.54.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 May 2018 08:54:07 -0700 (PDT) From: Alexandru Gagniuc To: linux-acpi@vger.kernel.org Cc: alex_gagniuc@dellteam.com, austin_bolen@dell.com, shyam_iyer@dell.com, Alexandru Gagniuc , Tony Luck , Borislav Petkov , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, "Rafael J. Wysocki" , Len Brown , Mauro Carvalho Chehab , Robert Moore , Erik Schmauss , Tyler Baicar , Will Deacon , James Morse , "Jonathan (Zhixiong) Zhang" , Dongjiu Geng , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, devel@acpica.org Subject: [PATCH v7 1/3] acpi: apei: Rename GHES_SEV_PANIC to GHES_SEV_FATAL Date: Fri, 25 May 2018 10:53:46 -0500 Message-Id: <20180525155352.22350-2-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180525155352.22350-1-mr.nuke.me@gmail.com> References: <20180525155352.22350-1-mr.nuke.me@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'GHES_SEV_PANIC' implies that the kernel must panic. That was true many years ago when fatal errors could not be handled and recovered. However, this is no longer the case with PCIe AER and DPC errors. The latter class of errors are contained at the hardware level. 'GHES_SEV_PANIC' is confusing because it implies a policy to crash the system on fatal errors. Drop this questionable policy, and rename the enum to 'GHES_SEV_FATAL' to better convey the meaning. Signed-off-by: Alexandru Gagniuc --- arch/x86/kernel/cpu/mcheck/mce-apei.c | 2 +- drivers/acpi/apei/ghes.c | 11 +++++------ drivers/edac/ghes_edac.c | 2 +- include/acpi/ghes.h | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/arch/x86/kernel/cpu/mcheck/mce-apei.c b/arch/x86/kernel/cpu/mcheck/mce-apei.c index 2eee85379689..cbec89f5cdf0 100644 --- a/arch/x86/kernel/cpu/mcheck/mce-apei.c +++ b/arch/x86/kernel/cpu/mcheck/mce-apei.c @@ -53,7 +53,7 @@ void apei_mce_report_mem_error(int severity, struct cper_sec_mem_err *mem_err) if (severity >= GHES_SEV_RECOVERABLE) m.status |= MCI_STATUS_UC; - if (severity >= GHES_SEV_PANIC) { + if (severity >= GHES_SEV_FATAL) { m.status |= MCI_STATUS_PCC; m.tsc = rdtsc(); } diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index 1efefe919555..26a41bbe222b 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -281,10 +281,10 @@ static inline int ghes_severity(int severity) case CPER_SEV_RECOVERABLE: return GHES_SEV_RECOVERABLE; case CPER_SEV_FATAL: - return GHES_SEV_PANIC; + return GHES_SEV_FATAL; default: /* Unknown, go panic */ - return GHES_SEV_PANIC; + return GHES_SEV_FATAL; } } @@ -425,8 +425,7 @@ static void ghes_handle_memory_failure(struct acpi_hest_generic_data *gdata, int * GHES_SEV_RECOVERABLE -> AER_NONFATAL * GHES_SEV_RECOVERABLE && CPER_SEC_RESET -> AER_FATAL * These both need to be reported and recovered from by the AER driver. - * GHES_SEV_PANIC does not make it to this handling since the kernel must - * panic. + * GHES_SEV_FATAL does not make it to this handler */ static void ghes_handle_aer(struct acpi_hest_generic_data *gdata) { @@ -705,7 +704,7 @@ static int ghes_proc(struct ghes *ghes) if (rc) goto out; - if (ghes_severity(ghes->estatus->error_severity) >= GHES_SEV_PANIC) { + if (ghes_severity(ghes->estatus->error_severity) >= GHES_SEV_FATAL) { __ghes_panic(ghes); } @@ -946,7 +945,7 @@ static int ghes_notify_nmi(unsigned int cmd, struct pt_regs *regs) } sev = ghes_severity(ghes->estatus->error_severity); - if (sev >= GHES_SEV_PANIC) { + if (sev >= GHES_SEV_FATAL) { oops_begin(); ghes_print_queued_estatus(); __ghes_panic(ghes); diff --git a/drivers/edac/ghes_edac.c b/drivers/edac/ghes_edac.c index 68b6ee18bea6..8455758327d4 100644 --- a/drivers/edac/ghes_edac.c +++ b/drivers/edac/ghes_edac.c @@ -220,7 +220,7 @@ void ghes_edac_report_mem_error(struct ghes *ghes, int sev, case GHES_SEV_RECOVERABLE: type = HW_EVENT_ERR_UNCORRECTED; break; - case GHES_SEV_PANIC: + case GHES_SEV_FATAL: type = HW_EVENT_ERR_FATAL; break; default: diff --git a/include/acpi/ghes.h b/include/acpi/ghes.h index 8feb0c866ee0..322f7ede24bd 100644 --- a/include/acpi/ghes.h +++ b/include/acpi/ghes.h @@ -49,7 +49,7 @@ enum { GHES_SEV_NO = 0x0, GHES_SEV_CORRECTED = 0x1, GHES_SEV_RECOVERABLE = 0x2, - GHES_SEV_PANIC = 0x3, + GHES_SEV_FATAL = 0x3, }; /* From drivers/edac/ghes_edac.c */ -- 2.14.3