Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp817602rdb; Tue, 19 Sep 2023 10:59:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHrl7XACoPOwij7Dt90hWDvpmIfsxJRr905F9p3CRVcgnWZ/rxxd6SIUgqn82kmosuXRdVV X-Received: by 2002:a05:6a00:1954:b0:690:c5cf:91f4 with SMTP id s20-20020a056a00195400b00690c5cf91f4mr504041pfk.12.1695146343499; Tue, 19 Sep 2023 10:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695146343; cv=none; d=google.com; s=arc-20160816; b=qnFflgzhHoTbf5NiKyXHpWEe2AbZ0eHBLKYB7d8L+d07Kk0MA1mXaMmKWeALwVcmfB KGus/DhT6h/uroRwBggLYnNSHumwg5Fa8xXPnv08MfMokU/9hMIVvt81hhOHANOeuKCM J7DVmHXGbyjH/t2aS00xxvovGMBNnjXdopWe1X11C5aqKJbBVhLQ61QoXxlNgUDrfTH4 UH+ujh54mv59qC6YmJa735XnYLYjOOWD2uN/3DyJFFR2tU/sujKQPBq0ScWsvCBwiHMi sLGtABJ/2/7qmf22KxqhndyD5Cwn2tO+wHWwKZmgcZ5Bpw35tBV+bhH9lN1681+YuMJI 0GkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=KREyUXaYlVkugvP7MiTt626LQYoG1bVZyXqaLsudWX4=; fh=lGIVjg27IvCmA/RE9sjH5DxoOngT5K05Qq7ZMi+8U2w=; b=V9YemI1boF3mbtq8b2hK6HXvR+Odk8tDZhpssD3Z6kgQxx8D1mNIYRfgT8+sF/BcDj rNSIo7IO0OhTedzv3YcZDh5JB+282AHRiDV/TAhTgfNFsdUE851oPBt4mm0SEDRbCHTO UMiBGTUC62Fz9AvhKt1nqGzxVNdHH7/Ws+ZkEGELgE+XC2g+4s3Ou2DhNc0YHLhx7qLt T1ChQxDLLmB3zEHWcHdNDh1BGzBW2KwWfCYSQtuF3UAhXbg7Fe8+9SCxbb17LqNRx7F7 8O21qC5o+x2mdXqwaoRj/JCb9S+oSaYrpXp/sVLGXfEJZXAHvK+FLUyAuI2eAxF7FXGv sdgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id eb20-20020a056a004c9400b00690c94b4cd1si1189950pfb.291.2023.09.19.10.59.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 10:59:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 43E868258307; Tue, 19 Sep 2023 10:59:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232922AbjISR6w convert rfc822-to-8bit (ORCPT + 99 others); Tue, 19 Sep 2023 13:58:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232584AbjISR6u (ORCPT ); Tue, 19 Sep 2023 13:58:50 -0400 Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB2FD8F; Tue, 19 Sep 2023 10:58:44 -0700 (PDT) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.95) with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qieza-002CLX-Et; Tue, 19 Sep 2023 19:58:34 +0200 Received: from p5b13a40a.dip0.t-ipconnect.de ([91.19.164.10] helo=suse-laptop.fritz.box) by inpost2.zedat.fu-berlin.de (Exim 4.95) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qieza-002eoT-1f; Tue, 19 Sep 2023 19:58:34 +0200 Message-ID: <64746d98b60f1677cecd26501511f140688801e1.camel@physik.fu-berlin.de> Subject: Re: Arches that don't support PREEMPT From: John Paul Adrian Glaubitz To: Linus Torvalds Cc: Peter Zijlstra , Matthew Wilcox , Thomas Gleixner , 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, 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, Geert Uytterhoeven , linux-m68k@lists.linux-m68k.org, Richard Weinberger , Anton Ivanov , Johannes Berg , linux-um@lists.infradead.org, Brian Cain , linux-hexagon@vger.kernel.org, Richard Henderson , Ivan Kokshaysky , Matt Turner , linux-alpha@vger.kernel.org Date: Tue, 19 Sep 2023 19:58:31 +0200 In-Reply-To: References: <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> <0e69f7df80dc5878071deb0d80938138d19de1d1.camel@physik.fu-berlin.de> <20230919134218.GA39281@noisy.programming.kicks-ass.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 91.19.164.10 X-ZEDAT-Hint: PO X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Tue, 19 Sep 2023 10:59:01 -0700 (PDT) Hi Linus! On Tue, 2023-09-19 at 10:25 -0700, Linus Torvalds wrote: > On Tue, 19 Sept 2023 at 06:48, John Paul Adrian Glaubitz > wrote: > > > > As Geert poined out, I'm not seeing anything particular problematic with the > > architectures lacking CONFIG_PREEMPT at the moment. This seems to be more > > something about organizing KConfig files. > > It can definitely be problematic. > > Not the Kconfig file part, and not the preempt count part itself. > > But the fact that it has never been used and tested means that there > might be tons of "this architecture code knows it's not preemptible, > because this architecture doesn't support preemption". > > So you may have basic architecture code that simply doesn't have the > "preempt_disable()/enable()" pairs that it needs. > > PeterZ mentioned the generic entry code, which does this for the entry > path. But it actually goes much deeper: just do a > > git grep preempt_disable arch/x86/kernel > > and then do the same for some other architectures. > > Looking at alpha, for example, there *are* hits for it, so at least > some of the code there clearly *tries* to do it. But does it cover all > the required parts? If it's never been tested, I'd be surprised if > it's all just ready to go. Thanks for the detailed explanation. > I do think we'd need to basically continue to support ARCH_NO_PREEMPT > - and such architectures migth end up with the worst-cast latencies of > only scheduling at return to user space. Great to hear, thank you. And, yes, eventually I would be happy to help get alpha and m68k converted. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913