Received: by 2002:a89:2d5:0:b0:1ef:f8eb:5d24 with SMTP id d21csp129761lqs; Sun, 17 Mar 2024 14:03:53 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX/4RpVT2X213Rm4lzVXUHzFJH9t/30jo5dTkGqnBJTpuRPkI659TS3PDjAT1qnnt+Eh3b+1QuUbN9Aw7pQuiCE8AQbZDv99rF1UHoM5A== X-Google-Smtp-Source: AGHT+IHRjT6JyURrQGIuJ0+yTGpf1TpxwgB5oS1WK8wpuG8x20/2h6ncPl6d5uy/Masa0ZGCTBGY X-Received: by 2002:a17:907:25c4:b0:a46:ba8e:c22b with SMTP id ae4-20020a17090725c400b00a46ba8ec22bmr1372654ejc.77.1710709433195; Sun, 17 Mar 2024 14:03:53 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h24-20020a170906719800b00a45f08add15si3641846ejk.440.2024.03.17.14.03.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Mar 2024 14:03:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105557-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-105557-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105557-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DE4611F21659 for ; Sun, 17 Mar 2024 21:03:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62724208A7; Sun, 17 Mar 2024 21:03:48 +0000 (UTC) Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00AA01CFBD for ; Sun, 17 Mar 2024 21:03:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.58.85.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710709427; cv=none; b=E8MAIgYEmY4xbMMkaFgwJmQ3EHt+UiYFqaUFVmUjCh1CZrsVNP0ojStoz32xSPrGdVGJhtoFydJq8ef+vxTtNaHb6Y6VJy0ODoCRsm4gFWLuGTBrUBvenY9rwz6dFSkOM0i4hga076jHP87HZ2i3bs/oQB4xhrgKNH0xxg2I/Vw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710709427; c=relaxed/simple; bh=gzAePpCELiWiEVfOVWT+m6Mi8Uw5yBEyROgjtW+MVi8=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: MIME-Version:Content-Type; b=M2jyxzYi/F97HKuIqs3XrmlsRJi7bGyUF5vxExB+YVy+J5vovLiyj2mc2j9K0SdTax2P+GO9ffRChaQmRNsBILvs+96tT3MIvjNEfQZBkYv6VN6tTJjmGrwjg8xdZw8nGrgTHrhw8ymh65SAF/puU+YsMjYIFaInrPiWShRTfyA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ACULAB.COM; spf=pass smtp.mailfrom=aculab.com; arc=none smtp.client-ip=185.58.85.151 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ACULAB.COM Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aculab.com Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-74-WNWPfMjyMNWwIlf9U6Qn3A-1; Sun, 17 Mar 2024 21:03:34 +0000 X-MC-Unique: WNWPfMjyMNWwIlf9U6Qn3A-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Sun, 17 Mar 2024 21:03:16 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Sun, 17 Mar 2024 21:03:16 +0000 From: David Laight To: 'Thomas Gleixner' , Linus Torvalds CC: Guenter Roeck , LKML , "x86@kernel.org" , Uros Bizjak , "linux-sparse@vger.kernel.org" , "lkp@intel.com" , "oe-kbuild-all@lists.linux.dev" , Arnd Bergmann Subject: RE: [patch 5/9] x86: Cure per CPU madness on UP Thread-Topic: [patch 5/9] x86: Cure per CPU madness on UP Thread-Index: AQHadz7YjtRKJ7LFXkWK5JDSHprIDbE8T4UQ Date: Sun, 17 Mar 2024 21:03:16 +0000 Message-ID: <285eeccc46bb4d5bb471071964ddce48@AcuMS.aculab.com> References: <20240303235029.555787150@linutronix.de> <20240304005104.622511517@linutronix.de> <87y1ajjsv9.ffs@tglx> <87o7bfjeae.ffs@tglx> <877ci3j80k.ffs@tglx> In-Reply-To: <877ci3j80k.ffs@tglx> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable From: Thomas Gleixner > Sent: 16 March 2024 01:11 .. > We want SMP as a general concept and overhaul the whole kernel to get > rid of this ever increasing non-sensical UP burden. The real world UP > small system use cases have moved over to other OSes like Zephyr & Co > long ago. >=20 > Just because some esoteric architectures (m68k comes to my mind) will > have serious issues with that for the very wrong reasons does not mean > that we should not go there. >=20 > It's going to be quite some effort, but the overall benefit is worth it. >=20 > OTOH, it's absolutely not rocket science to pretend to be SMP capable > and if some architectures fail to accomodate on the way then we just > should remove them as that's a clear sign of being unmaintained and > irrelevant. There are fpga soft-cpu (eg Nios & Risc-V) that can run linux. They are definitely memory constrained and really wouldn't want most of the SMP overhead. I'm not what it involves apart from simplified startup, compiling out IPI and spinlocks and optimising per-cpu data. But you wouldn't want to be running an SMP capable kernel on such systems. x86 is a different beast - except perhaps 486. It has to be said that I've never understood why anyone would run Linux on a Nios-II cpu. Far too slow for anything useful (you might get 100MHz if you are lucky), caches will be small and external memory accesses slow. I doubt soft RISC-V are any better (and I suspect they are worse). We do have 4 Nios-II in the fpga image for a PCIe card. They run very small programs (one has 2kB of code memory) to do things that would be impossible to write (sensibly) in VHDL. There are fpga with embedded ARM (and probably RISC-V) cores for running real OS. =09David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1= PT, UK Registration No: 1397386 (Wales)