From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC59BC43331 for ; Tue, 24 Mar 2020 16:42:07 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 440C92076F for ; Tue, 24 Mar 2020 16:42:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="t2bQE9lU" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 440C92076F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Y7FfCEu1FarxT3SnKCDUzSBCDJ359fH+CGfJWXfRk9k=; b=t2bQE9lUCGc+KI DguHBbNdkJ/eKlI0YaU8jEsWcHVQXjrwY0/Ynv2OtzsigZjbuYJF1wG01WwmH4tnU8hy1gHcvrPuz W0RJm85qwwBQYlnQZvH0bCmRM64IHveEzVGcKZ5atAxuq9yHo1YX5Z3gGdDANFzNt1mWIySgh9J4/ fLhaYjThnBKwmd8CbkE/ApQgYgm4mtpjhqGLXoangsUY/9hWLiE+LvCy8+Xa2/dAt1accyDQXSWvj AYTc7XMGwJ7zwlVFBq5c8BkBbD9L/KVROmOGVLERMz30gPjjOQnZVldOfFcWDbxne2WYXlAyzsVjh LsTwpFnmo6sE5ImYxbJA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jGmct-0004L5-GC; Tue, 24 Mar 2020 16:42:03 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jGmcp-0004KP-N4 for linux-arm-kernel@lists.infradead.org; Tue, 24 Mar 2020 16:42:01 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9F6A71FB; Tue, 24 Mar 2020 09:41:57 -0700 (PDT) Received: from mbp (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B87AD3F52E; Tue, 24 Mar 2020 09:41:55 -0700 (PDT) Date: Tue, 24 Mar 2020 16:41:53 +0000 From: Catalin Marinas To: James Morse Subject: Re: [PATCH 3/3] arm64: acpi: Make apei_claim_sea() synchronise with APEI's irq work Message-ID: <20200324164152.GB3901@mbp> References: <20200228174817.74278-1-james.morse@arm.com> <20200228174817.74278-4-james.morse@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200228174817.74278-4-james.morse@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200324_094159_805051_7F8EFC42 X-CRM114-Status: GOOD ( 13.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Tony Luck , linux-acpi@vger.kernel.org, Tyler Baicar , Xie XiuQi , Rafael Wysocki , linux-mm@kvack.org, Borislav Petkov , Andrew Morton , Will Deacon , Naoya Horiguchi , linux-arm-kernel@lists.infradead.org, Len Brown Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Feb 28, 2020 at 05:48:17PM +0000, James Morse wrote: > APEI is unable to do all of its error handling work in nmi-context, so > it defers non-fatal work onto the irq_work queue. arch_irq_work_raise() > sends an IPI to the calling cpu, but this is not guaranteed to be taken > before returning to user-space. > > Unless the exception interrupted a context with irqs-masked, > irq_work_run() can run immediately. Otherwise return -EINPROGRESS to > indicate ghes_notify_sea() found some work to do, but it hasn't > finished yet. > > With this apei_claim_sea() returning '0' means this external-abort was > also notification of a firmware-first RAS error, and that APEI has > processed the CPER records. > > Signed-off-by: James Morse > --- > Changes since $last_year: > * Dropped all the tags ... its been a year. I think this patch hasn't changed much since, so my ack still stands. Acked-by: Catalin Marinas _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel