Received: by 10.192.165.156 with SMTP id m28csp854718imm; Thu, 19 Apr 2018 08:37:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+jqWXMBCPzqSknrTIsrVplUG8tvEzHsUBC5QThL/9zxv5TxeXqxukfRHkeUKr0l0ge2U8w X-Received: by 10.99.109.138 with SMTP id i132mr5627076pgc.314.1524152250162; Thu, 19 Apr 2018 08:37:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524152250; cv=none; d=google.com; s=arc-20160816; b=dQM8CXJ1LDPKMM/wID20X59V3kivXta7IFKaKsw+pQ0rm/B4VCmlFDtrBQFJcyllef MaHpPvg6kQ2wBasp8XbnNa8fHca+TRQGqFcPfUYiF3kQcJaTMG9qubBz5hjU0rmuEsig vzrbOY8+mBHgix0FR47kScqzk0Nhx5EPpEt9qmDiwqEkCaVbi8hMWnIvFnTJaj3wRXbZ J4EEMN6XvxAYNRANHVd2D40EhT8Ay40y1iMzq7GhfsHAOe1CtYCWXIZodRJyD97utqXy 0+2CBegjS5THddPaWOpKhSs/5S+FFW8JFAFQt/46clChQu92DvvvFYMWKJObYYKhZ+eo MyAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=sfwGF2/EjP+pjIPM5eOWIZNgpHtTfys+IDLP95VhStc=; b=kRgvVliBGx62d5QF2ZS8nGFZ2xA5SBr7ugHAlehNF57NZR5YP5b98CvMZrE89NinHE 95EOyRWEbU7DDi3Ky40VsAkrbHWLaEiotPO3aV4RzIOJ3t4L/1JJ2VnTNa9eyTDrelNx w9axFCxQTu0LuKtolRTL5ihmq7Lic2JGi/G+ykppPowYLn3oc3bVBaZhIJ4t6NO9xgUH vxUg1CEWcEqqIl0Dq6rqyjMxoMBjcLGOcrPfxWBWoXTIjtwOvW7UCOtPDl51c7fpJwQa qm3suhA8P0+AjPfmLf3wdJfOV65pmdGjbFLRhFmBPhvLDQttDitggNf2sCMa6sZddY1+ pxSQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f8si3210930pgr.419.2018.04.19.08.37.15; Thu, 19 Apr 2018 08:37:30 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753236AbeDSPf6 (ORCPT + 99 others); Thu, 19 Apr 2018 11:35:58 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:40048 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751228AbeDSPf5 (ORCPT ); Thu, 19 Apr 2018 11:35:57 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B4B2C1435; Thu, 19 Apr 2018 08:35:56 -0700 (PDT) Received: from [172.16.5.172] (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5FAF83F59D; Thu, 19 Apr 2018 08:35:52 -0700 (PDT) Subject: Re: [RFC PATCH v2 3/4] acpi: apei: Do not panic() when correctable errors are marked as fatal. To: "Alex G." 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: James Morse Message-ID: Date: Thu, 19 Apr 2018 16:35:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, James