From patchwork Tue Nov 19 15:34:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentin Schneider X-Patchwork-Id: 13880131 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34407D44167 for ; Tue, 19 Nov 2024 15:37:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BE1186B00B0; Tue, 19 Nov 2024 10:37:22 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B91266B00B3; Tue, 19 Nov 2024 10:37:22 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A322B6B00B5; Tue, 19 Nov 2024 10:37:22 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 854036B00B0 for ; Tue, 19 Nov 2024 10:37:22 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 3DC27805DA for ; Tue, 19 Nov 2024 15:37:22 +0000 (UTC) X-FDA: 82803246120.03.C12783B Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf25.hostedemail.com (Postfix) with ESMTP id 0EB65A0013 for ; Tue, 19 Nov 2024 15:36:43 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=OMSwBOYk; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf25.hostedemail.com: domain of vschneid@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=vschneid@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1732030505; a=rsa-sha256; cv=none; b=gEkG7w2gFScYfSqmFoYZn0fvs3oa82vQhe7rmKur/+OZwBtq2nmm1zdvQbmUwu8pqymoso +tIO4itfDyAcQl5CaItWLoFUWnZbABE7kKUlTMUinSIc8JG/UGa4QqmOgZoOC6DTcyq6L5 WlWbgDJ4TbOAsmzdTQMHtK8ZwlJEq3c= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=OMSwBOYk; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf25.hostedemail.com: domain of vschneid@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=vschneid@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1732030505; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=VTrWPsFjEj6kjl2SR0Q+Shqo2M3AIl3ViwWNRJPCXGk=; b=3rb1ApY/8g14tgVLMuVSS4lEUGRKho4JCaUW1B0e8gnTqE4BrGO4xQ3RZ/LPdSMSK8UY2Z UgoeEMNncTowCcW8glnX/2TKt55YTfVqlSZLKxEkyd1jdo/rL/kGvKAon88NQIwLLUXLQp 1YJB8ZGi7siMyLlyWCm1/Sx1Y3Ucoh8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1732030639; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VTrWPsFjEj6kjl2SR0Q+Shqo2M3AIl3ViwWNRJPCXGk=; b=OMSwBOYk9UfBrO+N24YsN89XVkIiEHAnH43u1SXAgwCtIKiKk75/rnyY/0+VZ9SIZVc0EZ N3VxTThDQaSFegferOI/ggk3ZN4QfzjC/Ep38e5GxQ/SKhP35ZhTfMaV/NHU9GYsSFKIvo RTtzJqlBTfIDpESsAUTqnOrJ3LdDJ2k= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-240-1AlVl6ygNXGoWGme969LHQ-1; Tue, 19 Nov 2024 10:37:17 -0500 X-MC-Unique: 1AlVl6ygNXGoWGme969LHQ-1 X-Mimecast-MFC-AGG-ID: 1AlVl6ygNXGoWGme969LHQ Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 188B01955DC3; Tue, 19 Nov 2024 15:37:12 +0000 (UTC) Received: from vschneid-thinkpadt14sgen2i.remote.csb (unknown [10.39.194.94]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3D90930001A2; Tue, 19 Nov 2024 15:36:57 +0000 (UTC) From: Valentin Schneider To: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kvm@vger.kernel.org, linux-mm@kvack.org, bpf@vger.kernel.org, x86@kernel.org, rcu@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: "Paul E . McKenney" , Steven Rostedt , Masami Hiramatsu , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Paolo Bonzini , Wanpeng Li , Vitaly Kuznetsov , Andy Lutomirski , Peter Zijlstra , Frederic Weisbecker , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Mathieu Desnoyers , Lai Jiangshan , Zqiang , Andrew Morton , Uladzislau Rezki , Christoph Hellwig , Lorenzo Stoakes , Josh Poimboeuf , Jason Baron , Kees Cook , Sami Tolvanen , Ard Biesheuvel , Nicholas Piggin , Juerg Haefliger , Nicolas Saenz Julienne , "Kirill A. Shutemov" , Nadav Amit , Dan Carpenter , Chuang Wang , Yang Jihong , Petr Mladek , "Jason A. Donenfeld" , Song Liu , Julian Pidancet , Tom Lendacky , Dionna Glaze , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Juri Lelli , Marcelo Tosatti , Yair Podemsky , Daniel Wagner , Petr Tesarik Subject: [RFC PATCH v3 05/15] rcutorture: Make TREE04 use CONFIG_RCU_DYNTICKS_TORTURE Date: Tue, 19 Nov 2024 16:34:52 +0100 Message-ID: <20241119153502.41361-6-vschneid@redhat.com> In-Reply-To: <20241119153502.41361-1-vschneid@redhat.com> References: <20241119153502.41361-1-vschneid@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Rspamd-Queue-Id: 0EB65A0013 X-Stat-Signature: suexrjt9cocosiscpewcojkegahkn3jm X-Rspam-User: X-Rspamd-Server: rspam05 X-HE-Tag: 1732030603-572264 X-HE-Meta: U2FsdGVkX186hKnnaH6a4DCdedBR63O8/uZIiD10nAP9kM+eMIUmXmxzp3x16xh/IoZjOwL6p7s2arHufRrWkdGISlFYd88UFC/1U6n/hoap2ZI2Cg9PlucHfn+ez5jBIeE1lvaSdrOr0jI20WoiU+XtctJ/UNUe1LxaUz6rlRmQnimWTBfsLdOZboDEBi09O6kVtjtn2jVs3P1ZAHs9ImCqhxOABTc0tFpJQVDo/hEQR6B6sTWx34rHPA35y6siQosTNQT2NIPQ0zFqdibY0mqpkUMIoGCejyNvDvK9AGhyvCC077oRlPQftEU5Sx3z8ydWy+FoncPz97SGCQLSF7/kmH93Kk9514N8sNrVwhtKUYi48k0uIqsSvCpefnqm8QxFe26+AovIgqd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kfnl0h3cgxOg= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: We now have an RCU_EXPERT config for testing small-sized RCU dynticks counter: CONFIG_RCU_DYNTICKS_TORTURE. Modify scenario TREE04 to exercise to use this config in order to test a ridiculously small counter (2 bits). Link: http://lore.kernel.org/r/4c2cb573-168f-4806-b1d9-164e8276e66a@paulmck-laptop Suggested-by: Paul E. McKenney Signed-off-by: Valentin Schneider --- tools/testing/selftests/rcutorture/configs/rcu/TREE04 | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/rcutorture/configs/rcu/TREE04 b/tools/testing/selftests/rcutorture/configs/rcu/TREE04 index dc4985064b3ad..67caf4276bb01 100644 --- a/tools/testing/selftests/rcutorture/configs/rcu/TREE04 +++ b/tools/testing/selftests/rcutorture/configs/rcu/TREE04 @@ -16,3 +16,4 @@ CONFIG_DEBUG_OBJECTS_RCU_HEAD=n CONFIG_RCU_EXPERT=y CONFIG_RCU_EQS_DEBUG=y CONFIG_RCU_LAZY=y +CONFIG_RCU_DYNTICKS_TORTURE=y