Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2173245imu; Thu, 29 Nov 2018 00:11:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/X+k4b6oSf1YjdoKK3ET5AIS03i1iulMIvKWxwisI39G4C9o5Zw0YlL/th5oGozDT6DGu6M X-Received: by 2002:a62:b511:: with SMTP id y17mr463788pfe.199.1543479087910; Thu, 29 Nov 2018 00:11:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543479087; cv=none; d=google.com; s=arc-20160816; b=BUCVGXu3V2h+ZFFaa0vFGe05dFP/U7ZcYmC8t/jeWkgtZu73lQpgI98g0mePY8BgPK tH5ngtFAkRdujP3jSAYwyglqk7fqCo/8uino334FRxRa0rYg6liZtN1FVcp3dtYUXvds czrs+RPDucATMQTNpgArznFIFQiTiZsugUNd/KUitfRmdEY7YPJ/2DZHwpXPEspUfqPv 3ea3S74MgK+f+wr5i+xZSce8RmK11FM13t9E126t9l3PCe/BCfE31CGDGDJlsI2sL0dr oj4EW/IEz+VmiTa2hBo5NQzNDlmaVclutSC6P1L0IQCLbLzIF4U6IVohYU/SrQecbFxj r9rg== 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=k5JMahheZs2uQ3oFiZqADY59zJBJ9jFJZ/9mIKAbLFU=; b=1BJr6g4JJKho/oSqcsazDovd3lh3sNadbO3NwHYy70sXfrKplQe9ARL7lh5XRUHYer C+KgUQFqdlph0WbymFNjA/huJJLUuSMKPKhm9/RoUP9sWn3UJwg/yDnA8DvHix9cUB1i qA3E0adDCcf8n8kv+oDL/Z6fvlisHrj3O+qZEPVTxIfy6kNmrJmlO61fWjASHJlTHYb3 knrYThK/Eb1lxSRSMB00jJGUtHPtelNyBUZZe8Z7Gw0vJDAYLIq0rBQbfsldkHTxj70Z 8uK2PnE4yBQPIVGAPjswNzMz7D7wupJkvC+LUACQTih6tGBhFRopY5EzWwLOlBgsR3TT inqQ== 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 w12si1378373ply.404.2018.11.29.00.11.12; Thu, 29 Nov 2018 00:11:27 -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 S1728371AbeK2TPJ (ORCPT + 99 others); Thu, 29 Nov 2018 14:15:09 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:2993 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727391AbeK2TPI (ORCPT ); Thu, 29 Nov 2018 14:15:08 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4359F76j0Jz9vGnx; Thu, 29 Nov 2018 09:10:35 +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 REu9D7YQwBKu; Thu, 29 Nov 2018 09:10:35 +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 4359F76F9Gz9vGnW; Thu, 29 Nov 2018 09:10:35 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id B03D08B890; Thu, 29 Nov 2018 09:10:36 +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 ihfUIQaC0NS4; Thu, 29 Nov 2018 09:10:36 +0100 (CET) Received: from po14163vm.idsi0.si.c-s.fr (unknown [192.168.232.3]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 8F55E8B762; Thu, 29 Nov 2018 09:10:36 +0100 (CET) Received: by po14163vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 3D4C569AEA; Thu, 29 Nov 2018 08:10:36 +0000 (UTC) Message-Id: <118fde6f571cd1a6abfa2ad762b4abe3250c637b.1543478200.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v8 16/20] powerpc/8xx: Enable 8M hugepage support with HW assistance To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Thu, 29 Nov 2018 08:10:36 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HW assistance naturally supports 8M huge pages without further modifications. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/tlb_nohash.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/mm/tlb_nohash.c b/arch/powerpc/mm/tlb_nohash.c index 4f79639e432f..8ad7aab150b7 100644 --- a/arch/powerpc/mm/tlb_nohash.c +++ b/arch/powerpc/mm/tlb_nohash.c @@ -97,6 +97,9 @@ struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT] = { .shift = 14, }, #endif + [MMU_PAGE_8M] = { + .shift = 23, + }, }; #else struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT] = { -- 2.13.3