Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp423285pxa; Fri, 14 Aug 2020 07:52:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpT3xUqiLQ1RoUFoPwmkWAnRH5FA1Si+iZoU7f+/Zz9wG8yLUikOmrlTX4ooWgh6pXECNK X-Received: by 2002:a50:f10c:: with SMTP id w12mr2634835edl.202.1597416777808; Fri, 14 Aug 2020 07:52:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597416777; cv=none; d=google.com; s=arc-20160816; b=BoYIBmed+3COxWyVYXHiWwNtgsIWPKYsm2rmlvHJShOyx4NR+Oi18AdB04lLbkQPi8 9uNDlsZktu5WaIZK2US1s2eYJSe62lamhdfbJKZhDcUcHd7FVG1qYLeXFALuJjyCpFgW if+z7VF9fiaOWHIGWbLs8FIeEAHTDDlQSFZwzodVWAzO6OG4io9PM1D3Tc7ts9Nl9zMY 5/5FolMEdKI5hEqKyGSmSG150/pqmDBi6AsxZP3L74H0ns4GLUH2vPbLdQL1ZSlJl1/K y0q4E+tSvfBfgh5ZK6mhU09zapYQBBfOk0sjXa7+6OQsTodb+Wchfy9hVlB22nIltPVH jDgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=bfiTvnSbLLzZZvj+Mn4ylpurNrOXymT6DZIfnlv7XiA=; b=g99rIcZChR1NZ5vI0h+LOxmiiuMR+yedNXEYx165bfr5p7Seg+ixaP1qdiubuIHl6k OGi07T+1ikyA6oPNnFEYPWIk8D3EyjG0o76yEhhkBkPHSk5UO+jNZ0dkkbj01h+bC4rI Jtrf7ON/YBtMQT2frmsXuo0ZTwdOGN+zOPbd7UNMERiTJQcuYOjJetb4r32C19Ulq1Eb ERoM2VFrjfcGuo7wDzAoud+CsUrqYhCcGV7cXxKg7CSqRMHp+i6r1KFgqmyI3PSB5odg g1Ny7PfPYzufflFuNaugNj/WUcbajVxf5jNIAz2WOTpyGyj+w0ayzsfRXGlXMJXTvJU3 ATUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p42wFVUc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bd9si5469468edb.340.2020.08.14.07.52.35; Fri, 14 Aug 2020 07:52:57 -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; dkim=pass header.i=@linaro.org header.s=google header.b=p42wFVUc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728617AbgHNOS3 (ORCPT + 99 others); Fri, 14 Aug 2020 10:18:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727964AbgHNOS1 (ORCPT ); Fri, 14 Aug 2020 10:18:27 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD35FC061384 for ; Fri, 14 Aug 2020 07:18:26 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id g75so8057177wme.4 for ; Fri, 14 Aug 2020 07:18:26 -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=bfiTvnSbLLzZZvj+Mn4ylpurNrOXymT6DZIfnlv7XiA=; b=p42wFVUcVKu014Mhy9uhACdRHC5jy9uVKINioDebtvReEPqdZMzjXhnl3mEvKv0eT/ XVRVTESOZtd9Vv3IuAinZiGvcAk/7PsKj9NR7dB+VYfB5GXIfaNiGa6F1OAzFUhNUcAQ Uz65kxFaHXRxP4eQ4XNuWvrTQIULuiRV0xT+PYSdKCukeKKgYmHjdMrUowjK9KhuZh7H mos4ncQ7btSiCiMPKCwTNnWj/rR0ekWaXObsDyojZiAtBD4R6r8TNw7PV2L5XEXi11+J 1VoxwtOPDnMqCLyN1rt01thIRPQ8stN3RCgkc5N8DQVK+O9Msz6HCN//HPQ1EM14aODx gNwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=bfiTvnSbLLzZZvj+Mn4ylpurNrOXymT6DZIfnlv7XiA=; b=m7DrXJhV4Jo6N88U9aIwKw9Cj3M6ZfRC6YIZxyHBTQYQbgPu10+HsXeGIXXEvxOm1+ ZLXmryZdZrq6gtovQiXWlZQhyEjKUXvexFxGIUy1jj9FrsoezDgZKD2ErAUSVLeqhyRv oi85dVmbPLH4NN/811jqgsNwojn0CetXTOep3SFxra9VAcP1Dgzp5dU2xjuqbxN04Xes bXREty2eymLC5509xBfHIHp2ZG5jALBDNyXPMVRF62VXbgjk48day9Mwjmj0QYNAfgEU uQ/Lqg/ke35TPdggXOH7toxcDQ/y6YLrh4nXC15yCAMmJSNthRdQ34mpBGRzbltmDIWX tV9g== X-Gm-Message-State: AOAM531lyOBeZGWZqKJ1zzEYZZKp+ptF7swKVhsKDnJH4fiKB3IQO185 XuXHvNU3r9wx5iIdUcGq/YMxHw== X-Received: by 2002:a05:600c:25cc:: with SMTP id 12mr2720135wml.120.1597414705416; Fri, 14 Aug 2020 07:18:25 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id o2sm15227863wrj.21.2020.08.14.07.18.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Aug 2020 07:18:24 -0700 (PDT) Date: Fri, 14 Aug 2020 15:18:22 +0100 From: Daniel Thompson To: Sumit Garg Cc: Doug Anderson , Greg Kroah-Hartman , linux-serial@vger.kernel.org, kgdb-bugreport@lists.sourceforge.net, Jiri Slaby , Russell King - ARM Linux admin , Jason Wessel , Linux Kernel Mailing List , linux-arm-kernel Subject: Re: [RFC 0/5] Introduce NMI aware serial drivers Message-ID: <20200814141822.opahh33nfc5yodkb@holly.lan> References: <20200811135801.GA416071@kroah.com> <20200811145816.GA424033@kroah.com> <20200813101703.566thqmnc2d7cb3n@holly.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 14, 2020 at 05:36:36PM +0530, Sumit Garg wrote: > On Thu, 13 Aug 2020 at 15:47, Daniel Thompson > wrote: > > > > On Thu, Aug 13, 2020 at 02:55:12PM +0530, Sumit Garg wrote: > > > On Thu, 13 Aug 2020 at 05:38, Doug Anderson wrote: > > > > On Wed, Aug 12, 2020 at 8:27 AM Doug Anderson wrote: > > > > > One > > > > > last worry is that I assume that most people testing (and even > > > > > automated testing labs) will either always enable NMI or won't enable > > > > > NMI. That means that everyone will be only testing one codepath or > > > > > the other and (given the complexity) the non-tested codepath will > > > > > break. > > > > > > > > > > > The current patch-set only makes this NMI to work when debugger (kgdb) > > > is enabled which I think is mostly suitable for development > > > environments. So most people testing will involve existing IRQ mode > > > only. > > > > > > However, it's very much possible to make NMI mode as default for a > > > particular serial driver if the underlying irqchip supports it but it > > > depends if we really see any production level usage of NMI debug > > > feature. > > > > The effect of this patch is not to make kgdb work from NMI it is to make > > (some) SysRqs work from NMI. I think that only allowing it to deploy for > > kgdb users is a mistake. > > > > Having it deploy automatically for kgdb users might be OK but it seems > > sensible to make this feature available for other users too. > > I think I wasn't clear enough in my prior reply. Actually I meant to > say that this patch-set enables NMI support for a particular serial > driver via ".poll_init()" interface and the only current user of that > interface is kgdb. > > So if there are other users interested in this feature, they can use > ".poll_init()" interface as well to enable it. Huh? We appear to speaking interchangably about users (people who sit in front of the machine and want a stack trace) and sub-systems ;-). I don't think other SysRq commands have quite such a direct relationship between the sub-system and the sysrq command. For example who are you expecting to call .poll_init() if a user wants to use the SysRq to provoke a stack trace? Daniel.