Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4000814iog; Tue, 28 Jun 2022 07:09:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tqP/4fo6/j9wswSZRN0/kc71MlIWgn7VRVQh2SOTLe/cp+ioRd+/y8KzQmrA0m9AMMftWO X-Received: by 2002:a17:902:ce90:b0:16b:8fe5:6c0b with SMTP id f16-20020a170902ce9000b0016b8fe56c0bmr3148318plg.110.1656425357715; Tue, 28 Jun 2022 07:09:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656425357; cv=none; d=google.com; s=arc-20160816; b=MYEORTNknAaneW01Px1MJm2FISRIa+JMk9IlEFm66oKK7EYvLhHI6+CZh5rmNVryWU 5Lk4bAN+/e/hlFWEVF9z4ZLr9ZvnET+kwJRYS/Ar4VhDFf9QxdjHRohoPpnUnjgm9Zbd wwlejnhho1yrjNEhMQokqCC7khaI4e07oJB+xO54AydnjOVYHCEOhg6QavWvA4zfAUL0 gBSrFhRgzY7nH2qpuTQrnQPYL5Jn7Jyo6zBUjZIDPg+U+H6UNElBLYfkmKzSItT7aoGY 0i4I4fYEBup/KtMi8cSANhHKg34vQvslCS1TwEBf6jRGwyDXMqf+SIHgILTB1BGc0AFD sjJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=EF0CLeIdJ0Iu6b5HOtcDvxIc/w6LNecipiXXzv1QOHY=; b=eiMj0KYhrx2MQhn251erU11woiUFGQJptbIzxJ6hOZPonm3sZ92la8aXqV1naBRFmP IXFeEWXc72S0I02wJ1HPHkcPLUBAApLHRcBqEcPlv2gxDyK18MDqbWFzmaBLQzO3cHVk jGn1vKOvAJEUZ6FOFBUeTuObiuQiwTuJtyLifYgKQ86DQWqxyiNdZEGPsk4gFPfYxZV2 1d69EgNlFDrNphIqrNwp1OaSEjVQsK6A9qOINAeHVyKx44G0NDe8YXgxda4QfP2Ft5Ks 80xvFAfa61otVngCiJVcrUZGoSREFoBSRkuBKhe4EnD3ZLrkepkkhm7zraTFqI3SGwmt 2ndA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w9-20020a631609000000b0040cf0420ba0si17952367pgl.33.2022.06.28.07.09.00; Tue, 28 Jun 2022 07:09:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346624AbiF1Ndu (ORCPT + 99 others); Tue, 28 Jun 2022 09:33:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346604AbiF1NdQ (ORCPT ); Tue, 28 Jun 2022 09:33:16 -0400 Received: from relay12.mail.gandi.net (relay12.mail.gandi.net [217.70.178.232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 665C813E20; Tue, 28 Jun 2022 06:33:15 -0700 (PDT) Received: (Authenticated sender: ash@heyquark.com) by mail.gandi.net (Postfix) with ESMTPSA id 27199200014; Tue, 28 Jun 2022 13:33:07 +0000 (UTC) From: Ash Logan To: krzysztof.kozlowski+dt@linaro.org, paulus@samba.org, mpe@ellerman.id.au, christophe.leroy@csgroup.eu, robh+dt@kernel.org, benh@kernel.crashing.org Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, j.ne@posteo.net, linkmauve@linkmauve.fr, rw-r-r-0644@protonmail.com, devicetree@vger.kernel.org, joel@jms.id.au Subject: [PATCH v3 11/12] powerpc: wiiu: don't enforce flat memory Date: Tue, 28 Jun 2022 23:31:43 +1000 Message-Id: <20220628133144.142185-12-ash@heyquark.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220628133144.142185-1-ash@heyquark.com> References: <20220622131037.57604-1-ash@heyquark.com> <20220628133144.142185-1-ash@heyquark.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 pgtable_32.c:mapin_ram loops over each valid memory range, which means non-contiguous memory just works. 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 693a3a7a9463..6cdb561c05c5 100644 --- a/arch/powerpc/mm/init_32.c +++ b/arch/powerpc/mm/init_32.c @@ -124,10 +124,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.36.1