Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2036329imu; Thu, 10 Jan 2019 07:15:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN5JNjN+SLO/aiWcA7Jo4P7sHYRobfQVmo29zoVAnukCio6G2f93E1TZqXG1L0sm2PBdU7Gu X-Received: by 2002:a62:e0d8:: with SMTP id d85mr10397665pfm.214.1547133356827; Thu, 10 Jan 2019 07:15:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547133356; cv=none; d=google.com; s=arc-20160816; b=KfrjLQuPzrGC7PoLUpx3RfRimTsGkqmqddJBGH6fce/xX9gCA+Zgp6yKQqiXHPyKbl yoI//Qr13vhghJOADCWIkPa/7LPrACmYmf12X94HLCZBmP8g6qGygEpNGF9kX2gDrkLe pV4G9pAPGlLPBf2nmqj+6XMFAymexq7juWuGxipEKMWySAaAGr9X3+QIHtJXwxaKoKCn D2+C/CghxXwMnHe3AbvwQsBih5S7Uu6aE4IBtXq/sz5VxUWvBQnLE77zcEHVV6pjwBaJ QM3nWJjujYlOydMNFyDdSoczB8wwt0VFZN5FcPOklyV3zrENPn7iM/wp/Mb795RtfWjL Kiyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:references :in-reply-to:message-id; bh=KyNyxe8Ll/uKXOchcBPikH8i8fpOeG8E6/EG+VfdlPY=; b=kUhmEMmeSbS79vXG/9WkIKEOqLyQjov/qgo+jswnIwtFsb3oUTwGALhMYob2+4z3IG 7ZNI0uKGPZo9J7GGttPUXuFA/uXse2glM46rCE/ISNfqJz2V8oraZiOIOyianyOD9Xjy 3q9GkKbtN5Z7db8CgirAInWXuox1ZYzhCDZyO1/nu+LzTerv8MZKJJqFMlRRBRgtnp0j veRAOUR9AT5NpLBvFo/hS9YtbBvo5n59C0mvn5ZQZc3879vC7U8KWHTqaRgbuKBE0Cqd jH8q7wHaHPLAMLi6RBtbRTlahyPi080AxU+ySGrRiHIKMgpvK29XuENsIf7Ek150gfXf HdRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y22si17337401pfa.6.2019.01.10.07.15.41; Thu, 10 Jan 2019 07:15:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729626AbfAJPLw (ORCPT + 99 others); Thu, 10 Jan 2019 10:11:52 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:48008 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729591AbfAJPLu (ORCPT ); Thu, 10 Jan 2019 10:11:50 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 43b8bl6Mnyz9v0fB; Thu, 10 Jan 2019 16:11:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id 4Bi0Zpi_yUa5; Thu, 10 Jan 2019 16:11:47 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 43b8bl5gm5z9v0f8; Thu, 10 Jan 2019 16:11:47 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 47DC48B898; Thu, 10 Jan 2019 16:11:49 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id wOLRlTI9JwIE; Thu, 10 Jan 2019 16:11:49 +0100 (CET) Received: from po16846vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 1A55F8B89F; Thu, 10 Jan 2019 16:11:49 +0100 (CET) Received: by po16846vm.idsi0.si.c-s.fr (Postfix, from userid 0) id E0AD66BF21; Thu, 10 Jan 2019 15:11:48 +0000 (UTC) Message-Id: In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v2 05/15] powerpc/wii: remove wii_mmu_mapin_mem2() To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , j.neuschaefer@gmx.net Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Thu, 10 Jan 2019 15:11:48 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org wii_mmu_mapin_mem2() is not used anymore, remove it. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/embedded6xx/wii.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/arch/powerpc/platforms/embedded6xx/wii.c b/arch/powerpc/platforms/embedded6xx/wii.c index ecf703ee3a76..235fe81aa2b1 100644 --- a/arch/powerpc/platforms/embedded6xx/wii.c +++ b/arch/powerpc/platforms/embedded6xx/wii.c @@ -54,10 +54,6 @@ static void __iomem *hw_ctrl; static void __iomem *hw_gpio; -unsigned long wii_hole_start; -unsigned long wii_hole_size; - - static int __init page_aligned(unsigned long x) { return !(x & (PAGE_SIZE-1)); @@ -69,26 +65,6 @@ void __init wii_memory_fixups(void) BUG_ON(memblock.memory.cnt != 2); BUG_ON(!page_aligned(p[0].base) || !page_aligned(p[1].base)); - - /* determine hole */ - wii_hole_start = ALIGN(p[0].base + p[0].size, PAGE_SIZE); - wii_hole_size = p[1].base - wii_hole_start; -} - -unsigned long __init wii_mmu_mapin_mem2(unsigned long top) -{ - unsigned long delta, size, bl; - unsigned long max_size = (256<<20); - - /* MEM2 64MB@0x10000000 */ - delta = wii_hole_start + wii_hole_size; - size = top - delta; - for (bl = 128<<10; bl < max_size; bl <<= 1) { - if (bl * 2 > size) - break; - } - setbat(4, PAGE_OFFSET+delta, delta, bl, PAGE_KERNEL_X); - return delta + bl; } static void __noreturn wii_spin(void) -- 2.13.3