Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1206788rwi; Thu, 20 Oct 2022 09:48:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4rPewIkQ77+eLr/gKYIvXVcuhF7bePQMBiX9Tq6SevW8Z+PqE2neIhrsl2uJUdaYOMDFru X-Received: by 2002:a17:907:5ce:b0:730:bae0:deb with SMTP id wg14-20020a17090705ce00b00730bae00debmr12090387ejb.181.1666284495790; Thu, 20 Oct 2022 09:48:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666284495; cv=none; d=google.com; s=arc-20160816; b=LvfEm0y5WsjSFN3xe8Cw2hiZXRyLDr5uvmwY1uiVAncbNQbb18IYwSlnc9aSoQYWl4 AkhdpTiupruRcEirds/UsT5D9RsmsxMOnmNgEjGlQmm+qkCdJxu3qINsxWKFQLA0oPZP jzGi5XYyqBKQwz4geIy5ZkopKNZkCzRCCfb2XasVUrUOe2Iq7ZvPDdOwidaMjr1V/dL9 8I5eSRO0tZAdasNvPN+559My6qJpcpb7T/i5VJlKqj7C2HGZ1VMjazCYQh3P1YL1QAZh LvXCTde3xR4KkYafsptZ9t+AgHrGFT2VJxsfJNch8Ud4EcvtbMbBYw58rOJqJeqViU0e myeg== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=WSz7bxOZTML+z5mFAZGboNl3q5jSVn+CDV3zgIWw11s=; b=grH8uviae5dHrR6sRd4fvuriR8SawWQzBpwC9oX4s41fLOVPE7ZdHN+VgIOFFmZxSW jx0CxCYUdg193Bodp+fczUajM7NAVnEk5r4ECTykyInuRR1ArNEgaDYLPrRrACAt5tAm 44gwL06W6ja/v21fV862aQ4Ti3DOvausFmz6nnY06wcfs058ScbolWhbK2W6lnWjvQJr tq3ldBFvYbbbq5L1CqtEqkQdfVsDXPqSDmJSJ1ZR+VYzadH/sPAsK5alOehheCLu65+J Iri6lKHpeslsfycPA7ZY+moV4i2R8e2Iw2DB8P56vHGy0+fmocXFdhYzEFwQJWcnk+xA zGmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="JJgVs/jK"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs7-20020a1709072d0700b0078c5f3569aesi21205719ejc.69.2022.10.20.09.47.50; Thu, 20 Oct 2022 09:48:15 -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=@kernel.org header.s=k20201202 header.b="JJgVs/jK"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230099AbiJTQfY (ORCPT + 99 others); Thu, 20 Oct 2022 12:35:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230139AbiJTQfU (ORCPT ); Thu, 20 Oct 2022 12:35:20 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 631EA12A346; Thu, 20 Oct 2022 09:35:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D9D47B826C4; Thu, 20 Oct 2022 16:35:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84C10C433D6; Thu, 20 Oct 2022 16:35:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666283703; bh=1D50o0naBc2gRDAfGm82dEQ7o6F3FtNqy0eWFByAG7M=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=JJgVs/jKQbha1MJ/tMXRUd38n/8JTRLH+incUHDo585lwYHRAA6HCxLmU+XWNsA/P O9MlU3/sW93OUer5A0lh61+uX7y8HzkYAF8X28Ezi7qmmCT4HeR69+NZTS+sG2RrPq 7ZodZ5+qo3R0IA7QIDDqBAG9ALtgH2uCX67JwZpuYFoiKJheECrHlbMzkPvQHtQ+6o jNUoIBkKzkJA4jxIcJIsk+y4y24gDDvqAB/nYS6s/K8sXFCvveK6esE89jutTyMAEQ RWEDcP5BEzU16xhGxoY+WMA1JnzrfSi7lp/2n+YOyug/biSIVB5xVkIFLy0tMS4nbg Te8MCGbG6KCjg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 2BF0C5C04D0; Thu, 20 Oct 2022 09:35:03 -0700 (PDT) Date: Thu, 20 Oct 2022 09:35:03 -0700 From: "Paul E. McKenney" To: Heiko Carstens Cc: Christian Borntraeger , rcu@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, rostedt@goodmis.org, Neeraj Upadhyay , Frederic Weisbecker , Boqun Feng , Vasily Gorbik , Alexander Gordeev , Sven Schnelle , Thomas Gleixner , John Ogness , Petr Mladek , linux-s390@vger.kernel.org Subject: Re: [PATCH v3 rcu 08/11] arch/s390: Add ARCH_HAS_NMI_SAFE_THIS_CPU_OPS Kconfig option Message-ID: <20221020163503.GQ5600@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20221019225838.GA2500612@paulmck-ThinkPad-P17-Gen-1> <20221019225846.2501109-8-paulmck@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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, Oct 20, 2022 at 09:27:37AM +0200, Heiko Carstens wrote: > On Thu, Oct 20, 2022 at 09:23:49AM +0200, Heiko Carstens wrote: > > On Thu, Oct 20, 2022 at 07:16:44AM +0200, Christian Borntraeger wrote: > > > Am 20.10.22 um 00:58 schrieb Paul E. McKenney: > > > > The s390 architecture uses either a cmpxchg loop (old systems) > > > > or the laa add-to-memory instruction (new systems) to implement > > > > this_cpu_add(), both of which are NMI safe. This means that the old > > > > and more-efficient srcu_read_lock() may be used in NMI context, without > > > > the need for srcu_read_lock_nmisafe(). Therefore, add the new Kconfig > > > > option ARCH_HAS_NMI_SAFE_THIS_CPU_OPS to arch/arm64/Kconfig, which will > > > s390 ? > > Ah, this typo is what Christian pointed out; missed that. > > > > > cause NEED_SRCU_NMI_SAFE to be deselected, thus preserving the current > > > > srcu_read_lock() behavior. > > > > > > > > Link: https://lore.kernel.org/all/20220910221947.171557773@linutronix.de/ > > > > > > > > Suggested-by: Neeraj Upadhyay > > > > Suggested-by: Frederic Weisbecker > > > > Suggested-by: Boqun Feng > > > > Signed-off-by: Paul E. McKenney > > ... > > > > --- > > > > arch/s390/Kconfig | 1 + > > > > 1 file changed, 1 insertion(+) > > > > Not sure what Christian was trying to say with his empty reply :) > > In any case: > > Acked-by: Heiko Carstens I will apply the fix and the ack on my next rebase, thank you both! Thanx, Paul