Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1042384imu; Wed, 28 Nov 2018 03:48:02 -0800 (PST) X-Google-Smtp-Source: AFSGD/UfgF/65AgEQDgGFirFY1Ar1jeJHvP1ZuZqBPYb6WDPYUCoj/7tG6Oe1chwvo0QH9ZRuY+2 X-Received: by 2002:a63:6906:: with SMTP id e6mr32416233pgc.144.1543405682720; Wed, 28 Nov 2018 03:48:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543405682; cv=none; d=google.com; s=arc-20160816; b=vPg1esUrLA1uq9wCOMcoeWWgvae8XghuV3j+C/0rBuZrSDuOBrjGt63Vl1qfcOs8ih LahzCWj7osSYvJTqMx4ywRGpo3qsENez34VhyfMUGBmpw0NLf6sCLO8zoyIFNLJgM1RD jCHz4Uw7tGdeiDgRIgp41counEy2o/R4ilqybymvu7zOwVNhsBrw1Y7XwtBNC1kRJpVY JK5YQa58gTytY20S7twwy75bYR95zXTz0kHo2M68k28HGjl3YSpsgcTFQ0sPrUkfE9Lm ikK6M0HVZfurTXLPX/8yFoYi0HDK8aBeOAFZfnWags5wUeyLOVPcLYqcc7q3WfaMAff1 BxFg== 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=A426I/kiUakYvppd/TplrU6z9x+qNrMw+wX7nJlD+2LUdmBHPmpw84ZwFBft/NtKTq cNiK6t441lNlqoY0xjNx+aCUH65W6H0LOVgoGeJXh7yQCsdNJ5qFCqJn3fmJFmHSPfT0 PVCUcdYElU9NrvjatvroJYsdrXMTcvTEC/3Oplt21fpY7meyIiwtwHHw9uiTv0VJFidR gi32v/bw6DDzj7KOezGmtRKT7+XvP1YULH4j7Or2ceFjyHOJ772eohza1mFaOiLZgpRx uKr5kAZoZVDfP9ehau8Be4JNr0hImhk9uYq+YbOKh+E0jnGo35tEs6ynvig2/ypHZ7uN VLZA== 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 p187-v6si7643363pfb.127.2018.11.28.03.47.48; Wed, 28 Nov 2018 03:48:02 -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 S1728874AbeK1WsK (ORCPT + 99 others); Wed, 28 Nov 2018 17:48:10 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:39942 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728835AbeK1WsJ (ORCPT ); Wed, 28 Nov 2018 17:48:09 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 434f511yCnz9v09t; Wed, 28 Nov 2018 12:46:45 +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 PpBFvOGbriNk; Wed, 28 Nov 2018 12:46:45 +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 434f511VTdz9v09s; Wed, 28 Nov 2018 12:46:45 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 427B98B869; Wed, 28 Nov 2018 12:46:46 +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 tefxGju5SB4r; Wed, 28 Nov 2018 12:46:46 +0100 (CET) Received: from po14163vm.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 2875A8B853; Wed, 28 Nov 2018 12:46:46 +0100 (CET) Received: by po14163vm.idsi0.si.c-s.fr (Postfix, from userid 0) id F0D9569B1B; Wed, 28 Nov 2018 11:46:45 +0000 (UTC) Message-Id: In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v7 12/16] powerpc/mm: Enable 8M hugepage support with HW assistance on the 8xx To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Wed, 28 Nov 2018 11:46:45 +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