Received: by 10.192.165.156 with SMTP id m28csp908995imm; Thu, 19 Apr 2018 09:29:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+wynZjLuK7x2/it2tLAemPYmAX++qA0j2b6cHyjwsoR2OyK1Ri2EJa8rIp2p7DMivgpBe2 X-Received: by 10.101.100.75 with SMTP id s11mr5647663pgv.360.1524155360429; Thu, 19 Apr 2018 09:29:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524155360; cv=none; d=google.com; s=arc-20160816; b=bYLUgr/F3fw8n4Lpv83LoJR+M6nR1w21vqqYvUoBw1uZIxsk65WZWIqGF561Ichijs T94IeDCprjD8Fql3AjEpsW4unxdx2v/OT5tbbXfV4CBbPSqweBel96tthNrBN3q/d9E9 EJFDqZobzJ3riJSDTc6bQ4vl75mr1kbZgaOoM2/AAJ628pCJYBFSPdNUbKbtm/zQ+SHm plnTMyBYGicXI+i7oqfzVlVq3vH8/A914jfaAJLDwp/BzFg6kLRPS1Rp/JDa7dxCrxpa 68xLwaV49YGHpfrI5G9r5P0+IJsTpSaFJ6UEQbR2bNpN65I4QRDQbMAB0yZSGEJVHxfa U85w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=8Pva9MtA/jUOTxiSqB/c95/x4SMNC8baB19+dSbV8fg=; b=JYKf7TuldDzHOSFr6P19F8tXtb+SFd2EC8SNcY2Q+RDrijDOXHYEWtt6cphEOyUECj ZvIVRolBUJNKzrhrElxexkgtLnU3zmUYCOHVfLoNgCre2FRWou6Gt38hMZZ6LEujBJRY 4w6TPbxGjqHHg2aiRAmWoXyBYgcKYJRlrIeBgxaJ3FDSKaspzfK3H9FO0QaSGryh+UO0 r5JxTvXNHmiWSZWWOvCAW7k6WMk8SmR+A1a0OxE666Vzr7b02FDmj+Eoi00Vgo1GIDEB aYR7KepSrpkD5bSo0Fmhbr18VJO142VZtPa/Ds3g/A9dlGRXtMIa8YyYAHuB8GZG9/Xu 2gGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gLFmoXrp; 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 l1si3269266pga.536.2018.04.19.09.29.04; Thu, 19 Apr 2018 09:29:20 -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=gLFmoXrp; 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 S1753954AbeDSQ14 (ORCPT + 99 others); Thu, 19 Apr 2018 12:27:56 -0400 Received: from mail-ot0-f181.google.com ([74.125.82.181]:32935 "EHLO mail-ot0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753620AbeDSQ1y (ORCPT ); Thu, 19 Apr 2018 12:27:54 -0400 Received: by mail-ot0-f181.google.com with SMTP id w2-v6so6501665otj.0; Thu, 19 Apr 2018 09:27:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=8Pva9MtA/jUOTxiSqB/c95/x4SMNC8baB19+dSbV8fg=; b=gLFmoXrpmub4N68pS+fGXoRc25nO0oW/NaHQ+NspMwW4vrqnmssaEa5gpKuqx8OcdT RQGb7qVJcLUNvmCZjTWrz3ceF3lUflD6ng0dHY+erCfggM5NBNemMKs/M/5DZ4i/Uo4P BzQzhp+X20a6AX8rP1ZzNCImtrKfCFS2XennmVaphWNoI/mI9ccauCX3XRzfnSIq6DHR e9g7jN3V3NqyFDqUNdN5b+v3NnEKrDFYa/9sFBfzg+xKDARMl9S66V/KE+nQhfVboVeX MnlHPNduq+c5Ji+lGp7m4VfelHDuls3lBsCHRTbgB20Bkm87VxDWKb9hdE0yFbd3PUsd C61w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8Pva9MtA/jUOTxiSqB/c95/x4SMNC8baB19+dSbV8fg=; b=drmyUivzTblnddE++EMRFjliE2dQABd8kzOeyrrpWqJR5oGYYiDrCY1jSNnAWtV4I3 jpniGozQYRnsS7FqSnqc9Od5L3xmsFtpX2WBLl4iZvsQXlba8CzNb3bUH3cxJJYFEyyC liv1NCiW/KoJWtb58T6rDNiCqN5qOesOcZIKRJqdIHPd/4eSpAR+rb+fNkg7cFMsfi1H 84Abx9ez7EMc9GNeekBb4e0s3x/sqaZ5b57ACQyOwVtCyD/yp58hmKVZxh0iO6PSstzw knboGfMN0eJf138Y2cdBGM4YLlAOKtcxjVML8rWJsZP8jxlBjjE6rZ+aiS42jtmhYrsm 1CXQ== X-Gm-Message-State: ALQs6tAadMVqi0D3GmF3Vq+eNsc3Tz30N3tiyj+9sFUMc6B1mRzSpbrd zwnZhOXxOm1zpDmtTRVWqqa00v0ZG5k= X-Received: by 2002:a9d:3f9c:: with SMTP id r28-v6mr4093374otc.289.1524155273408; Thu, 19 Apr 2018 09:27:53 -0700 (PDT) Received: from nuclearis2_1.gtech (c-98-197-2-30.hsd1.tx.comcast.net. [98.197.2.30]) by smtp.gmail.com with ESMTPSA id w11-v6sm1975913oiw.27.2018.04.19.09.27.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 09:27:53 -0700 (PDT) Subject: Re: [RFC PATCH v2 3/4] acpi: apei: Do not panic() when correctable errors are marked as fatal. To: James Morse Cc: Borislav Petkov , linux-acpi@vger.kernel.org, linux-edac@vger.kernel.org, rjw@rjwysocki.net, lenb@kernel.org, tony.luck@intel.com, tbaicar@codeaurora.org, will.deacon@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 References: <20180416215903.7318-1-mr.nuke.me@gmail.com> <20180416215903.7318-4-mr.nuke.me@gmail.com> <20180418175415.GJ4795@pd.tnic> From: "Alex G." Message-ID: Date: Thu, 19 Apr 2018 11:27:52 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/19/2018 10:35 AM, James Morse wrote: > Hi Alex, > > (I haven't read through all this yet, just on this one:) > > On 04/19/2018 03:57 PM, Alex G. wrote: >> Maybe it's better move the AER handling to NMI/IRQ context, since >> ghes_handle_aer() is only scheduling the real AER andler, and is irq >> safe. I'm scratching my head about why we're messing with IRQ work from >> NMI context, instead of just scheduling a regular handler to take care >> of things. > > We can't touch schedule_work_on() from NMI context as it takes spinlocks > and > disables interrupts. (see __queue_work()) The NMI may have interrupted > IRQ-context code > that was already holding the same locks. > > IRQ-work behaves differently, it uses an llist for the work and an arch > code hook > to raise a self-IPI. That makes sense. Thank you! Alex > > Thanks, > > James