Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1037713iob; Fri, 13 May 2022 20:36:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXt85C5/ke2ykJXEuPkFikC1K461crUNgMGfAwk8+Zrm5tieatM2yZpwKXDpnQZwtKcrhe X-Received: by 2002:a5d:47a7:0:b0:20c:5b3e:ff7 with SMTP id 7-20020a5d47a7000000b0020c5b3e0ff7mr6563456wrb.362.1652499359784; Fri, 13 May 2022 20:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652499359; cv=none; d=google.com; s=arc-20160816; b=YrXiOvcaymmWw4vo3rA+1Gsu25JKdu78J243/7fDw3ky1Om9220vYHu3pRszphmQl9 FHYWu0Yrh2o/MANenPeY84ekls9Dctm7dsiyinupLjqSplXNiv+2j6cnQQBO95a2P31v 5KqucBg2oEMWQRaYjdwb03cWXtVDEFGYIdW3llBHV6njXvC6tCz4WSK2sl2dS7TA1F/1 XLHrnSG8zJdOZTURlM7CWHCeuQXI99Dyp32zYPUWn/H4ql9GVSrVfgapaoQUtC5bbTTd 6WMPlJ8yAzAWpCjM0oepYXNs/M5UDxq8Jip+VdZ1iBfGtu+5RU5DHmDXjg9ykYNculdM 4NKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=S8/czRRNMUGvFOmdo+fm91UAWRT3XDJRmJAwvq7fP1g=; b=UJULFhoVZcReHnbolQbTGSKRXSGqFTBI4NGbqa39IdfAojaMaQxoTZD4Y3zeBxel/6 7Ye+JGwHdf07SB2tt08m+fFi2rm91YmeQKlDvt5HEQgOM02PoEGD4UnpuEhlpUnuwClB 0wWvrR9Ef6uTU3FYFFKVsOiqPELvxP4Sv9ETJU0aj4C/RWZyHLQg+GUxqfgzKFkhszMU XS1/RrMhB/U6G/8s7Fp8LKSwj1jCJ1JM1Cq1WA6pJxbRYhVA15r5mgP7BTZda76UT7M+ iQ1GboTYNGKP53AL3g6eBZtM9F1z9nf+6sLfwhIyhDYzLyQJRwK1umNPaXyHeJQp77Tu mf7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ObSfTv7W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v12-20020a5d43cc000000b0020adfc2ddb8si3893980wrr.270.2022.05.13.20.35.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:35:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ObSfTv7W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 396C043C331; Fri, 13 May 2022 17:11:45 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384829AbiEMWoE (ORCPT + 99 others); Fri, 13 May 2022 18:44:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349751AbiEMWoC (ORCPT ); Fri, 13 May 2022 18:44:02 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB00C4B86E for ; Fri, 13 May 2022 15:43:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4149BB831EB for ; Fri, 13 May 2022 22:43:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D9F9C34100; Fri, 13 May 2022 22:43:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652481836; bh=CijBO6wAUnPaCFQTl2hJH05BXYHWLo9sWJxBUdgdKoc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ObSfTv7WKs96jZfkU1xpZM/cHsUgFN9XhcihtZr+JLZs2bE7cJWtRdFiOLCuEELBV BFPwv/vgXbiEqNviB7tWKSWcYi32cpJvRhAFzN9aC7g3VZZ4mPzm4OG/u+fMdKX9ch MRI5bkl3B/oc+bYOwqSo8zYN+jRjxc0b87h8AAO85VslQHPD+x/RF8d1kW9dcvPU+Z em5k2gFi5Vwp32LQEmTvX+8VHZW7cjKURGA1McGbgJA2RZn1v4HcWjt40VGFjYdFG9 sSPqpEcq2btfkN+YJ1zmujV2kPKUje0nsGDTK1jPwS4iHLjD0c8kMLCXnOLjoxLF/z yu8L9P+aJhbwg== Received: by pali.im (Postfix) id C9DA22B90; Sat, 14 May 2022 00:43:53 +0200 (CEST) Date: Sat, 14 May 2022 00:43:53 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Ash Logan Cc: paulus@samba.org, mpe@ellerman.id.au, christophe.leroy@csgroup.eu, robh+dt@kernel.org, benh@kernel.crashing.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, j.ne@posteo.net Subject: Re: [PATCH 11/12] powerpc: wiiu: don't enforce flat memory Message-ID: <20220513224353.n56qg5fhstbaqhfz@pali> References: <20220302044406.63401-1-ash@heyquark.com> <20220302044406.63401-12-ash@heyquark.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220302044406.63401-12-ash@heyquark.com> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 02 March 2022 15:44:05 Ash Logan wrote: > pgtable_32.c:mapin_ram loops over each valid memory range, which means > non-contiguous memory just works. Hello! Does it mean that non-contiguous memory works for any 32-bit powerpc platform, and not only for wiiu? If yes, should not be non-contiguous memory support enabled for all 32-bit ppc boards then? > Signed-off-by: Ash Logan > --- > arch/powerpc/mm/init_32.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c > index 3d690be48e84..59a84629d9a0 100644 > --- a/arch/powerpc/mm/init_32.c > +++ b/arch/powerpc/mm/init_32.c > @@ -125,10 +125,10 @@ void __init MMU_init(void) > * lowmem_end_addr is initialized below. > */ > if (memblock.memory.cnt > 1) { > -#ifndef CONFIG_WII > +#if !defined(CONFIG_WII) && !defined(CONFIG_WIIU) > memblock_enforce_memory_limit(memblock.memory.regions[0].size); > pr_warn("Only using first contiguous memory region\n"); > -#else > +#elif defined(CONFIG_WII) > wii_memory_fixups(); > #endif > } > -- > 2.35.1 >