Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6839427rwb; Wed, 18 Jan 2023 10:00:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXtr1uPJPmKaDGjSEk2ykUlGwsqeT1zFxlRoYhHcdy/PMb1b7HdjUaZDTjeXecTUiZUtjLHN X-Received: by 2002:a05:6402:159:b0:49d:a87f:ba7b with SMTP id s25-20020a056402015900b0049da87fba7bmr7698656edu.39.1674064837472; Wed, 18 Jan 2023 10:00:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674064837; cv=none; d=google.com; s=arc-20160816; b=Sg7ZOD2weJYkCLT0fJWZLo77f52kkXAAKYtiRtbhTAWw8o8qrOI8RZOa/VwJ6W8xTS aKTUPdkgf3smnsFFCoJ2xSwmq/wuOzyzRDqBcXhZ0ivELxy7TNms3IpQCZnTnxww+6/W Bxfj6Ku5oCpKERDsnwH8DuJfD6I5lxUDmN/6axRCNOv0ie/+Uyzhn08q5IW5kt3oTdNd IPpzdZBUNnBJdnyYsKGODKSo3Uhp3j/rI6cx3KtRVVne3ig8uJjy7s/Y7wyY1Vna2KUO NqiydQurhDroLE0UaFce03yCDUZRx4nQj/MbXa36Utjs/5EEUsJChYy+afdeF3ZNsLrb 1Vfw== 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=EjtdV+cI+AiNyTXnoE9asMJrHJYmUvfnI/kba3eAcOk=; b=nlaA5VlJhohawR8rzCf1ujntTI0E9dH/+3uP9ZiRNQCkZ2GfffOT7l1hD6hsCqkEeo TWbvp5bp3P7Qo5iCBoMco2JoMorH37s8tdPSBZPlGqqkISbp+EKTGLTdshwMhP25dMyy H1wz3HB+wPLuZBuI4Az934gwdA9G2xoVnoprUq9y7B+0LFIKddFgxeUSvNiEZk0RqaTH 9VZcEKKY1WChTtovcCFXsukG7oQcH78gtULgs004WKtXw6vmKhdwiu27MJ/m8YQTOf03 tzJ+TAxbw5t7TcE1YPCMga4Z31YfYbsVztWrVTsHZFVPwkX1Rl5D268ofHXtga8FVfdB lAbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HTwW1H2W; 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 fj5-20020a0564022b8500b004607378ae65si27878184edb.160.2023.01.18.10.00.25; Wed, 18 Jan 2023 10:00:37 -0800 (PST) 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=HTwW1H2W; 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 S230114AbjARRnM (ORCPT + 45 others); Wed, 18 Jan 2023 12:43:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231311AbjARRma (ORCPT ); Wed, 18 Jan 2023 12:42:30 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13B97589A5 for ; Wed, 18 Jan 2023 09:41:42 -0800 (PST) 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 B9E1FB81E16 for ; Wed, 18 Jan 2023 17:41:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4EC10C433F0; Wed, 18 Jan 2023 17:41:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674063699; bh=U8QLPf7lyWvHcZUi3WnXi8fbXM4xhuvGnUqsEPVpr+U=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=HTwW1H2WVldVV/MJzRubBzfn1R+hvi+5wdZN+6y1TShC0IiZY1IsmiCrfDs8R7ek8 Zq/W2DHzaZGMwIKV3tzxHgGo0pEcGHsugW3/grz8glzAAOAh1aWOQlXqDL8GhS9ZIA NRaSlrsYHo+Sx8kFrZ1Aq1ZTf7gPAF1vQKcosomiyyN3Ej/MndrGTGIDl01zXWKzw8 8H69VU0rEdlVlbZfNW16fPaDOoWwZoarWbLaU2Ruqwb3q2UZO8vh554B7B/pKKejAq L7figMQaTH4z05diq+LAvHRCpNgDMNywlZkOYvjzFZEY7XjHtojPGHx9EA7Et8rCk7 jLdROjT2h/MCg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id F27D55C05FB; Wed, 18 Jan 2023 09:41:38 -0800 (PST) Date: Wed, 18 Jan 2023 09:41:38 -0800 From: "Paul E. McKenney" To: Alan Stern Cc: Andrea Parri , Jonas Oberhauser , Peter Zijlstra , will , "boqun.feng" , npiggin , dhowells , "j.alglave" , "luc.maranget" , akiyks , dlustig , joel , urezki , quic_neeraju , frederic , Kernel development list Subject: Re: Internal vs. external barriers (was: Re: Interesting LKMM litmus test) Message-ID: <20230118174138.GB2948950@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20230116190652.GZ2948950@paulmck-ThinkPad-P17-Gen-1> <20230116221357.GA2948950@paulmck-ThinkPad-P17-Gen-1> <20230117151416.GI2948950@paulmck-ThinkPad-P17-Gen-1> <20230117174308.GK2948950@paulmck-ThinkPad-P17-Gen-1> <20230118051704.GX2948950@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 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 Wed, Jan 18, 2023 at 11:03:35AM -0500, Alan Stern wrote: > On Tue, Jan 17, 2023 at 09:17:04PM -0800, Paul E. McKenney wrote: > > On Tue, Jan 17, 2023 at 09:15:15PM -0500, Alan Stern wrote: > > > Maybe we don't. Please test the patch below; I think it will do what > > > you want -- and it doesn't rule out nesting. > > > > It works like a champ on manual/kernel/C-srcu*.litmus in the litmus > > repository on github, good show and thank you!!! > > > > I will make more tests, and am checking this against the rest of the > > litmus tests in the repo, but in the meantime would you be willing to > > have me add your Signed-off-by? > > I'll email a real patch submission in the not-too-distant future, > assuming you don't find any problems with the new code. Sounds good! The current state is that last night's testing found a difference only for C-srcu-nest-5.litmus, in which case your version gives the correct answer and mainline is wrong. There were a couple of broken tests, which I fixed and a test involving spin_unlock_wait(), which is at this point perma-broken due to the Linux kernel no longer having such a thing. (Other than its re-introduction into i915, but they define it as a spin_lock_irq() followed by a spin_unlock_irq(), so why worry?) There were also a few timeouts. I intend to run the longer tests overnight. I have not yet come up with a good heuristic to auto-classify automatically generated tests involving SRCU, so I cannot justify making you wait on me to get my act together on that. Thanx, Paul