From patchwork Fri Dec 17 10:27:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Leroy X-Patchwork-Id: 12684213 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D8B5C433F5 for ; Fri, 17 Dec 2021 10:31:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 47E806B007E; Fri, 17 Dec 2021 05:27:57 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 42E0C6B0080; Fri, 17 Dec 2021 05:27:57 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2A8226B0081; Fri, 17 Dec 2021 05:27:57 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0037.hostedemail.com [216.40.44.37]) by kanga.kvack.org (Postfix) with ESMTP id 1E46A6B007E for ; Fri, 17 Dec 2021 05:27:57 -0500 (EST) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id D9060181AC9CC for ; Fri, 17 Dec 2021 10:27:46 +0000 (UTC) X-FDA: 78926910132.16.F9DC1D5 Received: from FRA01-PR2-obe.outbound.protection.outlook.com (mail-eopbgr120088.outbound.protection.outlook.com [40.107.12.88]) by imf30.hostedemail.com (Postfix) with ESMTP id 2783F8001B for ; Fri, 17 Dec 2021 10:27:45 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P0kHVsHQXrsQ9uiyJ4wJNxMAZCw65mJT9whsLBogGccdC5l6rTS+h8IPc+gHDjKLxJ9PRf2uXJONJXn6UYCTPa7CVg0uw8nredPjdI6O2g5pODY98XqSevkM+9vlS9Ixa67oxOjvueYtMOglVecmEzQGmpIIgLxONIX8LX1WtSHnp3TqGhilfT/xIo3t/FHyZVJsyNDyszPMGCbSYgWBM7wHXuxdGH18wWLPJQUIMVcOeihdH7O3/IiIUXDJyBE+cCLY+S+7OGz0L7GCgmw7YztH0p2zAEwJqXkqVvn395aUCLBlPkkWBy9rxHyWFW1urDEZfnwaL13wOO0tsG80Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Kal8uZy0vwBrMzZSbVRzSwNCiz8HNSzE2KXYS2+awQQ=; b=Ykj69sNVZx9hGohlsQj47S4LUP1+FnD8ESAuwkUy6dIdfU/t2U0CQz8E4uIzlXfawQfR577BbhAkwhUcGQShtuzEjQAzm+qdpwITtqxQdfgLILjIXZu10yRsL5z+PlVZNRayGTplAbYc5BsewQ6Y7FdRGnnS+54lx7aeguW3JUT0jLZRwquUW2sYmFjMOB28G/tCBndvb/9TGdJ0bA1CjwfeBcqisvn30Qs07GrbQ1XbO3ArLOF+rx5gSn4Uihmm6NTHlxGKgq2juDGo5YIo3nUNIdm+x7V/iLwxtZfSwxz6jfz1iabI5EWyaJT2YW71j9/YtSVZoCnQgpqGqkhBcw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=csgroup.eu; dmarc=pass action=none header.from=csgroup.eu; dkim=pass header.d=csgroup.eu; arc=none Received: from MRZP264MB2988.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:31::15) by MR2P264MB0146.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4801.14; Fri, 17 Dec 2021 10:27:43 +0000 Received: from MRZP264MB2988.FRAP264.PROD.OUTLOOK.COM ([fe80::f0ef:856d:b0de:e85d]) by MRZP264MB2988.FRAP264.PROD.OUTLOOK.COM ([fe80::f0ef:856d:b0de:e85d%5]) with mapi id 15.20.4801.016; Fri, 17 Dec 2021 10:27:43 +0000 From: Christophe Leroy To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , "alex@ghiti.fr" CC: Christophe Leroy , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-mm@kvack.org" , "akpm@linux-foundation.org" , "catalin.marinas@arm.com" , "will@kernel.org" , "linux-arm-kernel@lists.infradead.org" , Nicholas Piggin Subject: [PATCH v6 07/14] powerpc/mm: Make slice specific to book3s/64 Thread-Topic: [PATCH v6 07/14] powerpc/mm: Make slice specific to book3s/64 Thread-Index: AQHX8zC688aLht4OC0+lqZbp9OnzKQ== Date: Fri, 17 Dec 2021 10:27:43 +0000 Message-ID: References: In-Reply-To: Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 965c4765-15d8-4e25-37aa-08d9c147dc8c x-ms-traffictypediagnostic: MR2P264MB0146:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:178; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: znZTJlpSQ0Z/XFWA6+67i7nOpXRxp23ZtkfSvpW42tbA2ojDPjtvhYxPSDHrjK5i1Ji0csmqPugqsAkSbUJU8N93wZfovXqRBvzIYUfDFU/114xs+TtRB9s34ZCFL7rjrbEcPi44KEc82DV6yPZ1EYl8jZjRu43wDYF6BURHEucrGy3FQ7W2F50W4U2bgTqvua6a4p3TxPn8WbCw/feS1gOA3wcYWzv38iGqhMuUsSWOOr6lfA31Cb4IfWhHH80o0v1ZCfNvrrAO004KYt+lGi6752wtj6nmPAyYsgJ70NN9iwuGwe0NHh9L/mx4KCxOIgAAlJu9FhUG3PF+fRxaNbBpTno0vm4CHwgf+LBKiCfnaHEdxVuuF5R0hAJjAOZ63pZAu1sy2WpJUzxfnn+Wx2vHedUaI7ujMqZr3iSvH5SevTzq8F6fEGZtnx9Gr15QRVM225dC1P0WazMV6HlM+5mmGjP86eGRpNPu8Z64ijiO7d4amYblvNfQLJ/p4Nv7mTzhc1A1OMZYX4+tiDMp0mBQsILHIzSo9TsV5IriNjL0uLs01JYpEhYphMFAixdovAolEsJSkS1p7nnauZWIdyhAhSOvZ4IJcDaWRIeZSZdyUn8fiRng3qZiLLK/62/QYlLijGfzYTdN2p3IKDSYTpeSr+jnvdRij1zE4RSj8TeuPok2iEyadzAaKnlXdr140kT68j8v/BufRbVZuFAUqHJzHbnUjgQne7pA0wf+q1w= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MRZP264MB2988.FRAP264.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(4636009)(366004)(186003)(91956017)(71200400001)(86362001)(83380400001)(66476007)(66556008)(66446008)(2906002)(64756008)(38070700005)(7416002)(44832011)(6506007)(76116006)(4326008)(36756003)(26005)(2616005)(5660300002)(122000001)(8936002)(38100700002)(508600001)(6486002)(54906003)(110136005)(66946007)(8676002)(316002)(6512007)(32563001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?y6wikPlWJB4HEVM5rhK2Wiz?= =?iso-8859-1?q?73hymRJ4wCtzBFCDOUCyiLyFmbDZ0Wj3SxMLIFXkFrka73BFPbeL5j2o44SE?= =?iso-8859-1?q?znHfnfO3RQHMDGdERjIda4qrIUGsMrr9DcBRA6EIrJ4gS84ohQdaVoSYkJiK?= =?iso-8859-1?q?Gs2Zzdh7gMSyD+PdzfbqEKX8fZAGAdYR8pTUbxKUEc1FLy8zMuK9+N7GdkWK?= =?iso-8859-1?q?vNzekBuf7UU7rBIG3hhoGngXucqe834vbM3H4Glk6r3q7HDPpgGlHeCa4IVU?= =?iso-8859-1?q?NMTKFrm+zOIA0zWH9DRw0V+GQwp9FjHP6xypMCSmueA2v70iOrokybSvvFtI?= =?iso-8859-1?q?zpWhjmmCZM2X3wI+VkgbCKbciJJPEudtEcbFLqlsifRRS/d5yKCrki1JtcB4?= =?iso-8859-1?q?U8FL5WTMI6NcpxfMwXuWjA+y+5ifTW+v2zTK0w2YstrGnBxa2gUyRiEHQMRr?= =?iso-8859-1?q?ZHgWkYYFc0RJVBdW2sHthiCnUxbNOLaBXLDmqVm0hznuGahPuLfSCiytSH64?= =?iso-8859-1?q?6nvuCvqIG8HDK4O90XAohOV5hFi29hN1+sysJo+9iwREPjjzHOtN9eYo2Q0r?= =?iso-8859-1?q?iVWR+PpZuCwf1ceoQy35owrDlX0SHewga5gckuRIZuSY5KzNbeBggSbYJ4EB?= =?iso-8859-1?q?FbkrpGux/IlONwdTnK6e4BSgOJsJHzJWEFo7Ctelp6YPU49lfaaIhXXE+i73?= =?iso-8859-1?q?I0udcSS2xq0+9th98tnod7HSUa10KP1xuuPKzuemAqj2dCkjBe6Wv03O+EGP?= =?iso-8859-1?q?wBXUTJ7BHBR+7nZuaStBGLWcCKFpxDQ1pmHGPD/AZllvGJR/W6ApYKm+tqef?= =?iso-8859-1?q?AvoyeG0tFLxsVUVdeXvoZ/vLp3IYF5PBq5EBmGVBDpF5Np9EpXpzKqxNoNO4?= =?iso-8859-1?q?Wtwejr/dp12Sf6cVKrAMKyMr0DEiKEk/5dlsFIqW09hnSZtezVXpZxGnCdAm?= =?iso-8859-1?q?rKzyNe10PWPzlM7a+w+VAPrqK627VL1DpA2Ur7UQgtSFtGqnoRvEh4ojHKMW?= =?iso-8859-1?q?438Afh3Yr8sarD0GgrfD7VVfHRWwW1p+kBsgrNUDsqo5PVJhkaTHgmCaeMOZ?= =?iso-8859-1?q?qX/4darRyrQrOk5mZwFMGaeulZnbEUz/29iB8FG5T2z6E4kQ2OuCU/8PUIQ5?= =?iso-8859-1?q?BHfz3vUj+brJZeFn+21RTyPACM+4lZdzQ003m+Z9zfRURWE3VRhFU8sGTAiT?= =?iso-8859-1?q?VxryD3fs6dG9xC6y+8GpaSPR6oUeXdvOu7OtDYMDkK3j2fFRrVjIjpK8Y8Cg?= =?iso-8859-1?q?5c5f++EFDuFwK7yEOEAiX4v34RDVxHDLdxDzrLpXpwL+cBnC11+jt2g3PBHL?= =?iso-8859-1?q?IcS74/x2h33eI6CjXCMQchd0vOG72BHPGW1OVh7N8+pXk5xKVtdX9DSs5vv+?= =?iso-8859-1?q?fp5ScIGqAHAlp2vQWyIZRXkmCadZEsaDZllmk0psa2lZn2oOCraQ8ytCMvTR?= =?iso-8859-1?q?gRWLVEnuaK6UR8nPZPlEhFwIXsFuVfhGhz6jYjqo4Uwi96rylLFl48z8ufew?= =?iso-8859-1?q?qGM5ixS9Uw4cYmZ8QZuMii3gT9Lo8dgi7e/9ByXg/ZMlEHCIfVwan+CVKJ1U?= =?iso-8859-1?q?CuaSJrGXhfSx9bfXTDILKrm2YxcUfks2XaCkUkNSmcmOyPOoaRZP5posLzXm?= =?iso-8859-1?q?HOmlUOLoZOHyVd5iJn3ocO6dtUM0HnTw6zKluJbuvdCM+qlvQCB/ypLJBghf?= =?iso-8859-1?q?oT042TrRIdaipdzZMLUWWroTQ6JMDAx4x986nPH9eZp0pFQqM5lH/f4nLm+c?= =?iso-8859-1?q?iTok=3D?= MIME-Version: 1.0 X-OriginatorOrg: csgroup.eu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MRZP264MB2988.FRAP264.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 965c4765-15d8-4e25-37aa-08d9c147dc8c X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Dec 2021 10:27:43.5870 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9914def7-b676-4fda-8815-5d49fb3b45c8 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 9Kz5mzuSmnrL+0M/ysaTDmDIuZptfwt4szyExX4q1fh7FlVQ6xDWrXcoqzrXpYXcbknaRShy1+6IAnz2XFh1uRfG2NaEwbQ5KnTBGROZZDc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MR2P264MB0146 X-Rspamd-Queue-Id: 2783F8001B X-Stat-Signature: spagq7y9f579ujwzrk5jxubxekfrtndi Authentication-Results: imf30.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf30.hostedemail.com: domain of christophe.leroy@csgroup.eu designates 40.107.12.88 as permitted sender) smtp.mailfrom=christophe.leroy@csgroup.eu X-Rspamd-Server: rspam02 X-HE-Tag: 1639736865-47479 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Since commit 555904d07eef ("powerpc/8xx: MM_SLICE is not needed anymore") only book3s/64 selects CONFIG_PPC_MM_SLICES. Move slice.c into mm/book3s64/ Move necessary stuff in asm/book3s/64/slice.h and remove asm/slice.h Signed-off-by: Christophe Leroy Reviewed-by: Nicholas Piggin --- arch/powerpc/include/asm/book3s/64/mmu-hash.h | 1 + arch/powerpc/include/asm/book3s/64/slice.h | 18 ++++++++ arch/powerpc/include/asm/page.h | 1 - arch/powerpc/include/asm/slice.h | 46 ------------------- arch/powerpc/mm/Makefile | 1 - arch/powerpc/mm/book3s64/Makefile | 1 + arch/powerpc/mm/{ => book3s64}/slice.c | 2 - arch/powerpc/mm/nohash/mmu_context.c | 9 ---- arch/powerpc/mm/nohash/tlb.c | 4 -- 9 files changed, 20 insertions(+), 63 deletions(-) delete mode 100644 arch/powerpc/include/asm/slice.h rename arch/powerpc/mm/{ => book3s64}/slice.c (99%) diff --git a/arch/powerpc/include/asm/book3s/64/mmu-hash.h b/arch/powerpc/include/asm/book3s/64/mmu-hash.h index 21f780942911..1c4eebbc69c9 100644 --- a/arch/powerpc/include/asm/book3s/64/mmu-hash.h +++ b/arch/powerpc/include/asm/book3s/64/mmu-hash.h @@ -18,6 +18,7 @@ * complete pgtable.h but only a portion of it. */ #include +#include #include #include diff --git a/arch/powerpc/include/asm/book3s/64/slice.h b/arch/powerpc/include/asm/book3s/64/slice.h index f0d3194ba41b..5b0f7105bc8b 100644 --- a/arch/powerpc/include/asm/book3s/64/slice.h +++ b/arch/powerpc/include/asm/book3s/64/slice.h @@ -2,6 +2,8 @@ #ifndef _ASM_POWERPC_BOOK3S_64_SLICE_H #define _ASM_POWERPC_BOOK3S_64_SLICE_H +#ifndef __ASSEMBLY__ + #define SLICE_LOW_SHIFT 28 #define SLICE_LOW_TOP (0x100000000ul) #define SLICE_NUM_LOW (SLICE_LOW_TOP >> SLICE_LOW_SHIFT) @@ -13,4 +15,20 @@ #define SLB_ADDR_LIMIT_DEFAULT DEFAULT_MAP_WINDOW_USER64 +struct mm_struct; + +unsigned long slice_get_unmapped_area(unsigned long addr, unsigned long len, + unsigned long flags, unsigned int psize, + int topdown); + +unsigned int get_slice_psize(struct mm_struct *mm, unsigned long addr); + +void slice_set_range_psize(struct mm_struct *mm, unsigned long start, + unsigned long len, unsigned int psize); + +void slice_init_new_context_exec(struct mm_struct *mm); +void slice_setup_new_exec(void); + +#endif /* __ASSEMBLY__ */ + #endif /* _ASM_POWERPC_BOOK3S_64_SLICE_H */ diff --git a/arch/powerpc/include/asm/page.h b/arch/powerpc/include/asm/page.h index 254687258f42..62e0c6f12869 100644 --- a/arch/powerpc/include/asm/page.h +++ b/arch/powerpc/include/asm/page.h @@ -329,6 +329,5 @@ static inline unsigned long kaslr_offset(void) #include #endif /* __ASSEMBLY__ */ -#include #endif /* _ASM_POWERPC_PAGE_H */ diff --git a/arch/powerpc/include/asm/slice.h b/arch/powerpc/include/asm/slice.h deleted file mode 100644 index 0bdd9c62eca0..000000000000 --- a/arch/powerpc/include/asm/slice.h +++ /dev/null @@ -1,46 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef _ASM_POWERPC_SLICE_H -#define _ASM_POWERPC_SLICE_H - -#ifdef CONFIG_PPC_BOOK3S_64 -#include -#endif - -#ifndef __ASSEMBLY__ - -struct mm_struct; - -#ifdef CONFIG_PPC_MM_SLICES - -#ifdef CONFIG_HUGETLB_PAGE -#define HAVE_ARCH_HUGETLB_UNMAPPED_AREA -#endif -#define HAVE_ARCH_UNMAPPED_AREA -#define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN - -unsigned long slice_get_unmapped_area(unsigned long addr, unsigned long len, - unsigned long flags, unsigned int psize, - int topdown); - -unsigned int get_slice_psize(struct mm_struct *mm, unsigned long addr); - -void slice_set_range_psize(struct mm_struct *mm, unsigned long start, - unsigned long len, unsigned int psize); - -void slice_init_new_context_exec(struct mm_struct *mm); -void slice_setup_new_exec(void); - -#else /* CONFIG_PPC_MM_SLICES */ - -static inline void slice_init_new_context_exec(struct mm_struct *mm) {} - -static inline unsigned int get_slice_psize(struct mm_struct *mm, unsigned long addr) -{ - return 0; -} - -#endif /* CONFIG_PPC_MM_SLICES */ - -#endif /* __ASSEMBLY__ */ - -#endif /* _ASM_POWERPC_SLICE_H */ diff --git a/arch/powerpc/mm/Makefile b/arch/powerpc/mm/Makefile index df8172da2301..d4c20484dad9 100644 --- a/arch/powerpc/mm/Makefile +++ b/arch/powerpc/mm/Makefile @@ -14,7 +14,6 @@ obj-$(CONFIG_PPC_MMU_NOHASH) += nohash/ obj-$(CONFIG_PPC_BOOK3S_32) += book3s32/ obj-$(CONFIG_PPC_BOOK3S_64) += book3s64/ obj-$(CONFIG_NUMA) += numa.o -obj-$(CONFIG_PPC_MM_SLICES) += slice.o obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o obj-$(CONFIG_NOT_COHERENT_CACHE) += dma-noncoherent.o obj-$(CONFIG_PPC_COPRO_BASE) += copro_fault.o diff --git a/arch/powerpc/mm/book3s64/Makefile b/arch/powerpc/mm/book3s64/Makefile index 2d50cac499c5..af2f3e75d458 100644 --- a/arch/powerpc/mm/book3s64/Makefile +++ b/arch/powerpc/mm/book3s64/Makefile @@ -21,6 +21,7 @@ obj-$(CONFIG_PPC_RADIX_MMU) += radix_hugetlbpage.o endif obj-$(CONFIG_SPAPR_TCE_IOMMU) += iommu_api.o obj-$(CONFIG_PPC_PKEY) += pkeys.o +obj-$(CONFIG_PPC_MM_SLICES) += slice.o # Instrumenting the SLB fault path can lead to duplicate SLB entries KCOV_INSTRUMENT_slb.o := n diff --git a/arch/powerpc/mm/slice.c b/arch/powerpc/mm/book3s64/slice.c similarity index 99% rename from arch/powerpc/mm/slice.c rename to arch/powerpc/mm/book3s64/slice.c index 8a3ac062b71e..e4382713746d 100644 --- a/arch/powerpc/mm/slice.c +++ b/arch/powerpc/mm/book3s64/slice.c @@ -692,7 +692,6 @@ void slice_init_new_context_exec(struct mm_struct *mm) bitmap_fill(mask->high_slices, SLICE_NUM_HIGH); } -#ifdef CONFIG_PPC_BOOK3S_64 void slice_setup_new_exec(void) { struct mm_struct *mm = current->mm; @@ -704,7 +703,6 @@ void slice_setup_new_exec(void) mm_ctx_set_slb_addr_limit(&mm->context, DEFAULT_MAP_WINDOW); } -#endif void slice_set_range_psize(struct mm_struct *mm, unsigned long start, unsigned long len, unsigned int psize) diff --git a/arch/powerpc/mm/nohash/mmu_context.c b/arch/powerpc/mm/nohash/mmu_context.c index 85b048f04c56..ccd5819b1bd9 100644 --- a/arch/powerpc/mm/nohash/mmu_context.c +++ b/arch/powerpc/mm/nohash/mmu_context.c @@ -317,15 +317,6 @@ void switch_mmu_context(struct mm_struct *prev, struct mm_struct *next, */ int init_new_context(struct task_struct *t, struct mm_struct *mm) { - /* - * We have MMU_NO_CONTEXT set to be ~0. Hence check - * explicitly against context.id == 0. This ensures that we properly - * initialize context slice details for newly allocated mm's (which will - * have id == 0) and don't alter context slice inherited via fork (which - * will have id != 0). - */ - if (mm->context.id == 0) - slice_init_new_context_exec(mm); mm->context.id = MMU_NO_CONTEXT; mm->context.active = 0; pte_frag_set(&mm->context, NULL); diff --git a/arch/powerpc/mm/nohash/tlb.c b/arch/powerpc/mm/nohash/tlb.c index 311281063d48..3359cf7c2a61 100644 --- a/arch/powerpc/mm/nohash/tlb.c +++ b/arch/powerpc/mm/nohash/tlb.c @@ -773,9 +773,5 @@ void __init early_init_mmu(void) #ifdef CONFIG_PPC_47x early_init_mmu_47x(); #endif - -#ifdef CONFIG_PPC_MM_SLICES - mm_ctx_set_slb_addr_limit(&init_mm.context, SLB_ADDR_LIMIT_DEFAULT); -#endif } #endif /* CONFIG_PPC64 */