Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp528065lqi; Thu, 7 Mar 2024 04:42:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU2cVKYhF4Y4qL9krlcsfekEANJvnwCHos8j6vhG4KBkjjGc5S66lCH3oSxlShVfPzmHk19jFVrVE612zvVW8VgMZ1ZEQRWK/cwNZoiYQ== X-Google-Smtp-Source: AGHT+IHBU7sjyAcja7PzRE4hvue5KrXcUmm1S6IoppX/mrwpRzD6peR/DCPbzom4r1e4wHTm+4qC X-Received: by 2002:a05:6a00:88d:b0:6e6:4415:40f2 with SMTP id q13-20020a056a00088d00b006e6441540f2mr8518714pfj.32.1709815375330; Thu, 07 Mar 2024 04:42:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709815375; cv=pass; d=google.com; s=arc-20160816; b=B/SotQ3Dy7YVN5RsZGIW74gFQFZubvV5vFvaSNo9Zs4m2CoFyqQgaEbP2KUCrlgi/t IJwGDkzvpL56uITM7KK2f0poIhdKZPxcU08hwVrkJK+Y3etwqLYMPb3ATBck7L75t2Tk up5g94b8u671gMvRbsgoleNZSXDiPdv15LiBi9DJhWqHL7atK/DxAU/i//bNh2kko0cW AZ4l9pR4pWdJSkeJomtDckW3WMmqH41sBcMRms9CEpWp4bTEORgBtMAk0N3zu4Btoa9J /2AvuzZED16JXtAE+oLz9IZkaU/aefgkoCpfvQkZD3EQKFhinwPyyyxl7O1Aopkmdbru k2NA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=AVHNr47rSvulz8LrB0QQznO8Zw2QTzCYetLSkLBWuf4=; fh=ULB1xfDOtWeJbcUPEwRKTukqA4wpW0VwvhoDiAlgmD0=; b=zBc296JrhZqbqj91we96ju9DqpctuhT6rP+Qfe8jO2QlCp5Sl53FiR5VRyTKzL6tBS AJNIK0KdJNNZsj0TO7wWhKUxzCWay2Ed+Pai3HonE4phM26yx4g8GnIeCat4X+5syTNi LHQ8xS7pzNy1N32PA+n97MV9l0aHVRyC1Nu5rHpHFCMrKfeIQ6igKQvEaCJpoW63TUbR gwYxCcWUQlNjAaT8KXZcuov3rZyUOEqNCQOp1G7pZhSnoegcKhpYh8WhLZa0xv/B/4tl DOIGQIhNnL9+cH7eN1X00ESGPlGtx/KWS4QhqGwbLsVaDnreFH0M41eZJ3HdHZlqZEmu wTVQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gaisler.com header.s=unoeuro header.b=EdsQNeU6; arc=pass (i=1 spf=pass spfdomain=gaisler.com dkim=pass dkdomain=gaisler.com dmarc=pass fromdomain=gaisler.com); spf=pass (google.com: domain of linux-kernel+bounces-95549-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95549-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=gaisler.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k129-20020a636f87000000b005d8b8c6f94csi13882518pgc.565.2024.03.07.04.42.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 04:42:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95549-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gaisler.com header.s=unoeuro header.b=EdsQNeU6; arc=pass (i=1 spf=pass spfdomain=gaisler.com dkim=pass dkdomain=gaisler.com dmarc=pass fromdomain=gaisler.com); spf=pass (google.com: domain of linux-kernel+bounces-95549-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95549-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=gaisler.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 22A672825A6 for ; Thu, 7 Mar 2024 12:42:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E37E12BF0C; Thu, 7 Mar 2024 12:42:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=gaisler.com header.i=@gaisler.com header.b="EdsQNeU6" Received: from smtp-out3.simply.com (smtp-out3.simply.com [94.231.106.210]) (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 2410B7E76B; Thu, 7 Mar 2024 12:42:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=94.231.106.210 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709815344; cv=none; b=i/kdBIgnqEHt3yldHBBNmcgPltRrwRbEjqZxM83IwCW23ikOFHrq/q8cr2f9AqpOJicOUGCfkeueV/8ZLQ5HE+xhyWlXLXXmMho/y08IJqyEGFjkMf7qUd36iv33MZWMDX8ey5nURq/iQx9x5DAPKGZgsFLANwpii5AMNZpgvZI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709815344; c=relaxed/simple; bh=t6HuFttPC1nxD+nyrrov2Y2NoChjRlY3Abi30iwUEyA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=G1Wz96tUieUlgavuoOsXGycrxt1f/q+87S8X1QXld1hdA69FhTei9QfMxg331sBg993JAcg/73zegonD5L73k36ndejscnnNbXRj0fkkYuZDhGz1p060ggOFlwQIopOMg2Z3gCGf5fgmvM99yTG0dERaWIzx5MSHPH3PvtEdyMQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=gaisler.com; spf=pass smtp.mailfrom=gaisler.com; dkim=pass (1024-bit key) header.d=gaisler.com header.i=@gaisler.com header.b=EdsQNeU6; arc=none smtp.client-ip=94.231.106.210 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=gaisler.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gaisler.com Received: from localhost (localhost [127.0.0.1]) by smtp.simply.com (Simply.com) with ESMTP id 4Tr88819Wpz686f; Thu, 7 Mar 2024 13:42:16 +0100 (CET) Received: from [192.168.0.25] (h-98-128-223-123.NA.cust.bahnhof.se [98.128.223.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by smtp.simply.com (Simply.com) with ESMTPSA id 4Tr87z50BGz6821; Thu, 7 Mar 2024 13:42:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gaisler.com; s=unoeuro; t=1709815335; bh=AVHNr47rSvulz8LrB0QQznO8Zw2QTzCYetLSkLBWuf4=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=EdsQNeU616Fl0FTZl709rzR8Xv5Qe21y99dZvo+Xe5uc50GnmuOwMEEulTzrVUMQJ NvD9sACX5r2g2QNQ5g7PLCkrSYzBTcIe/JhIaNGEx9Gd/WdWUg2UkBJI+cJAGY2qnl VjaWLmRBcT+SpQVQdcGoKb8OaDg7P1GCNjsi9aEg= Message-ID: <74afd65d-85ed-4ee9-b5f2-a6702f9bc01c@gaisler.com> Date: Thu, 7 Mar 2024 13:42:06 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 4/7] sparc32: Do not select ZONE_DMA Content-Language: en-US To: Arnd Bergmann , 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 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> From: Andreas Larsson In-Reply-To: <5568f26d-9e1a-4530-a086-564659b21666@app.fastmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2024-03-06 19:19, Arnd Bergmann wrote: > On Wed, Mar 6, 2024, at 17:22, Arnd Bergmann wrote: >> On Wed, Mar 6, 2024, at 16:31, Andreas Larsson wrote: > >> On a relate note, it does seem odd to have such a small >> lowmem area, and I wonder if that could be extended. >> The 192MB lowmem limit comes from >> >> #define SRMMU_MAXMEM 0x0c000000 >> >> but I don't understand if that is a hardware limitation >> or a design choice that can be changed, and if it is >> even valid on leon or only on the old sun machines. > > I had another look and found that this is a result of > > arch/sparc/include/asm/page_32.h:#define PAGE_OFFSET 0xf0000000 > > which gives 3840MiB to userspace addresses, leaving only > 256MiB for kernel lowmem and vmalloc space, which is > less than any other architectures. > > 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. Thanks, Andreas