Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1097338lqg; Sat, 2 Mar 2024 15:51:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVMjtD05Nhh/zcotXGgqGMKgxa9dtJfjuPD6yFwMkKJ650/NySyUfoIJm+PCvlBLs1DBnIybC266O0B2EzfVlE1FPPy7TSCD7jCTzUhOQ== X-Google-Smtp-Source: AGHT+IE+pheUThk4qEex4LNH8nJDitgNhUXiH0SvFvNIcgEj1j06VhBKWotiA2aBwwpxmrHngYRr X-Received: by 2002:ae9:e40a:0:b0:788:1a65:ca4c with SMTP id q10-20020ae9e40a000000b007881a65ca4cmr2969957qkc.40.1709423478090; Sat, 02 Mar 2024 15:51:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709423478; cv=pass; d=google.com; s=arc-20160816; b=pyMagyllRjn/1tpTbi0MKSOFIbnJ34u3paWBZuKtPevWhFumau3G+ptCtsq/CYTkHm tcHSq/9h0tT4uzyz0TNhQznuwZ+nyF+yMb6J70zsv/e3Dp+J0DIORXEPJlryQt11kmPl eU0qzukyyD9IC1+0ezwbXgrir6W2prg5poMnIimofapPxx4j5RUvUz9jpouIsywYQO0F 9Mz4MCUGH8GJThcwOnRRZT0Z/0U6QydjNVTkqy9LQo+c97CaWHyIdhYpD4I7Y+3mSrY9 Yi+zXuJjjx984qLLnG42kgc3K8md0Hxtmhugt+4qOglyD1xA0z9TOrTHbN3A6BK7eJjD Y8Fg== 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=U23c8qDFSaCYYJiNvipaVhnVpZ+kBbhVnMi2Nw79GGA=; fh=lLlzFU5tD+gZa7MGrsHFHzBetAR7kkxwNr+Jw+gFM6U=; b=MjSbwxOoISdfkQIkvV1LX0Jx5ErH7uYaNgCRRco657CGjJry357ejKGYBy5rra2z34 P1aJUdJYd4A0Bv/tNYSOZt7ZSYT+yt7JvpLDxsjOs0pZdp+k8etUf6oR38VXZnL6pRPb BkOnw0SoI5AM5pdK8KwPPNdbqdtftz95o0+lGDoA3rwtOq+/bLqn1dA9XHJ1rldkROtI Hqx/YBsidYvmJTGUFPvZ+Ktaei++T6IAzJ/WoYSrd0C3SwHWqhJf9cS8k8Ou08WMMDUF /gIuyHs1L02Qz1pFaqnMXXDO7TMJyWBk9LYTpV3bYuGjUpAUyxjgaOxY+XV6Z09h3tTS FgLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=30yACwz0; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-89623-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89623-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d4-20020a05620a240400b007882225b0a8si659926qkn.158.2024.03.02.15.51.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Mar 2024 15:51:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89623-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=30yACwz0; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-89623-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89623-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CD5141C20C7D for ; Sat, 2 Mar 2024 23:51:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D90E53E3E; Sat, 2 Mar 2024 23:51:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="30yACwz0" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 0D1EE1E86C; Sat, 2 Mar 2024 23:51:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709423470; cv=none; b=FwsfJo9w0Az6vhXshhmFPuv1REewwlu78wVzpApK+fl7yB4PMmLsBgoB6wcU3DX3dCZ/TlEZN1u8fKuKCTRMLY2t1jkW6DWeVoq3oRn8VTec/a6bLrMsrdWJ+qWljZCmPcsWjrr21/cWvCDZswMQaKnJek8SrIJpHXJ/CnbA4qQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709423470; c=relaxed/simple; bh=YVV/LRSOPQIuVZppKmH3vYEUPv5/W2F5X06MAiDMh9Q=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=mW8opr/daxs6/9IhQluSF8876Fxue+5dxVsSuefmoNohXVQkndSGDnbTEmVMR4N3dSmilJG3872Dnn13Al3p4MO3yld53XCUnFdDAjBRoaa2y/x8AW0DFlCXJNfKHGk39U1H1nrHHOUwnn6x9u67nh3/jGWxq89TZPOASijSpVg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=30yACwz0; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=U23c8qDFSaCYYJiNvipaVhnVpZ+kBbhVnMi2Nw79GGA=; b=30yACwz0kDzq2/TRq9mXttFtsN fXDqUoVA2llP/FU4/Of31lMIDWNfDtGV6GdFaU9v8okCzSUEfcCne79tvQ5/TMDzYQPcyxKvnV4Xd EKmV9Cpc/RV1RWNe4ilgpWQtzuTft1MmHUxi15zb6RpggvPOMa7dQN4mo4qNMrKc49un6sOFzqlPG RHAJAjniJOjR6RRVm83Vt03VkzSEW7TcvKwRUXRfaO8t4RXjyrhgujAvxkxqeNaDWh0l4e8uYwRKQ I3qtmJhGftxQoRWOF/srXC4w7is8/AQiluUmuwFiWeNq7xf0AWKrcJKc9e80AeTRj8xeR0DBEPs1w zUjRpa5A==; Received: from [50.53.50.0] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rgZ8B-00000004gN2-1GY1; Sat, 02 Mar 2024 23:51:03 +0000 Message-ID: <1ae706db-3684-4961-bfc2-6916d4b79bba@infradead.org> Date: Sat, 2 Mar 2024 15:51:02 -0800 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: sam@ravnborg.org, "Maciej W. Rozycki" , sparclinux@vger.kernel.org, Andreas Larsson Cc: Miquel Raynal , linux-parport@lists.infradead.org, "David S. Miller" , Arnd Bergmann , 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> From: Randy Dunlap In-Reply-To: <20240224-sam-fix-sparc32-all-builds-v2-4-1f186603c5c4@ravnborg.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/24/24 09:42, Sam Ravnborg via B4 Relay wrote: > From: Sam Ravnborg > > sparc32 has no limited DMA zone so there is no need to select ZONE_DMA. > > Based on analysis from Marciej: > " > Actually I think ZONE_DMA should go too (it's linked to GENERIC_ISA_DMA, > isn't it? -- cf. commit 5ac6da669e24 ("[PATCH] Set CONFIG_ZONE_DMA for > arches with GENERIC_ISA_DMA")), and the whole thing use: > > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") > > The GENERIC_ISA_DMA option itself was added to arch/sparc/config.in with > 2.5.31 as: > > define_bool CONFIG_GENERIC_ISA_DMA y > > despite of: > > define_bool CONFIG_ISA n > " > > The sparc32 code did not differ between ZONE_NORMAL and ZONE_DMA, > which confirms the above. This patch drop ZONE_DMA. > > Signed-off-by: Sam Ravnborg > Reported-by: "Maciej W. Rozycki" > Cc: Andreas Larsson > Cc: "David S. Miller" > Cc: Randy Dunlap > Cc: Maciej W. Rozycki > Cc: Arnd Bergmann Tested-by: Randy Dunlap # build-tested Thanks. > --- > arch/sparc/Kconfig | 1 - > arch/sparc/mm/srmmu.c | 1 - > 2 files changed, 2 deletions(-) > > diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig > index 734f23daecca..bdbde506c01e 100644 > --- a/arch/sparc/Kconfig > +++ b/arch/sparc/Kconfig > @@ -62,7 +62,6 @@ config SPARC32 > select HAVE_UID16 > select LOCK_MM_AND_FIND_VMA > select OLD_SIGACTION > - select ZONE_DMA > > config SPARC64 > def_bool 64BIT > diff --git a/arch/sparc/mm/srmmu.c b/arch/sparc/mm/srmmu.c > index 852085ada368..7aae2f6f4973 100644 > --- a/arch/sparc/mm/srmmu.c > +++ b/arch/sparc/mm/srmmu.c > @@ -975,7 +975,6 @@ void __init srmmu_paging_init(void) > { > unsigned long max_zone_pfn[MAX_NR_ZONES] = { 0 }; > > - max_zone_pfn[ZONE_DMA] = max_low_pfn; > max_zone_pfn[ZONE_NORMAL] = max_low_pfn; > max_zone_pfn[ZONE_HIGHMEM] = highend_pfn; > > -- #Randy