Received: by 2002:a05:6a10:144:0:0:0:0 with SMTP id 4csp425933pxw; Fri, 8 Apr 2022 10:54:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzIBwJi1Eec0UDO2V9KTzMgCBYkzHZdCuQFJxSPD7ErQovcnwXQ66d+s7beqJ1nTq1o51O X-Received: by 2002:a17:906:6a0b:b0:6e8:4062:389a with SMTP id qw11-20020a1709066a0b00b006e84062389amr7470291ejc.530.1649440445181; Fri, 08 Apr 2022 10:54:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649440445; cv=none; d=google.com; s=arc-20160816; b=Z4Canfd2lI28UA0027MPbss21nbSNj8uDbP8deSMB7jblsQNXO0o9oQfdM/3cQIp2z NZYFrwZRGEGJDeRYRzdqO0f5hEdt4mtgVKQmYIGbR0bO7INWXl1h2EkHkCux9bS4hnRB bT+GlfGWUjf/G6I9xs2xnDMzUyuf73K4b1MLNNC4Cql48GFfwn8mSij7uBCoSI96UIyC rlFiOXAHPhEn6CIG1zsNOVxhAd2P9rFeB9QTra010vZAzMxg0Btpxo0JQxWtHrZ4VwUg x+YbG/gSFvWgTsUAWPKsKhPSXjtq65qQa2LJgyiegt657c27xPrgXaDaccszpufpnR/5 lP4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iz+c1WD+2kFnJShyZVo2mhzJoonjpk5NKsWkeEnebGQ=; b=AFf4bpHJlbmMY0/5iZjfeJ47VhfiYn9ZTIK6WVtaGmSuSVzbZdMOR+L167zJfQc8dd IxwS85Voz02QydhuobJ8OEWfnIioz5xYQd5X9eJJVTL8ha+BQyU5hapVH75zyzqJKyNl VtV6zp3kKJWhb/Fu7KZliOStb3qeXpFVp5nT3BYiuc+QY8PCncL1TXpNgrGD3BiANtLd qt86NYPDFPvJOyZUFVzcXzEs6bwYac2IKDD4b2PpSU1hbmJKF3fOXbcukJd9YRFtdVAq EG2gbrJLZ9c8RnKlatdKn4Fn/ZmmsItiEWY70fFJWJhJ5C71kuumb2J8onLVt2yclP0n rOCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y9ibWsey; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o17-20020a056402439100b0041d12ac471bsi1600393edc.6.2022.04.08.10.53.40; Fri, 08 Apr 2022 10:54:05 -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; dkim=pass header.i=@linaro.org header.s=google header.b=y9ibWsey; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237330AbiDHPEN (ORCPT + 99 others); Fri, 8 Apr 2022 11:04:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236468AbiDHPEK (ORCPT ); Fri, 8 Apr 2022 11:04:10 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F39D13BD24B for ; Fri, 8 Apr 2022 08:02:06 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id h16so5698609wmd.0 for ; Fri, 08 Apr 2022 08:02:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=iz+c1WD+2kFnJShyZVo2mhzJoonjpk5NKsWkeEnebGQ=; b=y9ibWseywVkczs7jv5ix8tRuxiKUjgfy4DezaUm/nwfvBNH2KSmqMIZdDbd9Mxvv7Q 7d6lbxe8qJxKshaiQTWrOHkXpVrOESzVp7N88yLH8SVEFx/tMn+C5FvL9SQuW4Ay3+Yg kSi8XOTA4wjkMuNLadheSj28sSDK5z38Ee1DcrcVQbj2Tp4RAw4jX4mO4u8u3PotdWP+ 4rwzqeiKpc/NRLnCjb7gzfPM5Xo+lIiaadoAqFt2SGcXiW6HFApmYmbg1YR/aTboB9b0 pvDHwdri2n3mKhUfpnyIMM/KIZc/KMielcqidnee3d1WMhqUTDnXHyblKRaaoaI47zkA ekMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=iz+c1WD+2kFnJShyZVo2mhzJoonjpk5NKsWkeEnebGQ=; b=gwymdP/guKW0+jJL5WHujgCndZY+htJ1e6FqoafYBt8wIBYdNI8Lqc2N7IJe4j5jf1 M4AWVylGAKJPk/6Pp54MNR0eNkCLPJnmuLVNOI9h9t+ghxxdWZT0HUiC0kVEnK4QLVfF gbDQL1pM52FprRng+MAvVbf1VdUiQkfl3eZewtSl6VaM4CMKP3YxkfdPZojycjAcWbLE eLBmS7+DrUX+OHMM2G63WUVVbRIFzlf7GW6+T9LLPWESlh3VB6hPf1qSu9v66COkRSW+ 8RJwU25S7SLdHV/dGAaxSMFoFcvJqv4vmMLOx9z1MfZLVoCEXdNlMsnJxfR9FcUuSRVt Tp1Q== X-Gm-Message-State: AOAM533z2LdQUrGsrgsx7n2rm+5rKMsRUP59k/S3JcwZCq+USL+ggFCb qUAk0Mg6jAYYfg4utxRKvKOiHQ== X-Received: by 2002:a7b:ce84:0:b0:37c:52fe:a3ff with SMTP id q4-20020a7bce84000000b0037c52fea3ffmr17153661wmj.48.1649430125474; Fri, 08 Apr 2022 08:02:05 -0700 (PDT) Received: from maple.lan (cpc141216-aztw34-2-0-cust174.18-1.cable.virginm.net. [80.7.220.175]) by smtp.gmail.com with ESMTPSA id f13-20020a5d64cd000000b0020787751295sm4287477wri.35.2022.04.08.08.02.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 08:02:04 -0700 (PDT) Date: Fri, 8 Apr 2022 16:02:02 +0100 From: Daniel Thompson To: Arnd Bergmann Cc: Greg KH , Hitomi Hasegawa , 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 Subject: Re: [PATCH v3 1/1] soc: fujitsu: Add A64FX diagnostic interrupt driver Message-ID: <20220408150202.yhn3qppqwm7wzmo3@maple.lan> References: <20220331092235.3000787-1-hasegawa-hitomi@fujitsu.com> <20220331092235.3000787-2-hasegawa-hitomi@fujitsu.com> <20220408133246.fyw5554lgli4olvg@maple.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Fri, Apr 08, 2022 at 04:49:31PM +0200, Arnd Bergmann wrote: > On Fri, Apr 8, 2022 at 4:21 PM Greg KH wrote: > > > > On Fri, Apr 08, 2022 at 04:17:16PM +0200, Arnd Bergmann wrote: > > > On Fri, Apr 8, 2022 at 3:32 PM Daniel Thompson > > > wrote: > > > > On Thu, Mar 31, 2022 at 05:44:55PM +0200, Arnd Bergmann wrote: > > > > > > > > There is some prior art for this sort of feature. AFAICT SGI UV has a > > > > similar mechanism that can send an NMI-with-no-side-channel to the > > > > kernel. The corresponding driver offers a range of actions using a > > > > module parameter: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/x86/platform/uv/uv_nmi.c#n180 > > > > > > > > I don't think a hardcoded 'c' makes any sense. With a hardcoded argument > > > > it is just obfuscation. However it is certainly seems attractive to be > > > > able to reuse handle_sysrq() to provide a more powerful set of actions. > > > > > > How about a module parameter that allows picking a sysrq character then? > > > > Module parameters are so 1990, as this is a platform device, why not get > > it from DT? > > This machine doesn't use DT. I suppose the same could be done with an EFI > variable, but with a module parameter you get the added benefit of having both > a boot time kernel command line argument, and the option to override it at > run time. Pushing the decision on what action to take into firmware (whether that is DT or ACPI) implies that the firmware is well positioned to make a decision. I don't think that is true here. To me, it seems more like an admin choice... and admins are conditioned to use kernel arguments. If these type of diagnostics request were more common then perhaps we'd be looking at a sysctl and call to handle_diagnostic_sysrq(). Daniel.