Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1770034rdb; Wed, 20 Sep 2023 21:16:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHvDzmrsSlSL3TnG0SZ/dUSLnVoKH/8c1q57Ra1uqt9Yn56GpdbtzD/daKrz4DlKJKR+NBN X-Received: by 2002:a17:902:ea04:b0:1bf:4a1f:2b57 with SMTP id s4-20020a170902ea0400b001bf4a1f2b57mr4857068plg.13.1695269816812; Wed, 20 Sep 2023 21:16:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695269816; cv=none; d=google.com; s=arc-20160816; b=eNXR9N2NsluDWJTefhXFp5qdqj1Yb2d7i5ppWZuFS8u1xQNIlbDzMm9/NavYCZ9aL0 1Be2HtBh33hUUGpe3G+nuZ4EeKTNKaGsujy/Rp7AyWFG++jt6FtTO2E6+LY8yAvvi+Ns PM8ONTLBbDw43Hx5gMoodi6PHa7FbZ83RnztmhtfuHOBo8om0djmezwxq8zQnkQ3Vr2w G6l90bQ4Uf1c3ATGN4rgsT3RtLhgGCUa3t0vkiRwYQCABYKUlJ+rr1gmA9hRbtCRLo9t 55vs5RiQUDgHahnwQV/5DPg3l0E5B4Kh5sXtc11PLX4F0ZFwEXhFvugy0NXT0uu5bwdH XQsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=zGsXb59mheAvf0K/E0GO3/Bp/8mZXCu36PHW8K2vlxI=; fh=y4I4qB1vNrXNeB7Ll1DUj/NxPS6wipIJIHame9j9ma4=; b=au9EW0voWAnxPGa5kQuEmWWx0JwgqRydqMWkRuCUuV/JEcrDfOOQDKLSxDeBb7xI1S I2on6SxgBvjgV4ayut5msRahJw5w/dl+bhfwagREjVnPn53r6olJzWe/GO/LALhtkiP3 TtSSktdbGaktJE6VIA9nTFZAEgm4tlYDeaZF8aa4CgbJrAmRDdBRt1HUS7xUm+9zIIIc R4QbOxDYYJKKiNW+b/g7DxHgKNXgGOtVhdDLJAh9f7Z1xLJH05CCO+o3fK1GsKPargsg C6WWsTn+eanMv5XwuoK/SIYdBdTXeACgkSfirpGG47hRR7t7EsThXyo7YQU7ffoaUOsR XMLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4aQW4w2u; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="sO/9/fIS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id o5-20020a170902e00500b001b178baf356si523048plo.95.2023.09.20.21.16.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 21:16:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4aQW4w2u; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="sO/9/fIS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A3BF581C7A81; Wed, 20 Sep 2023 19:12:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229810AbjIUCMg (ORCPT + 99 others); Wed, 20 Sep 2023 22:12:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229730AbjIUCMe (ORCPT ); Wed, 20 Sep 2023 22:12:34 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DA23CF for ; Wed, 20 Sep 2023 19:12:29 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1695262347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=zGsXb59mheAvf0K/E0GO3/Bp/8mZXCu36PHW8K2vlxI=; b=4aQW4w2uUjAKLLA6iOdyat5+SCt1rP/XPruRshfBLZMyyz/uU/1fO/sKn0Irl5vexExvji zJJnqqH3YsCaEuZqb+q4bEntoeYsp1xYDng9TUXHuMJgMTMfwFRQYr0orDJoR/wOxaSCxQ AoDXS9VVwYTCAVBkgzHC0oscSF1EkN3gTvrI4IJ5spFelSSCtqKBiE5aHioWUV3rbdsMim G8Hx+AX1upPFu9TC+vKCdRnyGBt1uygWDZWvmXuu3U+Sw6gdkfvXBk9/i/hKEXRqaJwwRL rQsdgaoFwC32fuD3aCS+8tMgnfJoOEeDaciNMMoH451sm8mhVNiwwuxsXfiCyA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1695262347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=zGsXb59mheAvf0K/E0GO3/Bp/8mZXCu36PHW8K2vlxI=; b=sO/9/fISUk77aPbQ2sgJ2s84yiEHYYsGdaG620hmsx1tZu4FTAjI7ObUu0kwFasGSwfcVv 212YTsmnxSsObHAg== To: Ankur Arora Cc: Linus Torvalds , Peter Zijlstra , Ankur Arora , linux-kernel@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org, akpm@linux-foundation.org, luto@kernel.org, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, willy@infradead.org, mgorman@suse.de, rostedt@goodmis.org, jon.grimm@amd.com, bharata@amd.com, raghavendra.kt@amd.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, jgross@suse.com, andrew.cooper3@citrix.com Subject: Re: [PATCH v2 7/9] sched: define TIF_ALLOW_RESCHED In-Reply-To: <875y44ibow.fsf@oracle.com> References: <20230830184958.2333078-8-ankur.a.arora@oracle.com> <20230908070258.GA19320@noisy.programming.kicks-ass.net> <87zg1v3xxh.fsf@oracle.com> <87edj64rj1.fsf@oracle.com> <87zg1u1h5t.fsf@oracle.com> <20230911150410.GC9098@noisy.programming.kicks-ass.net> <87h6o01w1a.fsf@oracle.com> <20230912082606.GB35261@noisy.programming.kicks-ass.net> <87cyyfxd4k.ffs@tglx> <87led2wdj0.ffs@tglx> <878r90lyai.fsf@oracle.com> <875y44va9t.ffs@tglx> <875y44ibow.fsf@oracle.com> Date: Thu, 21 Sep 2023 04:12:27 +0200 Message-ID: <87r0mstgtw.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 20 Sep 2023 19:12:33 -0700 (PDT) On Wed, Sep 20 2023 at 17:58, Ankur Arora wrote: > Thomas Gleixner writes: >> So no, we don't need yet another knob. We keep them chucking along and >> if they really want they can adopt to the new world order. :) > > Will they chuckle along, or die trying ;)? Either way is fine :) > I grepped for "preempt_enable|preempt_disable" for all the archs and > hexagon and m68k don't seem to do any explicit accounting at all. > (Though, neither do nios2 and openrisc, and both csky and microblaze > only do it in the tlbflush path.) > > arch/hexagon 0 > arch/m68k 0 ... > arch/s390 91 > arch/mips 115 > arch/x86 146 > arch/powerpc 201 > > My concern is given that we preempt on timeslice expiration for all > three preemption models, we could end up preempting at an unsafe > location. As I said in my reply to Linus, that count is not really conclusive. arch/m68k has a count of 0 and supports PREEMPT for the COLDFIRE sub-architecture and I know for sure that at some point in the past PREEMPT_RT was supported on COLDFIRE with minimal changes to the architecture code. That said, I'm pretty sure that quite some of these preempt_disable/enable pairs in arch/* are subject to voodoo programming, but that's a different problem to analyze. > Still, not the most pressing of problems. Exactly :) Thanks, tglx