Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3710971imm; Mon, 4 Jun 2018 08:05:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKhndNXlOdoh7BCRSsk5nYUPXfTpUoc2ZoEi/gmXO3G02h571/TwamUOGnvAJgBx2ClGg27 X-Received: by 2002:a17:902:600a:: with SMTP id r10-v6mr21851006plj.70.1528124735600; Mon, 04 Jun 2018 08:05:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528124735; cv=none; d=google.com; s=arc-20160816; b=IhKxAatFZH+1ICciQB2u6YlDq/msmPZZeVEboSEHK9stCQKsvjlH0EbJeWtTEfctwG ALGgcChaGnyj8cn25HvK94UP0ogbe/ZkiSR3qKU2GcoF7lwmjgnaV2M4nWx5AB0vinOW 0gdh/RV+yayGhWuJYOYyADUH10/rwkelQ+qEDwyjHUMoOT3pLf/GFTT9sVU4cWDGHTiP RP122W1tOJqjBTIXyYoqefAhOv/pC3V2T+oEsOlT3XuA2cdYBZTsQN87vieysZKDTcW9 1A2Qc4kFAApSqbAtUBMRYcTH3F6f8XhLJ/gi/Pq4zxppeCC7u7pOiJpT4Vzt8oJxai4f zLNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=hgOBHo1N3waOoNyq+nwe9XET1KxzQ80152wOyXg6aV8=; b=HYpnMU50tIO2X50chnbSTvez1I6V7UdOMq34GTUuCkUeKtxxFJshiqWeCVDODJkHUQ 43SjMbI1bKEREz5BqbUQR/m1A2kEeU+zf9TsKH20rI0A41PSLEnhJjqNlJVg8nrDlV0s Jg2foCYHOiY7eCR+OIt7eY8/m2XsjFLk3sHcjvqXa+GW0phAcqjReaRMnHO2duZmqusC JSYeltPtJ6tEf6OfBUydD3d3oe9LRmLKNXORwfq/2KTcKrMwVduUt/W4bC6ub+ydrQGv zw7IA99gzPMR0HbN95TA/kGQ1fuuJ3e4SATr5WAy34mGSyLETWCVht2vy7RfgHOJg77x Hddg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HvmLIWeU; 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 z4-v6si24584957pfl.31.2018.06.04.08.05.20; Mon, 04 Jun 2018 08:05:35 -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=HvmLIWeU; 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 S1753601AbeFDPE5 (ORCPT + 99 others); Mon, 4 Jun 2018 11:04:57 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:37380 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751784AbeFDPEz (ORCPT ); Mon, 4 Jun 2018 11:04:55 -0400 Received: by mail-ot0-f196.google.com with SMTP id 101-v6so15563117oth.4; Mon, 04 Jun 2018 08:04:55 -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; bh=hgOBHo1N3waOoNyq+nwe9XET1KxzQ80152wOyXg6aV8=; b=HvmLIWeUTh8PiEpKGnrTSapjamEROIkjMWiVJIHARgSR54d/HGnq33Fr1B28c10jJH cc1YkcVhFW/+okVWqIZnNrdm8TOxBXmZK/123kh51nrTMTjSQ7DfopEiHpFSCQAGHhth DKMeQdU5F+B+wXQsTuM/f0EB4hVdcshwa1kfSEdLHlNFgRgV5aTAlp12FLJL8wRucbkQ ASGQxvgM7fun6Gt36hwJljyAoloK35riyvYUOCysfzS6fpdKYnJCg5Rnr+ssRW+sF2Nt ypJ0EOxKHn5xFrX1RWp5THtlZ5yLr2eh/hbcSgzNaGMuRy/I8+lyH0fG2zFg99DWKXvB YYZA== 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; bh=hgOBHo1N3waOoNyq+nwe9XET1KxzQ80152wOyXg6aV8=; b=QJJQFS5k3afG8FjqTWOhvm6fGzOK0wvEINY+NOYY2cg6XmRH5L1nb7bOjesPpUFg1Y vouSQwDMldDbCzXiTajXyaZ6Gao6v1gxBgsT+ZfbEeEynmE4gMSLXJd/Uixlmh0NwqNh wfMRQ2JDzWuNlSNAf3tHtnub7irqFE0Oo6DZrgLn55g+nSeh2b9Z1ZM+dM3O1/v4bmxM rnKy7EZL4dQI8CdK92q5AZT84f+Dhs2LFgbibafD+/Xt3Prm1T5snuHdvB4ukQ0mlyg5 6zfuQ2fagi1zU1sXBDz7QaKEjS2XmRwFck/6MBcxawwcj6SFt0J08fAzcHijTAAD/52C kvEg== X-Gm-Message-State: ALKqPwfWIKYsToRWbRsVBBjaogqT6R9WwCv6nI4MCOM/3RC/kmSUy/J0 OtpPAmDqOxhtl/gBG18FvJUbSg+l6+RhBQ== X-Received: by 2002:a9d:bb1:: with SMTP id 46-v6mr15464785oth.32.1528124694601; Mon, 04 Jun 2018 08:04:54 -0700 (PDT) Received: from austins740xd.raid.adc.delllabs.net ([143.166.81.254]) by smtp.gmail.com with ESMTPSA id n72-v6sm3878332oig.6.2018.06.04.08.04.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Jun 2018 08:04:54 -0700 (PDT) From: mrnuke X-Google-Original-From: mrnuke To: linux-acpi@vger.kernel.org, tony.luck@intel.com Cc: alex_gagniuc@dellteam.com, austin_bolen@dell.com, shyam_iyer@dell.com, mrnuke , 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 , Alexandru Gagniuc , "Jonathan (Zhixiong) Zhang" , Dongjiu Geng , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, devel@acpica.org Subject: [PATCH v8 0/3] acpi: apei: Drop panic() on Date: Mon, 4 Jun 2018 10:04:37 -0500 Message-Id: <20180604150443.1265-1-mrnuke@austins740xd.dell> X-Mailer: git-send-email 2.14.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org FFS (firmware-first) handling through APEI seems to have developed a policy to panic() on any fatal errors. This policy is completely independent of the non-FFS case and inconsistent the native behavior of error handlers. A number of handlers will cope with fatal errors just fine when the APEI code path is not used. The purpose of this series is to obsolete this phoronic policy, with the motivation to enable identical handling of PCIe errors to native reporting. Changes since v7: - Now applies and complies on shiny v4.17 Changes since v6: - Fixed silly compilation warning - Dropped concept of "degrading" error severity Changes since v5: - Removed zoological references from commit message Changes since v4: - Fix Freudian slip and use GHES_ instead of CPER_ enum - Rephrased comments to clarify what we don't care about Changes since v3: - Renamed ghes_severity to something more concrete - Reorganized code to make it look like more than just a rename - Remembered to remove last patch in the series Changes since v2: - Due to popular request, simple is chosen over flexible - Removed splitting of handlers into irq safe portion. - Change behavior only for PCIe errors Changes since v1: - Due to popular request, the panic() is left in the NMI handler - GHES AER handler is split into NMI and non-NMI portions - ghes_notify_nmi() does not panic on deferrable errors - The handlers are put in a mapping and given a common call signature Alexandru Gagniuc (3): acpi: apei: Rename GHES_SEV_PANIC to GHES_SEV_FATAL acpi: apei: Rename ghes_severity() to ghes_cper_severity() acpi: apei: Do not panic() on PCIe errors reported through GHES arch/x86/kernel/cpu/mcheck/mce-apei.c | 2 +- drivers/acpi/apei/ghes.c | 65 +++++++++++++++++++++++++++-------- drivers/edac/ghes_edac.c | 2 +- include/acpi/ghes.h | 2 +- 4 files changed, 54 insertions(+), 17 deletions(-) -- 2.14.3