Received: by 10.192.165.156 with SMTP id m28csp1142587imm; Mon, 16 Apr 2018 15:01:42 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/4bkSOISSN3S4Rg3XRW2T8a8DEs+eg9AdafUDdAV6KCS7s/sHyNcHsQagm1TuL5AlavFeh X-Received: by 2002:a17:902:8481:: with SMTP id c1-v6mr16730008plo.310.1523916102861; Mon, 16 Apr 2018 15:01:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523916102; cv=none; d=google.com; s=arc-20160816; b=Hysfw295GE2saiOFcDkZ6AhiMdYtsdMy4X6DDeVl+TVfAEP+GTNHRGS6Yr8RJc9Ei2 7KTROrGPsxThE97rYZmUn6uSrI83hNTHaIi8zHr9r9C8FUz+7KnUSELJta8FUOdhjfiR 9SSOPkyBNKQEbrAS0vhOQq2uOdptssDWkvAuVA46RAx1BOpg0FON2ry0DDaLOnt66dU8 Ms9KjEF/fUkUY/3TzzraZU6NARm0+PntXUOq037mDphhPbuDa3jXn6zShMbfOZ4GDpsS 8zPlGalSNtabfWCMS4igbEqCN/JjMmxr+y/y24hxMYgKXtJJxVFN0cb9lDaP8x6zj08x QD+w== 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=f+NBxI4g1a/WcqZzjp5nv4cXOkCfW5MMPSZhRXJCkHc=; b=d3jYGBZj8nhqaO2Dc5qAfSG5lW7VYj63kkSwqxhGWjy2kByCRt/mQlM+HnmuwCq946 WznDzcH0mqcLKs+rJDtImSoeY8+Zki0R098tT85jzfqCG/CK2GP/ad0D+ETZZ9Kq5/Ao t3mZknvAojSrk+098DsaMSLM6imTLEhOAeJdPOtCXKNGLcY9c++slRfq8RijuBA1pm/O ye+0W9yq8V9CsgW5gCj2eqEdzeP+IKItHikV+P2XgvEcMlQzSNyrA5UPF+RnYqSz5r1c BYH4UNAq82plsXxCnZpI9b3rkf1OovRJnXwkT/mJxXf4lzkoIj0KT9QkXUn2IPDeu683 4lrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tVnMXPPx; 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 x9-v6si4983704plv.159.2018.04.16.15.01.28; Mon, 16 Apr 2018 15:01:42 -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=tVnMXPPx; 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 S1752788AbeDPV7R (ORCPT + 99 others); Mon, 16 Apr 2018 17:59:17 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:44093 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750972AbeDPV7P (ORCPT ); Mon, 16 Apr 2018 17:59:15 -0400 Received: by mail-oi0-f66.google.com with SMTP id e11-v6so4683695oii.11; Mon, 16 Apr 2018 14:59:15 -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=f+NBxI4g1a/WcqZzjp5nv4cXOkCfW5MMPSZhRXJCkHc=; b=tVnMXPPxPAJRSTnNDDXw8XjP85HPxN8PDXnWrewUh/McEo0G5aI+MGozRnQJ6pkWjH TGJQtkn8ZFCyf3TGOkOMKzo6+FFNOAQp8pK680onInzESgZ+O84X4LSpyvFSj2956ysP AEcNOSsL8ktUC7l5ziAov/VlkbB5u/k552xjRuDkDsCIF1g3gChUPuMyoo39S7nmKn/y 5uj9kllUqNMh8yf+F2AMG7NiXhkfe7fgnrQW3RNeS+OJ59sYouJfnbprNl8fN5irIOQ/ ibqlEDSgJrqg1fJ5cFM3B9e1sbX3/4av+h86QjaU4I+PVN5nQ158WeFy8VGLvlwxrLsg fTew== 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=f+NBxI4g1a/WcqZzjp5nv4cXOkCfW5MMPSZhRXJCkHc=; b=os4jPZgEYqY06KT0pquuRF3lEEraCkCWsG4y+eGKc7XlXjoQ6vezlfjDVs6+/ib955 KZ27nh7a1HPev1pNW6jQFcwWHk005lS1qQ54WnyT8Uz04vJKUq4Ix6k/KDQ+MR06WPeX uKpD16po0PbKsDizRec8P2I/fYlI/EPI6UY7NhJTfqQJjeqYT6HWOkr4yy81jixfYEIP 2bBYrzrxOZsyZWQHbRv3PEneoFCPd8/wS4B6V0BuRU3hUo4OaX6Qbg2g29S6Qka6cAVW hHmYVQ37LpgpW2K41Nq3wuTLHe27F4SUG4F5HRp+bBlXlxk7KpN4tMIxHq/6lxPQ2zPb pJ0A== X-Gm-Message-State: ALQs6tAlxHhu+ViCCfsCqyK2APf6QKl/bbtRpeWIGYSe4EJqUm6944BZ 6Qo/lp3tRS4Kc0Il68unVDFRdpMY X-Received: by 2002:aca:5754:: with SMTP id l81-v6mr15178981oib.171.1523915954236; Mon, 16 Apr 2018 14:59:14 -0700 (PDT) Received: from nuclearis2_1.lan (c-98-197-2-30.hsd1.tx.comcast.net. [98.197.2.30]) by smtp.gmail.com with ESMTPSA id j23-v6sm8219960oiy.22.2018.04.16.14.59.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Apr 2018 14:59:13 -0700 (PDT) From: Alexandru Gagniuc To: linux-acpi@vger.kernel.org, linux-edac@vger.kernel.org Cc: rjw@rjwysocki.net, lenb@kernel.org, tony.luck@intel.com, bp@alien8.de, tbaicar@codeaurora.org, will.deacon@arm.com, james.morse@arm.com, shiju.jose@huawei.com, zjzhang@codeaurora.org, gengdongjiu@huawei.com, linux-kernel@vger.kernel.org, alex_gagniuc@dellteam.com, austin_bolen@dell.com, shyam_iyer@dell.com, devel@acpica.org, mchehab@kernel.org, robert.moore@intel.com, erik.schmauss@intel.com, Alexandru Gagniuc Subject: [RFC PATCH v2 0/4] acpi: apei: Improve error handling with firmware-first Date: Mon, 16 Apr 2018 16:58:59 -0500 Message-Id: <20180416215903.7318-1-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Or "acpi: apei: Don't let puny firmware crash us with puny errors" This is the improved implementation following feedback from James Morse (thanks James!). This implementation, I think, is more modular, and easier to follow, and just makes more sense. I'm leaving this as RFC because the BIOS team is a bit scared of an OS that won't crash when it's told to. However, if people like the idea, then I have nothing against merging this. 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 (4): EDAC, GHES: Remove unused argument to ghes_edac_report_mem_error acpi: apei: Split GHES handlers outside of ghes_do_proc acpi: apei: Do not panic() when correctable errors are marked as fatal. acpi: apei: Warn when GHES marks correctable errors as "fatal" drivers/acpi/apei/ghes.c | 132 ++++++++++++++++++++++++++++++++++++++++------- drivers/edac/ghes_edac.c | 3 +- include/acpi/ghes.h | 5 +- 3 files changed, 117 insertions(+), 23 deletions(-) -- 2.14.3