Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp466999lqs; Tue, 5 Mar 2024 07:14:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVZvz985IinRTlqHJQWhgCDmujzg4Gk7RpxelD4ly01iLftz9dyU1eG7Wnc6GqaArLgQikz8t/6qKQl6cAV7ReioNFUmKL0g8RK5vaHjg== X-Google-Smtp-Source: AGHT+IEdIpOMKdEqwjvI9w+gMJatX22Nv63A+HsKzhFw8gJ72P/QLpXbuMo0JgJk/PYZb0JYCZ4m X-Received: by 2002:a05:620a:1371:b0:788:2e0f:9d0b with SMTP id d17-20020a05620a137100b007882e0f9d0bmr2228103qkl.36.1709651665590; Tue, 05 Mar 2024 07:14:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709651665; cv=pass; d=google.com; s=arc-20160816; b=ik8ertnAmyoyfJOZViU22K4BU1z8JmETzUt5hQiD+UStNrkhuwEOkPXW8QOPppFFAW iuJxLjsAJvUx7yAoN9jyWW0pYKu4k+ReibnqCDg8Lf/uvRvwmo5rRexBDphTfMIOCl/N wed3sAiE+uwO6xDTEP/JWtyY6RB6sX2ZvsH2haHMvV0gxe+rjQZyW+runDuuZX8SGbNr oe2D2U9deB97zlmPXP3dE7zT+zGy683GCl1lj5gmXe5LFdRu+lqaCm9Z0tn202vV12OH ygT6KvBt3wc90prGy1gYkB4Ai+pCZPzkD8pp0/eU8VZZqTp/fEU2gGiVZo1O3XiWooAv Gjfw== 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=nAOcQQxfyLWQEVg8hHMxXxhTQYWM+Xvfq+95GhjZvz4=; fh=kOGUd5RihIS3D9KWC642uwNb/8NYH1nn7SscoJ4IiSU=; b=UdjrwrhFMQEX+puK1XADlmZ64Tv/Cdmy/LoQgK+zYsMgNsJux6EbwcjHYs9EsgeMHL SOUJGhBB+YNN2BDaNMLxiE/XJyXrNuTMJDLSH+qpI6iCGNePEX5eBHQaCSKsIojLavi/ +pLgTuS10dvwc4eAju7ydWPwcBbYR1mJqRN13hrdqH72rTBAz4b9tXl0I80OIuGR7h2G mbuxPlCf/5dP+52VTunGtL0JNTl8zrqNJArxy4Ud5UR5wWmC8Bmcnxg77DDEhiCjeH4Z cr7S58wkdVWHrlvMvuELbPgopvsuHjCMnaz4dQdKtjQafsPHicERSTTNqUvo2ZH+EbSL L/Sg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gaisler.com header.s=unoeuro header.b="Bknpb/tx"; 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-92582-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92582-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=gaisler.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o10-20020a05620a2a0a00b0078839c2e69fsi645971qkp.753.2024.03.05.07.14.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 07:14:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92582-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gaisler.com header.s=unoeuro header.b="Bknpb/tx"; 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-92582-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92582-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5419C1C217ED for ; Tue, 5 Mar 2024 15:14:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A2911272D9; Tue, 5 Mar 2024 15:14:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=gaisler.com header.i=@gaisler.com header.b="Bknpb/tx" 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 009AC126F11; Tue, 5 Mar 2024 15:14:05 +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=1709651649; cv=none; b=V/UL2LMTWF/iqGpf2bEpuqtthQP3E20QlkWZAo45JQroLW26xkk56u08AHaMNQnH4zdWJpLqCqh0Id3CKSC+8OK0qFlNxP6oAHH0ZbYoN6BR17o3rj26vdzog5piBkLXldICxdLljwYodn1v5NOg6C+tAACEQEHfP6XrTcESzJY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709651649; c=relaxed/simple; bh=9BcKeqQgSspXTd5pEOPZ0emw1R0TCGbT2Hk5UPqGfyg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=SIy/+JfytuGkDmLoQnaiOHnUe+4mqBLfcFaad2rF/hgNSKAtQ1rzARliqVxZEwqwFbvDPu8ZCRP9LTN/+1IuLFEoko4xqD9zui6Zq7py3Z22kTjyEGKd9BH5ukTje0NoJmq8UmstG3DGryE9ykncmMueWCg428qLEZc3eGbuv9Q= 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=Bknpb/tx; 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 4TpzRF2MjHz682F; Tue, 5 Mar 2024 16:06:17 +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 4TpzR46xgsz683V; Tue, 5 Mar 2024 16:06:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gaisler.com; s=unoeuro; t=1709651177; bh=nAOcQQxfyLWQEVg8hHMxXxhTQYWM+Xvfq+95GhjZvz4=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=Bknpb/txNNHizrs/JKzE+iUe9fa6nvHCeop4lVEzvRtfRsbwSIgYqtHOBIXZGM17A tVyXKtgPZr/Fp+duFOk6h4o7ScbzA3kuZxdawDunQJ4H4EQoMgLo2iSduHf5ZiODAg e9qWHtWvXzpECAGwm+vql0ntyXUY8ImWIA9lpZyU= Message-ID: <8d5780f5-1047-48d7-a9c9-09b95c7b5604@gaisler.com> Date: Tue, 5 Mar 2024 16:06:07 +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: sam@ravnborg.org, "Maciej W. Rozycki" , sparclinux@vger.kernel.org, Randy Dunlap 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: Andreas Larsson 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 2024-02-24 18: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 > --- > 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 This however makes a number of PCI drivers that depend on ZONE_DMA unselectable. > > 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; > > Thanks, Andreas