Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp542128lqi; Thu, 7 Mar 2024 05:07:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUeOriD+dP0MQyYaH9x+QCJYxrepE1pBdcv4jDGN0sx2Zx0ao6HOlhnm4n7renqc9dJu5FmqbAjFllpFCYBjxjdck8b1h4EDwuI20EyOw== X-Google-Smtp-Source: AGHT+IEd+aBiYoCDsAdlY0u4aV3m47/FNCF3hJpV/esmL85oNgohSqYwUPsyA0GltsfelKX2++i+ X-Received: by 2002:a17:906:abd9:b0:a43:f924:d63 with SMTP id kq25-20020a170906abd900b00a43f9240d63mr159281ejb.26.1709816871759; Thu, 07 Mar 2024 05:07:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709816871; cv=pass; d=google.com; s=arc-20160816; b=KJxEJftWcDfziF3iFM4Ziw6Xh+zt/f/ZossGvsJiyF0Dv957j9vErvcXVyd4nvREyX u2G1NwjCYGxmLqTGXFBvUYadR1ynxKMaHjwq1HzCDM5vRU73HHj13C0LGCADQuoO4Gc4 ELOJ2DevkQn+HO440qCGl79meb62ZZu9MTrSM7l9cND6JWG7VRunC01VN0vfsF3aFVKm yVyga5EIbO9KgYwXB34h/tqJhSQlrz+Jm5G8j7LgVeS9jz9V35zNqJDZ2XSQh517Ud7K r5UQgrSY/q4IgbW6lOw6u2voFC++KefUaTY2K8KfKchBb0Y5GAilP25ZsO8Xcg3rUZ79 phmw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=KIlJ9/MMoQydcaKrNuZHiK1uGjrE3/F6Od5LC7tnK/8=; fh=hlDpOrCeslYrF2s1a+QVuyqmc4GIFE59bbG4NhMOZ+o=; b=G1C9ty+YBV6XUi4DRuSEWXy+3CUPMyzxfqpyQwDBVW1e35nCZDPiWtsYS6nYJwKjJJ S+7jknHGWtR6XqwNgnrVFMJeCo4gXfB7s7cGLMJvNMXxeg6qXmo9r3dfpfFJRPgXW/ug KjyvD9PATtbIOVaY/CJlaDreycNK7oSLABo3biImPOtOvhvQHDkBmeNmwi4b0Tj2ywwb pNOKkSFVYZgSdHuhv/4hu3Tsi/kpX78zkvcAZhBdaZO0lQnvnJxQwRr6jOPc0MstbXct OFAY3bYKdO42IyQXv2L/l8d1pDWwpCvHZmGw9wnQAFC8tWDxEDweiYOA50+QUt5WFR0f qtqg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=ErmKsbBx; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=LPltvXx+; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-95572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95572-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id pk18-20020a170906d7b200b00a3e409474f0si6876799ejb.640.2024.03.07.05.07.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 05:07:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95572-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; dkim=pass header.i=@arndb.de header.s=fm3 header.b=ErmKsbBx; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=LPltvXx+; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-95572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95572-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de 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 455531F24F64 for ; Thu, 7 Mar 2024 13:07:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C6EB12C528; Thu, 7 Mar 2024 13:07:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="ErmKsbBx"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="LPltvXx+" Received: from wfout7-smtp.messagingengine.com (wfout7-smtp.messagingengine.com [64.147.123.150]) (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 0176A12BEB7; Thu, 7 Mar 2024 13:07:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.150 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709816832; cv=none; b=FAf2Fvzcc1bmoqXYoInjBwnOjJjrGdyJ7tmw1rd6cYpWNo7DVvnzQuXYyM4YNpR1RqpiF+SX6Ub6b0/HF1EjPVSEnu4XAF4LKU4GWQfo6KWXJiRZ3wZZXgeUJex6DgxLPAN4T0IvdNTB23E1ix8KEv76kaMhvW44iY4ph4q45mA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709816832; c=relaxed/simple; bh=cjI8HdcqWfSzb4EPROgu3kbBICUTAibkbIw37DdMKZQ=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=BXjSz5bex/Ay9TTo+JVqRYNYcuTUp+EXumcuzfeNDuIZzbCzIlcHia328BxW9xMhSoQ/dUAvhz18ChK3QOfmLr6C1r8yFaPyMoZYwN/Ne+g6mHXPVi60tT8vBaL2UjKSxPIGGFiL/i6epuS8Z/d6o3cq2MxBM12Pf2OoLzAFwKs= 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=ErmKsbBx; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=LPltvXx+; arc=none smtp.client-ip=64.147.123.150 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 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.west.internal (Postfix) with ESMTP id A76811C00096; Thu, 7 Mar 2024 08:07:07 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Thu, 07 Mar 2024 08:07:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc: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=1709816827; x=1709903227; bh=KIlJ9/MMoQ ydcaKrNuZHiK1uGjrE3/F6Od5LC7tnK/8=; b=ErmKsbBxBCZtoosoVThwRby/dF JJDWd4x2cfSFm/U4sxOMSsJ3B3NKY/vZcwX38EDm94XUTrx0YiEBDlWtdNXrrQQQ obzgn9C9h7tWbnDOobbNqEhGUWHwn2VY1y98KoLe2RvHOHHU7SuLdAUmk8JR9h4z uca3qn9pxZWe7rb6fM6CRq9M2BL3ngerFlxczb0Zd7kiOySP9AMsr0l6i8hfhgI9 clsMc26SIRI0mIVMg9m+hm30YTq1XqXLIg75cCuLz2uW0gXjkPuQmLwfceiv7TiM dc2aEoV0kYbRQD6ExMiP1pw/C0gPvPE/BVxSTlKRO/wqqCewShI55QggpsKw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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=1709816827; x=1709903227; bh=KIlJ9/MMoQydcaKrNuZHiK1uGjrE 3/F6Od5LC7tnK/8=; b=LPltvXx+FmwRg1QDk6r3n8KsXSO580DsxXXlNXHXJ9EB 3GigYEwMG44CsYmTF8WWgKEEM0iQ7ADuX3GzaGaggWXY9IQfEmxgr/JGjPD1GLz4 +j4ySIBU1Plcrglm0nO0723jmpzw1gbSEa48FD6tHO9XVQH/iylBXWDXvlHjOlGX dgT8ZpRLi6RxoMNtgo1rF3RXGqJYpqlJZk2W8P5+lQPESoXu7yW1hB9TtEy23ur4 yrotVVAB8G9fj5Vtdfkx436O0G7ijQ0eg2AR4qDaeTSGWKY7BVOyg1NGgutSLCGd kuosSFRvTxcVrNVCoDO4zx+OHfI4LFFC/3dVSCAiaw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrieefgdegkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedtkeet ffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrh hnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 25551B6008D; Thu, 7 Mar 2024 08:07:06 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-251-g8332da0bf6-fm-20240305.001-g8332da0b Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: <74afd65d-85ed-4ee9-b5f2-a6702f9bc01c@gaisler.com> References: <20240224-sam-fix-sparc32-all-builds-v2-0-1f186603c5c4@ravnborg.org> <20240224-sam-fix-sparc32-all-builds-v2-4-1f186603c5c4@ravnborg.org> <8d5780f5-1047-48d7-a9c9-09b95c7b5604@gaisler.com> <5648dca0-4853-4dfb-91cf-282a656beb1e@app.fastmail.com> <75a4a08d-85c2-4a60-9cbd-90dd50f765a8@app.fastmail.com> <5d97d50a-9d40-4651-8071-073dee5f9aa8@gaisler.com> <001ba36a-9d4c-45c4-b1f2-448824848afc@app.fastmail.com> <5568f26d-9e1a-4530-a086-564659b21666@app.fastmail.com> <74afd65d-85ed-4ee9-b5f2-a6702f9bc01c@gaisler.com> Date: Thu, 07 Mar 2024 14:06:45 +0100 From: "Arnd Bergmann" To: "Andreas Larsson" , "Sam Ravnborg" , "Maciej W. Rozycki" , sparclinux@vger.kernel.org, "Randy Dunlap" Cc: "Miquel Raynal" , linux-parport@lists.infradead.org, "David S . Miller" , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 4/7] sparc32: Do not select ZONE_DMA Content-Type: text/plain On Thu, Mar 7, 2024, at 13:42, Andreas Larsson wrote: > On 2024-03-06 19:19, Arnd Bergmann wrote: > >> I still don't know the history behind this choice, but I >> see this was already configured the same when arch/sparc/ >> was originally merged. You can probably change it to a more >> sensible 0xc0000000 or 0x80000000 like on other >> architectures and run without highmem on anything with >> less than 2GB of total RAM. >> >> How much RAM do Leon machines have typically, or at the >> maximum? > The amount of RAM can vary greatly between systems, from less that > 128 MiB up to 2 GiB. An upcoming design uses the entire 36-bit > physical address space and have the possibility of having up to 60 > GiB memory. If the current maximum is 2GiB, that would be easily handled by making PAGE_OFFSET configurable the same way that x86 or arm do, where the common CONFIG_VMSPLIT_3G would extend lowmem from 192MiB to a little under 1GiB, with PAGE_OFFSET 0xc0000000, and VMSPLIT_2G_OPT allows exactly 2GiB of lowmem, plus a little under 2GiB of user addressing. This would also be an improvement over using highmem for most applications today, and it means you can keep using the same setup once highmem support gets removed from the kernel. For a new design, I would strongly advise against advertising support for more than 2GiB on a 32-bit Linux kernel, as this is likely to not be supportable in the future. Note that in the best case today (40 byte struct page), the mem_map[] array uses 10MiB of lowmem per GiB installed memory, so you quickly run out of lowmem when you allow more RAM. Arnd