Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp145919pxk; Fri, 11 Sep 2020 02:56:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWJqOuNU5OXOlKXq/7I1rETls+3YFbt3nyoe/ZGjMRct+CQMY/lz8HMFRx8zMvB2csYtZ6 X-Received: by 2002:a50:cf46:: with SMTP id d6mr1119184edk.339.1599818175975; Fri, 11 Sep 2020 02:56:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599818175; cv=none; d=google.com; s=arc-20160816; b=oqQWTIA+10mzduku6A2+I5R1/H2X51QhVoPd0LFJifywy2BZwOyrjXg/cz09vUR5Yz g17iz+G5YjWbdMC7BEBloIUi7hr9zMh+EQI3LcULH0T9+hTAwf1s7nRRNxgq5/i/AwTl J5DbK9jS4+kbU7eeAxgOJZxMUmlP1r4YL77GpDFzwfj6lgz4CVB5/7xiLAaJPXaAza/i t42fqMM+RJ0yJGDg5bAc78PIN/qX0oCnv7Od0HCBfM6fAQ11ilO8Qrfq/RDyYMocKysx PWb3aVjBbWzH5DU1pw7y+YGJGpWnmeR4e2NQRqsD6Hm7q4Pd5UJqevoUpBiWmjvvjfZY 329g== 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; bh=dL3tlPsAvmsOve+2ri5stfjkFJuvj0Nj5IQRRS72uY0=; b=L553lteF4Cw0AuXa/btv+ddkqpn+b2c7F7K+za/Mp+TiKCRTZexBFj17b8uHFk2nd2 Nym/TgbSL0xbElLQMUKh39RsuXp/gSF72lVvIbJz4LgvfilsEBzKMqxgCZe1te7UYJiR Vbme/orqrGV2jsY6cd6NqBrdA1CEH0i+UFF9Isa6/w76j73arD5q7df4OhyNAJv9ma6O 8PqzAQzZUammss/ZCAb4Auqw+8MegbdpqjgeRwqSstlkey6PBY0wgp5E1gJ68ESAyKfK 1SjBZS9A+1LCmicqAAky3oTlewgghN2tn50wm2WY/565ZWRCMBzu7x5VH3IBt2G+d56O cH/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si873403edj.64.2020.09.11.02.55.52; Fri, 11 Sep 2020 02:56:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725811AbgIKJzG (ORCPT + 99 others); Fri, 11 Sep 2020 05:55:06 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:12515 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725710AbgIKJzD (ORCPT ); Fri, 11 Sep 2020 05:55:03 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4Bnrhf3d4Qz9v1Z1; Fri, 11 Sep 2020 11:54:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id 1uQtGWb0214J; Fri, 11 Sep 2020 11:54:58 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4Bnrhf2VxJz9v1Yd; Fri, 11 Sep 2020 11:54:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id D49728B83B; Fri, 11 Sep 2020 11:54:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 71B-b_lCudje; Fri, 11 Sep 2020 11:54:58 +0200 (CEST) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id AF0128B838; Fri, 11 Sep 2020 11:54:55 +0200 (CEST) Subject: Re: [PATCH] powerpc/traps: fix recoverability of machine check handling on book3s/32 To: =?UTF-8?Q?Michal_Such=c3=a1nek?= Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Nicholas Piggin , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <1c804764d38fb084b420b12ca13e8c1b2dea075e.1548166189.git.christophe.leroy@c-s.fr> <20200911091542.GE29521@kitsune.suse.cz> From: Christophe Leroy Message-ID: <69e1863a-468d-55d7-f2b2-e700b22609a3@csgroup.eu> Date: Fri, 11 Sep 2020 11:54:49 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200911091542.GE29521@kitsune.suse.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Le 11/09/2020 à 11:15, Michal Suchánek a écrit : > Hello, > > does this logic apply to "Unrecoverable System Reset" as well? I don't know, I don't think I have any way the generate a System Reset on my board to check it. Christophe > > Thanks > > Michal > > On Tue, Jan 22, 2019 at 02:11:24PM +0000, Christophe Leroy wrote: >> Looks like book3s/32 doesn't set RI on machine check, so >> checking RI before calling die() will always be fatal >> allthought this is not an issue in most cases. >> >> Fixes: b96672dd840f ("powerpc: Machine check interrupt is a non-maskable interrupt") >> Fixes: daf00ae71dad ("powerpc/traps: restore recoverability of machine_check interrupts") >> Signed-off-by: Christophe Leroy >> Cc: stable@vger.kernel.org >> --- >> arch/powerpc/kernel/traps.c | 8 ++++---- >> 1 file changed, 4 insertions(+), 4 deletions(-) >> >> diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c >> index 64936b60d521..c740f8bfccc9 100644 >> --- a/arch/powerpc/kernel/traps.c >> +++ b/arch/powerpc/kernel/traps.c >> @@ -763,15 +763,15 @@ void machine_check_exception(struct pt_regs *regs) >> if (check_io_access(regs)) >> goto bail; >> >> - /* Must die if the interrupt is not recoverable */ >> - if (!(regs->msr & MSR_RI)) >> - nmi_panic(regs, "Unrecoverable Machine check"); >> - >> if (!nested) >> nmi_exit(); >> >> die("Machine check", regs, SIGBUS); >> >> + /* Must die if the interrupt is not recoverable */ >> + if (!(regs->msr & MSR_RI)) >> + nmi_panic(regs, "Unrecoverable Machine check"); >> + >> return; >> >> bail: >> -- >> 2.13.3 >>