Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1203486pxa; Thu, 13 Aug 2020 03:18:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOFTL1eVbm8UGhx/q/u/p2zU1835OyMIS/uGz+omzSnM3ahIp8hG2HdEh91RmIYUaerzKY X-Received: by 2002:a17:906:2a14:: with SMTP id j20mr3591462eje.376.1597313884633; Thu, 13 Aug 2020 03:18:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597313884; cv=none; d=google.com; s=arc-20160816; b=XkttSliXzX3R1Jh6vNV261Oa/dzWK4xZIDt8cF7KOgCN/icnkM3q3W3RNjPjYUUXqU l1egN/pkGwTTjaXhFZO+C3fZrGM5O81tgjvzUa9c+jX29stS2xNPAKaeXdwCUgpdpfHo wxZ5sVWzHTO3TrB7bUMR3WzcDQUWK41y8zmDzDQrjpvj9DUNul4DQHJt3SGqF15bhwxI 00onW9paOI4pjeLPimW0tf471uMk/OzoeJ/QD+W0y2DXv2y8Ph3pjhP2cf4Zh8Wz0m3w iBg8r0seZLgvxXBSFeaDRZR+VbXjN2cLkwvJmAR8L8TamfTPEEeLQFeIlJb68g38TZ/q MTYg== 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=2Jksw957ApTEUdNh+WJ+SMHxYZwMIbppobCvjvmWoFY=; b=T2DQYRHa0TyBZVg5TSHKSBo0zQdB7TxVqsJtZAFCfOyTNOz6Ubb+oPb44brF8HtdvL 67Oj09G9fdGNF0lOvf0JgUWPAtAXKv8WorQocDrStlowrGfqV0IZX6lVbD/6sfiLYxn4 6jS1MARn3FqevlS8SNmZ4VuPlZrra2xR232QQUWllsgtLOmVKTLm73SK+WIS6fxLWfuc iGsulTPKXUK9WLCmMudAPiv6+Y2Gmu1SPoKtuPGk6GNgle+179F2VZEAagy4LtGCU++L x0AEv+hSlUCCwY6QuaLfU1/hEtEXpmGj6KyItwota/BS39yP+fHktrEv9/PqRRBPwNGn 0lrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QN4Bkr8T; 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 ce15si3397332edb.201.2020.08.13.03.17.40; Thu, 13 Aug 2020 03:18:04 -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=QN4Bkr8T; 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 S1726106AbgHMKRJ (ORCPT + 99 others); Thu, 13 Aug 2020 06:17:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbgHMKRJ (ORCPT ); Thu, 13 Aug 2020 06:17:09 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62589C061383 for ; Thu, 13 Aug 2020 03:17:08 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id f7so4780400wrw.1 for ; Thu, 13 Aug 2020 03:17:08 -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=2Jksw957ApTEUdNh+WJ+SMHxYZwMIbppobCvjvmWoFY=; b=QN4Bkr8TeVYbJBa6MMwSkHdWx/riEzXkTnXVWpsIjsobcal0reicM/9cElmteR8CUR /EeCa6G2bsbzJPjwoeml1DGIKdysExzQTvmpAO3tJxEadzy07Kyl0OrWt34BveGxpbIa pJxzcHfIRsTVkG1AeW+Vxmp4nCikq3LLySOcccSgz2yn7d30CAQsRcq8i01d4yWQ8U80 h3DABNX66w5Kmr8cPnnwVn9nHK2hAjSE335SQ8hbx1k4xN57qxfTqt3H2PwK2waeOFQO zyWA7aeBEYDhqELGCny4UBg58sTufYumo6cRL7pFiNZLNVueGYZunkoYIX1iD90FWO+7 6L0g== 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=2Jksw957ApTEUdNh+WJ+SMHxYZwMIbppobCvjvmWoFY=; b=G99WMczolQRB+Ct803isKs8wUdDcBA4Bt+4ODOJ2vtEd/bp6GUBCNPqs09FthT7NQd 7IVeKSOJljN5Caxon5Ej5x7RxRJMj+ThinVkiUyEpJVHbzKZAvq4rmLjXjcIewp9l1K2 U0FkV4G7uwHaC8yFYLG+Mvm/9L6k7A9RWCM/cqyu1ORzSSi7Rca//yZsNzVrVrJugE92 6kVrhcxMDj3QjGNIaJaQN2QjGKYrLyEHNBIGzc1Q2YOQcSlnpCpmbbQHcwEJO7vt+7+c UTFfv8dNK0o7px5qHCGANBk/DdHvmRAteg6BofjPgwiRf44tR89XRNTpNuvDiuIHTsgb iKpw== X-Gm-Message-State: AOAM530EEbRGWPFUz8yPhBSOeC8X/vvx0ZgKAM/1t3KR3d/HLkSu/IDm B4mXlzm+8xuLpP/YYC5Q+1iNkw== X-Received: by 2002:a5d:51c3:: with SMTP id n3mr3220762wrv.387.1597313826743; Thu, 13 Aug 2020 03:17:06 -0700 (PDT) Received: from holly.lan (82-132-221-219.dab.02.net. [82.132.221.219]) by smtp.gmail.com with ESMTPSA id m1sm8647311wmc.28.2020.08.13.03.17.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Aug 2020 03:17:06 -0700 (PDT) Date: Thu, 13 Aug 2020 11:17:03 +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: <20200813101703.566thqmnc2d7cb3n@holly.lan> References: <1595333413-30052-1-git-send-email-sumit.garg@linaro.org> <20200811135801.GA416071@kroah.com> <20200811145816.GA424033@kroah.com> 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 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. Daniel.