Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1401778rdb; Wed, 20 Sep 2023 08:10:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFK2XpentecikrrtcbxTjajGztGoIezafIEwa4Izs2Fj93QiHVmLPVYebdaOuAMA4mCOXVg X-Received: by 2002:a05:6a00:1508:b0:68b:e710:ee9c with SMTP id q8-20020a056a00150800b0068be710ee9cmr2908420pfu.19.1695222655810; Wed, 20 Sep 2023 08:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695222655; cv=none; d=google.com; s=arc-20160816; b=gnpgl7jY1jPvsbFpYNst2D6M6VqNgom4W+mHjUfYtkJ+iP/eGp6roXepdmQPVYbe03 93A7v3tTAAJyV0F9B9PjjMMAvfefIZfwTsYHqoqGN1CdlpyCcfixuHD0ZD/CRsISCzgh gY1wEbMXwyWrrUZX42Tb7f6DIWXFETlQp5toMLzOsSQONCg9KkzMBxKHMtYpzE+9D551 FTvn2tPuA1fbx5dkuy2gFUXBAgv6VL6bXbDMGdw4WX+GceGkyWP81UiTX0zD547KNuMk VeXTMKmcF4QvKFCZd3eoV3l0BrfcAMyF4SS1e3n4aaLgnyJHDePquUELWoTTNcqsIqgz /APA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=TPy2/fbMnIvAGeKtNV0+Bg1I551cvs4QqKZFRgUlZjo=; fh=zhRzt8sTduFzAAMVfGxWPmrxy/M8fNN6RVwg3324XAA=; b=G9vxbNwTTBVFSD/joZ/XximXp+BL/MDm424qsYGNKruyVFXJjOe/QOQaNg8BciC3q7 EqcJWVP5dgJ1IviZuAzGn0zw+Pz83UNwEXfJ7gQYEhT5tvR/k1t4dYrgKjjwxvahRX57 Bx/bLA6qWt1p6W4orrfNNeRdweVWIHqe1ApTwhEAPwxmUv+if6IVsLiV1E5bLrSARNRI A+krtQSFUsmy3RqbdKv40PHCJnfEoDQERr+WSKcSfjW4uuhC0YiRpbeJ3JjCXg4T8PEB ahBCEpGqJ5+7vLjCs1FIN/Di4VknuAWTBLbe+//w/t+RTyDBVEvhN3Zmf7szxDft/Ltg Jxrw== 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:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id c22-20020a056a00249600b0069025078128si12431739pfv.240.2023.09.20.08.10.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 08:10:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 1FD4080B79D5; Wed, 20 Sep 2023 07:41:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236821AbjITOlX (ORCPT + 99 others); Wed, 20 Sep 2023 10:41:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236823AbjITOlL (ORCPT ); Wed, 20 Sep 2023 10:41:11 -0400 Received: from www.kot-begemot.co.uk (ns1.kot-begemot.co.uk [217.160.28.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 619231BDC; Wed, 20 Sep 2023 07:40:28 -0700 (PDT) Received: from [192.168.17.6] (helo=jain.kot-begemot.co.uk) by www.kot-begemot.co.uk with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qiyLd-002W2U-3v; Wed, 20 Sep 2023 14:38:37 +0000 Received: from jain.kot-begemot.co.uk ([192.168.3.3]) by jain.kot-begemot.co.uk with esmtp (Exim 4.94.2) (envelope-from ) id 1qiyLa-00HNGo-By; Wed, 20 Sep 2023 15:38:36 +0100 Message-ID: <159b79fc-16d8-2d12-ed17-fb508879d791@cambridgegreys.com> Date: Wed, 20 Sep 2023 15:38:33 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: Arches that don't support PREEMPT Content-Language: en-US To: Peter Zijlstra , John Paul Adrian Glaubitz Cc: Matthew Wilcox , Thomas Gleixner , Linus Torvalds , 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 , 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 References: <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> <20230919141627.GB39281@noisy.programming.kicks-ass.net> From: Anton Ivanov In-Reply-To: <20230919141627.GB39281@noisy.programming.kicks-ass.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.0 X-Spam-Score: -2.0 X-Clacks-Overhead: GNU Terry Pratchett X-Spam-Status: No, score=-2.2 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,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 groat.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 (groat.vger.email [0.0.0.0]); Wed, 20 Sep 2023 07:41:27 -0700 (PDT) On 19/09/2023 15:16, Peter Zijlstra wrote: > On Tue, Sep 19, 2023 at 03:48:09PM +0200, John Paul Adrian Glaubitz wrote: >> On Tue, 2023-09-19 at 15:42 +0200, Peter Zijlstra wrote: >>>> The agreement to kill off ia64 wasn't an invitation to kill off other stuff >>>> that people are still working on! Can we please not do this? >>> >>> If you're working on one of them, then surely it's a simple matter of >>> working on adding CONFIG_PREEMPT support :-) >> >> 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. > > The plan in the parent thread is to remove PREEMPT_NONE and > PREEMPT_VOLUNTARY and only keep PREEMPT_FULL. > >> I find it a bit unfair that maintainers of architectures that have huge companies >> behind them use their manpower to urge less popular architectures for removal just >> because they don't have 150 people working on the port so they can keep up with >> design changes quickly. > > PREEMPT isn't something new. Also, I don't think the arch part for > actually supporting it is particularly hard, mostly it is sticking the > preempt_schedule_irq() call in return from interrupt code path. That calls local_irq_enable() which does various signal related/irq pending work on UML. That in turn does no like being invoked again (as you may have already been invoked out of that) in the IRQ return path. So it is likely to end up being slightly more difficult than that for UML - it will need to be wrapped so it can be invoked from the "host" side signal code as well as invoked with some additional checks to avoid making a hash out of the IRQ handling. It may be necessary to modify some of the existing reentrancy prevention logic in the signal handlers as well and change it to make use of the preempt count instead of its own flags/counters. > > If you convert the arch to generic-entry (a much larger undertaking) > then you get this for free. > > _______________________________________________ > linux-um mailing list > linux-um@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-um > -- Anton R. Ivanov Cambridgegreys Limited. Registered in England. Company Number 10273661 https://www.cambridgegreys.com/