Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp365402iob; Thu, 28 Apr 2022 04:18:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtvAQODmIghLBwrBYjaDaU4Q9gmLCrOodhSqEHMsGNVW4jF5BmO0bpHOcXMiYh8YUJ4Z4L X-Received: by 2002:a17:90a:b797:b0:1d4:f7be:2eeb with SMTP id m23-20020a17090ab79700b001d4f7be2eebmr45361609pjr.217.1651144714903; Thu, 28 Apr 2022 04:18:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651144714; cv=none; d=google.com; s=arc-20160816; b=0bCAaqrjMWPeTtoHYWGTpAjwTr14hvEJ+++bteJ5eMmptpQB/mf8g+ChMw24iuU1X2 Ucb4hm6EE6XdAH4i/EQozBhqICc1sTuk9OB6Gl5gqBG11sDdvu9Cn+ZHMSLi/Ak8rmAR RtimXoORMeVeInT7XsvS4SDXxB0KYPaGUc1VeaRn9SHRKhuaYzqWRosLD3/uX1U85UU5 TArVUDlKwkVRc5sbdLHaatvRq2UZURksDHS4klsWppNSroOrXa2ElqkBQx4XHt2wqne1 de6kmJKvK/OxlhfFUPv0jn16vnUI5NhA1/Mij3P3Jj/jixfu15Qe66lZcb0PpssV32Mt 2ZfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=sHF0pINvq59jdV4QuvG1+ZAAoPVnNSWiqpEWuEUOodI=; b=SF5q1QolFROUbl46beln0WVpd5CKhXiBvxoRDc44U0n7SMR/2FIQeLymtiGd3f3WYu qLOdfNie3su+JLaJQHyAmxahmW9oBz/9KJfz+Zf72e4zJVK9a6jW5FI5vf2aFGOhWkRp F+pGq408h79crRfKxmlJ05uw8ZHbGHk6Czaa7rAfWT+Iq8WRVhQydTcmRL8UcKfJGv/f QYKRw917aRGbDhXaWJBootlgX7IZOc28QQGqwb526c6D9BYOHaRLzm6mgXs7lZz5A0kb G/qqprs/F8gHWymlvQu7gRFn1QvMikGHg7O8qqGgGKbxHikP0ieUwjwWbdL69wOviABX BHTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oc3-20020a17090b1c0300b001d942616147si5056549pjb.9.2022.04.28.04.18.20; Thu, 28 Apr 2022 04:18:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241270AbiD1HII (ORCPT + 99 others); Thu, 28 Apr 2022 03:08:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244758AbiD1HIG (ORCPT ); Thu, 28 Apr 2022 03:08:06 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C38E198F50; Thu, 28 Apr 2022 00:04:52 -0700 (PDT) Received: from mail-yb1-f182.google.com ([209.85.219.182]) by mrelayeu.kundenserver.de (mreue107 [213.165.67.113]) with ESMTPSA (Nemesis) id 1N0WPK-1o7FkU34K4-00wX9v; Thu, 28 Apr 2022 09:04:50 +0200 Received: by mail-yb1-f182.google.com with SMTP id y2so7372840ybi.7; Thu, 28 Apr 2022 00:04:50 -0700 (PDT) X-Gm-Message-State: AOAM530vjkLCXyIvoodzRGwear/VE6c7tM7g9B3NAhLZfPZ6JoKPA+xk qCgzEPALvV2UsJvvCM+sj0IbSkxy+RaLQCTdyhQ= X-Received: by 2002:a25:31c2:0:b0:641:660f:230f with SMTP id x185-20020a2531c2000000b00641660f230fmr29428750ybx.472.1651129489342; Thu, 28 Apr 2022 00:04:49 -0700 (PDT) MIME-Version: 1.0 References: <20220331092235.3000787-1-hasegawa-hitomi@fujitsu.com> <20220331092235.3000787-2-hasegawa-hitomi@fujitsu.com> <20220408133246.fyw5554lgli4olvg@maple.lan> <20220408150202.yhn3qppqwm7wzmo3@maple.lan> In-Reply-To: From: Arnd Bergmann Date: Thu, 28 Apr 2022 09:04:34 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/1] soc: fujitsu: Add A64FX diagnostic interrupt driver To: "hasegawa-hitomi@fujitsu.com" Cc: Daniel Thompson , Arnd Bergmann , "gregkh@linuxfoundation.org" , Linux ARM , SoC Team , "open list:SERIAL DRIVERS" , Sumit Garg , Olof Johansson , Catalin Marinas , Will Deacon , Jiri Slaby , Jason Wessel , Doug Anderson , Linux Kernel Mailing List , "kgdb-bugreport@lists.sourceforge.net" , Peter Zijlstra , Mike Travis Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:eIi0QbvKv2J0kpPkGcSMwAc+VFulHu30u8L3LD5xEyxQRXD4+MR yMm0vea/KEYXxg8xMkBqgukd81d0BPir5c6lTNko7Wcv07wAopU0JZKjTwula3N1XlGIrNa U1rrhzfPBh1C16f51QH+cYVVBKYOlhqDhZYt9xWbbvG2Y6F3hWu6fnChuXvtPLFYLDHhHwv gIrZkdC/zxsi6ePsBQMug== X-UI-Out-Filterresults: notjunk:1;V03:K0:+xxvt5P/Pug=:ZGNlrUHFBRGNMS8HB1c/gy taDKegWhqm0r641SGlzyJnXOlW30bB/OwjM2W2dkUSfdGK2r1nKdNcR7aOV0DSjNmlQqf0lu9 BMLWpia4NUlHYOJ6ttmjkNgDylDgww9ISZZ9nVu4SIHDI6NCajAehT+/DisUz16Uba8bhVdjL GnK2ZBXiI66zfHnBJBxEbpeb9g1MCuVOElAD+FtiZnvISvryRDJtEn+dpT01zgqQA4thPLdHy b8NdSQzQCRGV8SfTFIEU76Buw/PPvdACEYRbXYa2IDOSm9nRiCFUZYKvoUEWE63iunNiXalUe M3bDyKf5hZxs0i/oNCtHeQMdKVIZuOTViiVqhGIKcUgxm4Aspl4rv312IplmmCpJyumX1yjTP TPxA52LoMoPazBlyL3/6K2Jkfm/fcNQaMdHUI3OuFWRTCUzKe5BUMEkdubr9xiqAahblyJd0F datbraVHPGh7g3zyci9Prw9ZoBKnv2p2jP54TatuCd4iFs4Jb3G3VZJhla5A1tIu6Ku5AEh4q 18Q6x0v2gOKqMZQliAlJf2XUQ3wtvwYUnjVzYxO85Nl249KaP+YVJr6HANtEiNCmwsFQTYcT5 srtcPKBavApU8swqK8pZJNKtc8zKTiab8NiQAlX76rylUY9lg9JfWLIa+SfsmGFYEQ9TbuICx DfSQLU93sB/Rnm6eswu5588BTxunVdFRMp3uFSMsUVNYxRzUoSzQb7R3fW3Rg/jdBuHgnm97e axjkTI/nlo03qpDmbUha3qo9f9y2944+qO9Vwti45XF6qKuaOxe1W6ODfHTN1mpRAxRESAvsx f/O9YIscOif2N7B7bADg6p7XB7pDoaAMgshs7WuE/LqeJ2riAM= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 28, 2022 at 4:15 AM hasegawa-hitomi@fujitsu.com wrote: > > Hi Greg, Arnd, and Daniel, > > > I understand that it is not appropriate to hardcode c. > > How about using __setup() to add a new kernel parameter and allow the admin > > to specify the sysrq command when booting? > > I have received a lot of advice regarding sysrq, but after some consideration, > I would like to change to calling panic() directly as in v1 instead of sysrq. > > If the administrator wants to request a diagnostic, I think they usually > expect crash with NMI like x86 and take a dump the kernel. It's not common > to handle diagnostic interrupts with sysrq now, so I don't think > it's necessary to make this driver extensible at this time. Ok, fair enough. Matching x86 behavior sounds like a reasonable outcome. If we want to make this configurable in the future, that can still be done then, and it should work the same across architectures but adding the logic in nmi_panic() directly. Arnd