Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3242664ybk; Mon, 18 May 2020 22:54:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWYrDCz7cF6AQ2tdQARZNTZx81AmIoKmtWv+SZkN/ou96iwrjaSDFMF+gE24+nuxSg8eVb X-Received: by 2002:a05:6402:1d2d:: with SMTP id dh13mr15928181edb.169.1589867699381; Mon, 18 May 2020 22:54:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589867699; cv=none; d=google.com; s=arc-20160816; b=bdxhLjJnWamRSfUg7zaVbhAMAgUEc2zKy7oyJ8foOPy6XefpYF7AYc9W3twBXqaGvk PPsU+/vaN8ItSJLPNzb8w0xtPxYiHF4PXnK8SrxsPo7dpfBXmKe/mg95kuM2hReHmmPx T6TZtso8hhSDAfdhGUXMZUQ57eWDy3rbBZPkhj0fvpocHAm3TFfeeCnEj/s6RaBDU/OS rTVbQ1r37s5J1Sd78hIXYuCudUB/hKxFG3jcnE4NrjRkpJ07hFW2ocN2lfI9sZ1bhCwP 3kCaCbcY01Qxjc/dCsuhL4XC1WLNCrRaRIeb5eNIF0RpclrJbnM0bvxuIucQo8lgHXNy h4JA== 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=oeZGgTIxlsTA12b5IsFg8hhK/U4yMHsd7bEiC42YV30=; b=Ie0NL0fJrFTczV7iNiehXNEiLeO1WgZjhHrD2TBiJa/6ONyB73ocZ6MeJ1x3kUbHFO T9wUOsbGAX4XtPAtKlRmHr8fCnZ8Yptw7Zu3m/Q0U9IchI2kvAswIntWYcCZjGSg0c8M p6jegF2r/jvF9Meh+wOlEu9rB6IZwHeOQfea3CCRwx2TfCZ2t1Xq5V6+35o7NPvBXxtf z4lYxiNpzIMuMdvva03dXmU5pc0Q+1zoGGfQzs0rzlO1O5X7GvueSc4xI6XAB0K4Y9wF 6BiyxIs7MLG8YmFUCSJlIHqyICrEIb8ROYL9Nw0N5DKor5Ich+UgWjjskYaBo1nz8Te8 4jcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si8051812edy.66.2020.05.18.22.54.36; Mon, 18 May 2020 22:54:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728890AbgESFui (ORCPT + 99 others); Tue, 19 May 2020 01:50:38 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:58079 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728612AbgESFtP (ORCPT ); Tue, 19 May 2020 01:49:15 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 49R4h80k09z9txm5; Tue, 19 May 2020 07:49:12 +0200 (CEST) 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 JlPN4lPXVc7S; Tue, 19 May 2020 07:49:11 +0200 (CEST) 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 49R4h764qdz9txlx; Tue, 19 May 2020 07:49:11 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id F0F498B7A7; Tue, 19 May 2020 07:49:12 +0200 (CEST) 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 BKU90zo2G3Jp; Tue, 19 May 2020 07:49:12 +0200 (CEST) Received: from pc16570vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id B24538B767; Tue, 19 May 2020 07:49:12 +0200 (CEST) Received: by pc16570vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 9081765A4A; Tue, 19 May 2020 05:49:12 +0000 (UTC) Message-Id: <1ece39fac6312e1d14e6a67b3f9d9f9f91990a7b.1589866984.git.christophe.leroy@csgroup.eu> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v4 29/45] powerpc/8xx: Move PPC_PIN_TLB options into 8xx Kconfig To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Tue, 19 May 2020 05:49:12 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PPC_PIN_TLB options are dedicated to the 8xx, move them into the 8xx Kconfig. While we are at it, add some text to explain what it does. Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig | 20 --------------- arch/powerpc/platforms/8xx/Kconfig | 41 ++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 20 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 30e2111ca15d..1d4ef4f27dec 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -1227,26 +1227,6 @@ config TASK_SIZE hex "Size of user task space" if TASK_SIZE_BOOL default "0x80000000" if PPC_8xx default "0xc0000000" - -config PIN_TLB - bool "Pinned Kernel TLBs (860 ONLY)" - depends on ADVANCED_OPTIONS && PPC_8xx && \ - !DEBUG_PAGEALLOC && !STRICT_KERNEL_RWX - -config PIN_TLB_DATA - bool "Pinned TLB for DATA" - depends on PIN_TLB - default y - -config PIN_TLB_IMMR - bool "Pinned TLB for IMMR" - depends on PIN_TLB || PPC_EARLY_DEBUG_CPM - default y - -config PIN_TLB_TEXT - bool "Pinned TLB for TEXT" - depends on PIN_TLB - default y endmenu if PPC64 diff --git a/arch/powerpc/platforms/8xx/Kconfig b/arch/powerpc/platforms/8xx/Kconfig index b37de62d7e7f..0d036cd868ef 100644 --- a/arch/powerpc/platforms/8xx/Kconfig +++ b/arch/powerpc/platforms/8xx/Kconfig @@ -162,4 +162,45 @@ config UCODE_PATCH default y depends on !NO_UCODE_PATCH +menu "8xx advanced setup" + depends on PPC_8xx + +config PIN_TLB + bool "Pinned Kernel TLBs" + depends on ADVANCED_OPTIONS && !DEBUG_PAGEALLOC && !STRICT_KERNEL_RWX + help + On the 8xx, we have 32 instruction TLBs and 32 data TLBs. In each + table 4 TLBs can be pinned. + + It reduces the amount of usable TLBs to 28 (ie by 12%). That's the + reason why we make it selectable. + + This option does nothing, it just activate the selection of what + to pin. + +config PIN_TLB_DATA + bool "Pinned TLB for DATA" + depends on PIN_TLB + default y + help + This pins the first 32 Mbytes of memory with 8M pages. + +config PIN_TLB_IMMR + bool "Pinned TLB for IMMR" + depends on PIN_TLB || PPC_EARLY_DEBUG_CPM + default y + help + This pins the IMMR area with a 512kbytes page. In case + CONFIG_PIN_TLB_DATA is also selected, it will reduce + CONFIG_PIN_TLB_DATA to 24 Mbytes. + +config PIN_TLB_TEXT + bool "Pinned TLB for TEXT" + depends on PIN_TLB + default y + help + This pins kernel text with 8M pages. + +endmenu + endmenu -- 2.25.0