Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp330096pxa; Fri, 14 Aug 2020 05:40:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWjU5VRQT/W4gsuci2zrAEMr9+PC/AiM3S0RV32Rh7WgvVzMm3t3pG5/hxGho0fIXfhguO X-Received: by 2002:a50:e802:: with SMTP id e2mr1925632edn.129.1597408853137; Fri, 14 Aug 2020 05:40:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597408853; cv=none; d=google.com; s=arc-20160816; b=b5js1+UORfMocRaa7M3E82omwuqiU5UCtHoaXdnh95rY2+l8vbYINdB1I+DhPdhQx3 tewzwhjggkLk6qYO6haHHw/XjecbOWR9i8jVhwHvk4vWeg7sLr6TCNTVr4B4VFOAoyDj nPQT1OnbOOSumw2KLfjCc2BPG27lX1X+yDlvM7FlHhWbD21ka4lzmnbh4tLJOeiF6w4T fVPd789hmt/BFu+VYP2okjKrUe+bd3RRq37JrIBmGx9pkF6neYan1cTP4XH6wKsFfBo2 Z5kM+imNYY4FhoJAwaVA8KRDSWx1sJE9O+oGKkwzlmcT2xycESwHv6gn0xkX0MpWvnEM OjEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=xTYBrkMPYKHND6Y0Pf59epaQl0DOsspR8aK4JTKm68k=; b=TQ9le9exzCbWcETL1+WA40Gk8EzawVS2AMipdL7lufTQH/GfveMnyZKG3tpQSBlvii OL/faZhSea5Pc/vTDp2gO0T/1qwzfU6NRBRWL3038/vNeycc4WQMU0uBqxSWGyO3veIZ +mg5DG2eF8Z3nUZTaR2njSk9mfzUFFA6UdX7Fmv27OwE5QxmQy+m17wwwbMmBaGFODxU 2evVDtDNJAGY9fPfB/3FGTQB36gTDm9a0Kt/iHuaC14TFDihtuUH1lt3zM4OA0hGhVt0 +4ZjC28gq0UifvLX2moS3SThAwGMTUzZTvcitk7THEXsRXPQZdEfzjwuufx1cjRHpz26 PjwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rCN61g45; 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 m7si4985174edq.314.2020.08.14.05.40.30; Fri, 14 Aug 2020 05:40:53 -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=rCN61g45; 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 S1728018AbgHNMGv (ORCPT + 99 others); Fri, 14 Aug 2020 08:06:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726185AbgHNMGu (ORCPT ); Fri, 14 Aug 2020 08:06:50 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0E6AC061384 for ; Fri, 14 Aug 2020 05:06:49 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id v4so9710067ljd.0 for ; Fri, 14 Aug 2020 05:06:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xTYBrkMPYKHND6Y0Pf59epaQl0DOsspR8aK4JTKm68k=; b=rCN61g45Uj5RAeXU3ZrO9R56Wpm3Zvr8GekOvDvvz4aIZohZJYliwqW0KKfipQpjm3 dfRAg7XvqBHvcBi737ixXx66TqbFyytmlFrdedZGT5Qv1vO81xuIqjq1ioezmWC/I+Xr GM/P4FLNaWnPV4nY8mmekeRA4CDISmoug8hYnFLSrH+ol+7od7RmQMNLXzGYH3ODgCFE tqR0bEdTscFbskdo6XQxyrUOwv4glcS592tDiVgA/y8iQ+vS875dbPGxMPpoZjFi7oh1 A112kq6ZPpG25ilSPSbHbbb2o8QnxfLsFyohMMGo3mwJmvn71xxuVV8GdGECB7M6GsxN qsgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xTYBrkMPYKHND6Y0Pf59epaQl0DOsspR8aK4JTKm68k=; b=j75nOd3h/tKJXFLBGOcCpttiGv2sIC9ut+KoG7LhleK7RqxkWHPoMuK1f4c7CSE4dr 24CxDvXEYy7GKp/KzjhcScLhWs1l4EjAVIUj91Gbe3aGHUwozuu8TmLmUa3yujBVllnp svQ9zSNIsfi9qlFaADPASSzBCYIrPMvRwwC9Ju0OXUO2LE6GcLZltZGmtJVSXgGiQac3 q20E6oH+paoqsvW8+PYeE/BBM834at44K4KA5tFCCyQpaRdgTcHwTxlSSaZLXRHuM+cm yiTsJvahCz2Cl1c8sM8mG0BbMuODWfrNle6bZb1AGg1GBDx7rr440R7tYfXxMwn53/Nh ZJQg== X-Gm-Message-State: AOAM532AjartTJN9ZRcIBahu1qO/dTJNaK/+Q6DYUpxEES+1EXsN5y6i vcRsSzQE7+yczRabZJ44Uyi2gCOQQA3ZSP/HVgFVeA== X-Received: by 2002:a2e:3202:: with SMTP id y2mr1253902ljy.30.1597406808381; Fri, 14 Aug 2020 05:06:48 -0700 (PDT) MIME-Version: 1.0 References: <1595333413-30052-1-git-send-email-sumit.garg@linaro.org> <20200811135801.GA416071@kroah.com> <20200811145816.GA424033@kroah.com> <20200813101703.566thqmnc2d7cb3n@holly.lan> In-Reply-To: <20200813101703.566thqmnc2d7cb3n@holly.lan> From: Sumit Garg Date: Fri, 14 Aug 2020 17:36:36 +0530 Message-ID: Subject: Re: [RFC 0/5] Introduce NMI aware serial drivers To: Daniel Thompson 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -Sumit > > Daniel.