From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A7083EDAC5 for ; Tue, 19 May 2026 08:48:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779180506; cv=none; b=VM6n2S9ig7jRvphs4pO2L3vD0Kou2YNmrlcj//lh585nWTvaNn2dqMLVtLR7fSXQ5cW6RiYxMveWnXo1NeJZeYyVtkOjfQKlHhwXUhkLwV3NYlV/CRFuEHbcdfLeSNHUGgZ8RLabfKb5PkRmM2ZF1mjKvq/+78iHnfqtNN8TKzg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779180506; c=relaxed/simple; bh=Hyx9uiXztVttxLdo9VjcbHUiP6qvqHfhOZr9vbJAYdk=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lMXGTadC4SR3CHIttANFrRQmQbg+xiHG7Ja5Xf99HQQwOL2pD57npxrps8wikpb0nUKv1JCYCtPtzfjGVrfFSN1SNmdqz8+x2AR/D5n4bhKxflDSDe2zKi9gNtQHjwyuOWPIiafJ2Iynr0u0ViG9KjvRS5Ot/CaL580SxkuHyqU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=eKm0WEKT; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eKm0WEKT" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-488a9033b2cso25938915e9.2 for ; Tue, 19 May 2026 01:48:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779180503; x=1779785303; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=8U8k5KUlWmxiDre3dDf6j/8PHyhhwOqohUrC9tjzC3Y=; b=eKm0WEKT3mVDrwy7IMshOn0GT2kwmWUNussjaxGEyv482mBKvskG0hs7pJ5k+AfXcN l7Rjpy9iZzrpocdayWNqfQdXtH/nwyhXHiZOuGC5I7B98fO16ELapo992aMvVW7NErxJ Dom6oCaQBG4n0rJrkSsLMhnHP63zTKUiw5KuKnT6p7IvYNK+2mRBlfzqpifVUT/esNd3 vlhe3vAPa4t8awQvJiHD5JpieSz9o9c/NHG55x2xnbEgyrkqQ4UwvMthmyx0XIjO0dD8 Ds9+nZuBWp3o5j4Qfh95443MbvDyxxMyRCOg8xUEL3EtMFxko1g7WSrXeeWqy5p4Vy/L m4TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779180503; x=1779785303; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=8U8k5KUlWmxiDre3dDf6j/8PHyhhwOqohUrC9tjzC3Y=; b=Vr09ZRVo3/JovlYsAu/vHx8R7g7b96wd/6V6dr2aoqOh7I/L4PaTib/o9CA8zb4x1T jC8iMT0Oi404VkFfASkc/nby2sNBS8Z1y9LFBeN6K3UO3Euir6kURBtP4Tct7KU+qqVf ZD3JVwEPvzAoGGLZBO00Va8YmbHolvgXLeEP+1Fcvfgkp0d7UBwoy/oFPfYJL5RF9Eod U/iRHCaM74jqmYxnX0ZXhLiDTzw2CpZnPYHcxp/05yEnEtt8oAYMIhpGAHq0mg9ShVNT c/ZWe1TJ3Q+sxj/mpL0KaZ57o1l6l2S9Xq2ZMcKH1yIRM5A40vjV1+AYQvzDNIo9woMn Uvww== X-Forwarded-Encrypted: i=1; AFNElJ9uLuRMYjtxQcfnedaNj9JfwX5OSD/Lgm/jUv3dgZ6PH4GQRNsT2e1GGMX9s+h90QJAdi1tIcIbPqE=@vger.kernel.org X-Gm-Message-State: AOJu0YwiRx78Q/JM3KuO2l0xoRbeseWBiazKdQflLKJT4gFNI9pL+6oO gqOTE2A8aBzMXqWpb+MhsieSqc98+C5haQEJgoqayOFWnHCvRF4drcLz X-Gm-Gg: Acq92OE+YMgf2KBvm3cGII3YKPMapjBaYJC7XrjeqXoKpg1fAh/ELxYzIDExUPbWudH Kr/qJ0CnCARsNwuPiWKYfaQSF2d2B210BEAV/Ph32tW2DgpQbACdcw1LGGJlyRX1p2jYn78fVAt YWStlbCNFrv9BP6KiN3TTtoGZ2jgcxFG9oTkVWD29f9sD4zMxhwBoLJXUJYDE8o/v3Gdc/SRBe6 M443zXBd+Er8UA17a9RW82H3Z1/m5X+YpQ1E028hkfcCJ3Kc0b71389a5JT8wVkeLsOsXmaz3lA Y5U9IExQgT0FTEqThVXDQzQgqNTNcHf30wWmy4YC5sOPbG1aZ8vU+O9T9eLM95Da4At2LlJEWU6 IAUKSAFmz0JH8zGPDQgmXqbLmvy4O6FIAIhjKu3PkQpXftY4ze1QvCRdDSgK453wtMF/4FhrXh4 FHW45AgL6TRXpU5CaRL7yTY8m5mSJ8sCQEaTFKqJ++XJUN83Pu6igpxtFf0yLBaxOW X-Received: by 2002:a05:600c:3e1b:b0:48a:8905:a500 with SMTP id 5b1f17b1804b1-48fe60da647mr311906705e9.12.1779180502860; Tue, 19 May 2026 01:48:22 -0700 (PDT) Received: from pumpkin (82-69-66-36.dsl.in-addr.zen.co.uk. [82.69.66.36]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48fe4c8344asm530004325e9.1.2026.05.19.01.48.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2026 01:48:22 -0700 (PDT) Date: Tue, 19 May 2026 09:48:20 +0100 From: David Laight To: Ethan Nelson-Moore Cc: linux-doc@vger.kernel.org, devicetree@vger.kernel.org, workflows@vger.kernel.org, linux-arch@vger.kernel.org, dmaengine@vger.kernel.org, linux-i2c@vger.kernel.org, linux-iio@vger.kernel.org, netdev@vger.kernel.org, linux-pci@vger.kernel.org, linux-pwm@vger.kernel.org, linux-hardening@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-csky@vger.kernel.org, Jonathan Corbet , Shuah Khan , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Daniel Lezcano , Thomas Gleixner , Alex Shi , Yanteng Si , Dongliang Mu , Hu Haowen <2023002089@link.tyut.edu.cn>, Dinh Nguyen , Kees Cook , Oleg Nesterov , Will Deacon , "Aneesh Kumar K.V" , Andrew Morton , Nick Piggin , Peter Zijlstra , Vinod Koul , Frank Li , Dave Penkler , Andi Shyti , Jonathan Cameron , David Lechner , Nuno =?UTF-8?B?U8Oh?= , Andy Shevchenko , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lorenzo Pieralisi , Krzysztof =?UTF-8?B?V2lsY3p5xYRza2k=?= Subject: Re: [PATCH] nios2: remove the architecture Message-ID: <20260519094820.1f05ab8e@pumpkin> In-Reply-To: <20260518042833.272221-1-enelsonmoore@gmail.com> References: <20260518042833.272221-1-enelsonmoore@gmail.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; arm-unknown-linux-gnueabihf) Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 17 May 2026 21:28:33 -0700 Ethan Nelson-Moore wrote: > The Nios II architecture is a soft-core architecture developed by > Altera (since acquired by Intel) and intended to run on their FPGAs. > > Licenses for the architecture have not been available for purchase > since 2024 [1], Except I think they got 'beaten up' by some telcos. The Nios II gets used inside fpga for small cpu doing things that it would be far to difficult to do in VHDL. (I believe some mobile base stations fgpa embed a lot of them.) These will have a small amount of code (maybe 4k - 64k) and a similarly small amount of data memory along with access to fpga peripheral registers and (optionally) host memory vie PCIe. No MMU, no cache (or rather the code/data is in the cache memory but it isn't backed by anything), no branch predictor (guaranteed cycle times), etc. Intel suggested that RISCV could be used instead, but it isn't the same beast. They didn't document the instruction timings nor how to add custom instructions. The company I used to work for used 4 NIOS II inside an fpga. The instruction timing for one is pretty critical, it has some code that has to complete in 122 clocks (worst case). Our solution was to spend a few man-weeks writing a compatible cpu! I think it came out with fewer pipeline stalls (in particular it 'lost' the one for a (predicted) taken branch). The maximum clock frequency might be lower; but it is ok at 62.5MHz and the higher 125MHz in just impossible for all sorts of reasons. OTOH I really wouldn't run Linux on it! -- David > and support for it has been removed from GCC 15 [2], > Buildroot [3], and QEMU [4]. > > Given all of these factors, it is time to remove Nios II support from > the kernel. The maintainer stated in 2024 that they were planning to do > so soon [5], but this did not come to pass. > > Remove Nios II support from the kernel and move the former maintainer > to CREDITS. Thank you, Dinh Nguyen, for maintaining Nios II support! > > References: > [1] https://docs.altera.com/v/u/docs/781327/is-discontinuing-ip-ordering-codes-listed-in-pdn2312-for-nios-ii-ip > [2] https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=e876acab6cdd84bb2b32c98fc69fb0ba29c81153 > [3] https://github.com/buildroot/buildroot/commit/6775ccc5a199d574ad70b5f79ec58cce97a07c6f > [4] https://github.com/qemu/qemu/commit/6c3014858c4c0024dd0560f08a6eda0f92f658d6 > [5] https://sourceware.org/pipermail/newlib/2024/021083.html > > Signed-off-by: Ethan Nelson-Moore