Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp787891imp; Thu, 21 Feb 2019 11:10:52 -0800 (PST) X-Google-Smtp-Source: AHgI3IZyHBf4r2YMWVKj/VANejVgaRH0uD2hv+pvZBMrVQ+2esMP70q0DjYUeZ57qbQdbFR1l8Nt X-Received: by 2002:a63:6605:: with SMTP id a5mr71766pgc.372.1550776252272; Thu, 21 Feb 2019 11:10:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550776252; cv=none; d=google.com; s=arc-20160816; b=luu47yjDgQGcQPPhN+Mv6AOSc5g5rBmWmJ1od8q154PSoPx4XtK2f3zFXrEqeVP/rv 2c3nbUJS2IsK/sBoaqimJ00JgXpAENj7EP1OTjJfI8v2654UGsUV7C8e+bQEDcT4FaYg pV4kkhw1t9jQ5x4JGIPCb70Mv+SLp4Wtb1sgIKwUTr7AzZMT38fldGyJtcEXhk9G5/TP 6okI0xcm1S9DTvHfzWG4aBKb6nAAbzO84FT+ya5h3kyFZ3gQ1vcCLwB7BA24mZL5saqF +5XPnSu1h1Ip9Zq7uP0QfEeNGypG9n8P/Ypwj6htaDbuwiwvDZsLbKi8iz8snvvSiL/l Mqkw== 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:dkim-signature; bh=UEoSB/AezPasAGD2CrkCIDztNdkmNHmxKJ269GvTrfE=; b=qG3p5TQjMdZx0TkCjKNmh5jRKeFNwr08kqzC0gn37VYXfNjq+dA7y/MGK0K2jXqtd7 GJRy9dJPWg3IO9emErPtLM4ZsZwI9857lth9cKaHZ9SxInnUpB1FSjfF+59MSEA8JIja 8wjATa6cB8xGYoXq+4CMWtqQwhLWe4D3qK76Pyv5Q1ONLm+odtXhY1BGIqJdaXxp+aZj 7CiQSMUaAxeEhuGXvZea/fmXiR8w7AFQR0IjyVkLbkjfRkWSPsu3IhjerLWYUDdTdrjG pUgC8X1PM3ev+xcKTvHSRgMvFpUe5IIhr3AmVpUdE1+GLPLQrZ6+Rca/bkHdfkibeY/D YCuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=fvz8zppP; 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 bf7si15183087plb.33.2019.02.21.11.10.36; Thu, 21 Feb 2019 11:10:52 -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; dkim=pass header.i=@c-s.fr header.s=mail header.b=fvz8zppP; 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 S1726527AbfBUTIo (ORCPT + 99 others); Thu, 21 Feb 2019 14:08:44 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:3254 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726356AbfBUTIn (ORCPT ); Thu, 21 Feb 2019 14:08:43 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4453sk6t1Cz9v6l4; Thu, 21 Feb 2019 20:08:42 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=fvz8zppP; dkim-adsp=pass; dkim-atps=neutral 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 wqAh_F--macZ; Thu, 21 Feb 2019 20:08:42 +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 4453sk5nCtz9v6jt; Thu, 21 Feb 2019 20:08:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1550776122; bh=UEoSB/AezPasAGD2CrkCIDztNdkmNHmxKJ269GvTrfE=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=fvz8zppPI3pNVWm9tosDrIenkRwj88A+7e2BN1QYeP0C/84bfvgODkYTjg9cthTSY K07G0GPGElkToaPZplZOM34cWkHaGw0LNzok/N+kG2mQaTxLK/kKxVg6021xbTY5M0 l/x/y9Y4cDuGuixJ58uR7VJlNn6uPrsGDl+YQ3O0= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id C887E8B86A; Thu, 21 Feb 2019 20:08:42 +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 zODctAoj-ekm; Thu, 21 Feb 2019 20:08:42 +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 9E8008B852; Thu, 21 Feb 2019 20:08:42 +0100 (CET) Received: by po16846vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 77D8B6EF61; Thu, 21 Feb 2019 19:08:42 +0000 (UTC) Message-Id: <4f65d1fed76072a0f6c1f76df6133dbb58dedd40.1550775950.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v5 06/16] 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, 21 Feb 2019 19:08:42 +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 | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/arch/powerpc/platforms/embedded6xx/wii.c b/arch/powerpc/platforms/embedded6xx/wii.c index ac4ee88efc80..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,30 +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; - - if (__map_without_bats) - return 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