Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp818219imp; Wed, 20 Feb 2019 09:31:22 -0800 (PST) X-Google-Smtp-Source: AHgI3IbPY/mpUYnyj/rgpYwonpC1opw3uqG3ax+zIiJv/6Lz/EXuxnp1EudSCEjvSpp6VGEqws4G X-Received: by 2002:a63:d904:: with SMTP id r4mr30394230pgg.207.1550683882628; Wed, 20 Feb 2019 09:31:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550683882; cv=none; d=google.com; s=arc-20160816; b=NwVingQB7Xx73MPzRN6YSWTPYUkyjw+mn/VHmFlIxD0OOwWMw9vL36utN1Qer28VO2 T9asZXee+RJwmJSvqkeQm6KB1SJvrTrAT7uAoD+pS0RSwFBSe8L5lodkQsd9tOzF80v7 5HwzRvtcL77Kl47jS+EPthpEGFk4Yi5xf0skiytJC3if5icBElhADmfYWeqeOQ9INarW ILTOB2nga1HG4CfHUO1FG+eIsIuy1MA/iNfNLys0ysE5Fk2+xEXSpIY7Ai6AI8yL3kFd 20k/HO73+70oPBJ4CjCNmQjsdzb2mDJ5mw1EGt+xfc4VrtRawBPkHnZbUIU6moA9G2Sr 7tAw== 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=lirqDGZhoiCLhH3WTZCgnIUFW2NpaAGi7IqjNBwOyRdgxXzQu20Fhspz8nPEf0Da4I vEiOk/XJVT/wUg7ERd/YGTP6oYEzcGfKj4tcTyyRcteww80sfmCqQmGWpFV7IiPuPVCs E52hqaqL7Kcbok9jCWYd4wl5nSZoRDLlmOW45DeFLPcBHPUH3eKwW1xJx1lk6wTdwpvo 4G1i82KKA2Ylb5ERAPgCuuPa1dqpCpxAAi08/QglUFJ1MDTQRm5yXvLA5k2euSiCgyej sAlX64E7qx1OWMs5nHuAQHpIt64NyXT+qW2JSHjL23aTkEfPBf/0b6fYMDcsrbXxeNqc tEUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=eWcYVOLn; 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 d14si8538223pgn.536.2019.02.20.09.31.07; Wed, 20 Feb 2019 09:31:22 -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=eWcYVOLn; 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 S1727280AbfBTRaQ (ORCPT + 99 others); Wed, 20 Feb 2019 12:30:16 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:19652 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726400AbfBTR3O (ORCPT ); Wed, 20 Feb 2019 12:29:14 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 444PjM4Y7rz9v0g9; Wed, 20 Feb 2019 18:29:11 +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=eWcYVOLn; 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 PHCt6RmbNKs5; Wed, 20 Feb 2019 18:29:11 +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 444PjM3Hhrz9v0g0; Wed, 20 Feb 2019 18:29:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1550683751; bh=UEoSB/AezPasAGD2CrkCIDztNdkmNHmxKJ269GvTrfE=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=eWcYVOLn9/18m0GAmVa3TK695Joz4GHZjcJgHhSe9bnjOdddFYLfAPKcnYOKElWjb Kns9E6KKFXJBcY9SHGYF3t/ndsS4EPaHGkYyDtW5jkphCzJtIwZY6BQk3LXZti3M6c FhFstCbaXqAMuhV6s27QYMOZehOW6pWWHnuRK77U= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 206E38B84F; Wed, 20 Feb 2019 18:29:13 +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 c4q0fKGnpC-v; Wed, 20 Feb 2019 18:29:13 +0100 (CET) Received: from po16846vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.231.2]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 03E2E8B84A; Wed, 20 Feb 2019 18:29:13 +0100 (CET) Received: by po16846vm.idsi0.si.c-s.fr (Postfix, from userid 0) id F256F6E85E; Wed, 20 Feb 2019 17:29:12 +0000 (UTC) Message-Id: <753e5426d1693d59c6811facd8a4fcc113049644.1550648295.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v3 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: Wed, 20 Feb 2019 17:29:12 +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