From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fhigh2-smtp.messagingengine.com (fhigh2-smtp.messagingengine.com [103.168.172.153]) (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 96BAB187FEA; Mon, 26 Aug 2024 14:55:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.153 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724684149; cv=none; b=Ki6DY8owjkPDhw3y3SOxyn1+gWyJxaOKENwOysy8o1I/WZPHv3te2frOYuUvKlj1fvWDzWZ+qWdGR6NuRUe0AFEOObzHU694UWuYgM5lqSdncUVMHi3z2vYXdU06rM4uGh3+WuXLnZ9GPt547zCtgWaENmWAIbF6hiTh/X6vnEw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724684149; c=relaxed/simple; bh=9TmelYC8tZt7bqVAgPpovFGJQmmwFDIQHX9vuuZAA/c=; h=MIME-Version:Date:From:To:Cc:Message-Id:In-Reply-To:References: Subject:Content-Type; b=pIUAx5fJja2M/NE0Y+/qubxQvABbaXI7p9FzHH4Do2TK/Dd4FbxDRsgIHKHzrynOTf11S/WrKQGo0zUFpEQCElcLqaBfDxT/MmgHPgMqc76WjKxrYHTW2WjxKnqxgZ773SjB2Q7C87pIDggniU81rfbeJXC1y4fjtw5LZjjVHl0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=Zpa4kyQE; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=Tkw2AwR3; arc=none smtp.client-ip=103.168.172.153 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="Zpa4kyQE"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="Tkw2AwR3" Received: from phl-compute-04.internal (phl-compute-04.nyi.internal [10.202.2.44]) by mailfhigh.nyi.internal (Postfix) with ESMTP id A32EF1151BCA; Mon, 26 Aug 2024 10:55:46 -0400 (EDT) Received: from phl-imap-11 ([10.202.2.101]) by phl-compute-04.internal (MEProxy); Mon, 26 Aug 2024 10:55:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1724684146; x=1724770546; bh=VV6gKj4YduBLQtRVd/Kk7xoggepydH0ei745eofrJ7E=; b= Zpa4kyQEJ805NEduAU83jyc7GMUA+Y+ldVwizTC85ioNuLt3fWY3L8E3AmO/kTmz +pwThBu7g4AInV27Md+7jOyaTODvJZbPPMn3uPY4LuFJFSLP2ibFdAd9JAcXHRaa GfCmbkVbzgdN/ooNwcdk2JflOy8alDWRpZgXaIbUe3dL92mA5X0xtnuMjGlyzfzO VpadDH8bX5XXfRm3nNkxYBTGNrLV3wLeKxNsaNRAW9vnGEpsBMBYVfxDPwcYx6O8 v91JJLq7tFf/VSeaMOQOctWemyxRqsv/saTSckfZX4VTQ17SNEGCicNjQ3xH46C3 4hVwf5BzeMdwE2K9z9hRcA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1724684146; x= 1724770546; bh=VV6gKj4YduBLQtRVd/Kk7xoggepydH0ei745eofrJ7E=; b=T kw2AwR36VE1SGKUlrwKqhGIRYKKZrvNEGGCG118B5d4fKO51cMsOEImheufzRjI0 okqkowkbFS5IgU9RVteZvgMP2k+pjdXSDC2NZ/1cmg2vxvuyPJ6HYGOmSIPxYhvH Yzl6o+0oCpXhuNcygm9oMuxKGvA/d/ybxJEGG8CGCleJYnrKb8KRh0j5ZVV9s4gd 3IqJUAqlBuZMk5rjKJP1q73LP2DoSarK7+NjWXYMAhRN0ve/JGl2nvkmCmK8v+Bc G6h+wn5j89nH+ODYnEveyu3c/7OgcuXSOMf7biAT92VIgzwZYS8T9wlswvbmyb6z epo5ldwLwlMxbvIiJNSNA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddvkedgkeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepofggfffhvfevkfgjfhfutgfgsehtqhertdertdej necuhfhrohhmpedftehrnhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrd guvgeqnecuggftrfgrthhtvghrnhepteefudehvedutdeugfeuveffleduheehfeehffeu jeduledvheeivdffleffjedtnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrhhnugesrghr nhgusgdruggvpdhnsggprhgtphhtthhopedvfedpmhhouggvpehsmhhtphhouhhtpdhrtg hpthhtoheprhhitghhrghrugdrvggrrhhnshhhrgifsegrrhhmrdgtohhmpdhrtghpthht oheprhhitghhrghrugdrshgrnhguihhfohhrugesrghrmhdrtghomhdprhgtphhtthhope hlihhnuhigsegrrhhmlhhinhhugidrohhrghdruhhkpdhrtghpthhtohepthhonhihsegr thhomhhiuggvrdgtohhmpdhrtghpthhtohepghhrvghgohhrhidrtghlvghmvghnthessg hoohhtlhhinhdrtghomhdprhgtphhtthhopehnihgtohesfhhluhignhhitgdrnhgvthdp rhgtphhtthhopegrlhgvgigrnhgurhgvrdhtohhrghhuvgesfhhoshhsrdhsthdrtghomh dprhgtphhtthhopehrohgsvghrthdrjhgrrhiimhhikhesfhhrvggvrdhfrhdprhgtphht thhopegumhhithhrhidrthhorhhokhhhohhvsehgmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 32B31222006F; Mon, 26 Aug 2024 10:55:45 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Mon, 26 Aug 2024 16:55:23 +0200 From: "Arnd Bergmann" To: "Linus Walleij" , "Vincent Legoll" Cc: "Aaro Koskinen" , "Alexandre Torgue" , "Andrew Lunn" , "Mark Brown" , "Dmitry Torokhov" , "Gregory Clement" , "Jeremy J. Peper" , "Janusz Krzysztofik" , "Kristoffer Ericson" , "Krzysztof Kozlowski" , "Linux Kernel ML" , "Russell King" , "Nicolas Pitre" , "Nikita Shubin" , "Ramana Radhakrishnan" , "Richard Earnshaw" , "Richard Sandiford" , "Robert Jarzmik" , "Sebastian Hesselbarth" , "Tony Lindgren" , linux-mips@vger.kernel.org Message-Id: <35680bf8-d4f0-4b7a-b358-f71eb39e2a94@app.fastmail.com> In-Reply-To: References: Subject: Re: [RFC} arm architecture board/feature deprecation timeline Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, Aug 26, 2024, at 11:05, Linus Walleij wrote: > On Fri, Aug 23, 2024 at 10:47=E2=80=AFPM Vincent Legoll > wrote: > >> It looks like the highmem feature is deemed for removal. >> >> I am investigating the loss of some available RAM on a GnuBee PC1 boa= rd. >> >> An highmem-enabled kernel can access a 64MB chunk of RAM that a >> no-highmem can't. The board has 512 MB. There have been problems in the past with configurations that have a lot less highmem than lowmem, since there is codce that assumes that lowmem is scarce but highmem is not. This means your configuration may have more RAM available when highmem is enabled, but still runs into out-of-memory or other problems more than without highmem. What you see is certainly unrelated to me mentioning that we may remove highmem support from the kernel altogether in the future, but it's possible that OpenWRT turned it off because things work better without it.=20 https://github.com/openwrt/openwrt/issues/13151 may explain what ios going on here. >> That's more than 10% on a RAM-poor NAS-oriented board, probably worth >> the hassle to get it back. >> >> I built & flashed a current OpenWRT snapshot, without any modificatio= ns, >> wich gave the following output: > (...) >> The lost RAM is back usable. >> >> Is there an alternative to CONFIG_HIGHMEM to use that RAM chunk ? > > Userspace can still use it right? > > The approach we are taking on ARM32 (despite it's.... really hard) is > to try to create > separate address spaces for the kernel and userspace so that in kernel= context > the kernel can use 4GB of memory as it wants without the restriction o= f userpace > taking up the low addresses. > > This looks easy until you run into some kernel assumptions about memor= y being > in a linear map at all times. Which I am wrestling with. MIPS32 is a bit special here since it has segments with a fixed mapped, = so the linear map is always at a fixed virtual address and at most 512MB in size, where most other architectures can make it e.g. 2GB by changing CONFIG_VMPSPLIT. CONFIG_CPU_MIPS32_3_5_EVA should allow doing this on MIPS as well, but I think the 1004K core in this specific (MT7621) SoC is little too old to support that feature. Arnda