Message ID | b39165aa73ce701b13dead64a976d96eeb576ff5.1716714720.git.christophe.leroy@csgroup.eu (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 01A74C25B75 for <linux-mm@archiver.kernel.org>; Sun, 26 May 2024 09:23:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 890B16B00A1; Sun, 26 May 2024 05:23:15 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 81B996B00A2; Sun, 26 May 2024 05:23:15 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6E13C6B00A3; Sun, 26 May 2024 05:23:15 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 575286B00A1 for <linux-mm@kvack.org>; Sun, 26 May 2024 05:23:15 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id C0616160B91 for <linux-mm@kvack.org>; Sun, 26 May 2024 09:23:14 +0000 (UTC) X-FDA: 82160008308.18.2532730 Received: from pegase1.c-s.fr (pegase1.c-s.fr [93.17.236.30]) by imf26.hostedemail.com (Postfix) with ESMTP id B436D14000A for <linux-mm@kvack.org>; Sun, 26 May 2024 09:23:12 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=csgroup.eu; spf=pass (imf26.hostedemail.com: domain of christophe.leroy@csgroup.eu designates 93.17.236.30 as permitted sender) smtp.mailfrom=christophe.leroy@csgroup.eu ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1716715392; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ry7wjRmAbrCChnbrq+gG2BW8QdTQw9qwIvifIWQPxK0=; b=dBrVPclwY6Mqa+45bZAsMBj62EklmbYzJ8M3F9WLqcbX3kRjqOeaNaXFVNyuSPx28wgfd1 NqERWl4Z6os1L/S0TINh1i7L0Y+0Muy3n0f1yUzPdloW8aH/vbwSvwTW7XjiucQYHqBJSk rAMqd+N0IEBEvi0xTNH72Wxb+Ga3Li0= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=csgroup.eu; spf=pass (imf26.hostedemail.com: domain of christophe.leroy@csgroup.eu designates 93.17.236.30 as permitted sender) smtp.mailfrom=christophe.leroy@csgroup.eu ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1716715392; a=rsa-sha256; cv=none; b=ZHsT7EcdH69RzD5dAFvhabWfIFvEeQFbpNFP2oIL4Arik5zMyr5iVrvLTGSXc4Qx3ulant zmRLuMYc9GlUag6242ejDBlYfbKFLpBmnA3jSYCOysQYIcF2VJGuROSxZx3zJJaUAOVfMS xb10+uO2LJFJXDXBsx9fT0lTQRqM9sQ= Received: from localhost (mailhub3.si.c-s.fr [192.168.12.233]) by localhost (Postfix) with ESMTP id 4VnCwr2vCrz9tLt; Sun, 26 May 2024 11:22:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7rqfgFOy_RFJ; Sun, 26 May 2024 11:22:36 +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 4VnCwm6JNtz9tCB; Sun, 26 May 2024 11:22:32 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id D46658B773; Sun, 26 May 2024 11:22:32 +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 JtYuilF064Yh; Sun, 26 May 2024 11:22:32 +0200 (CEST) Received: from PO20335.idsi0.si.c-s.fr (unknown [192.168.233.45]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 523048B764; Sun, 26 May 2024 11:22:32 +0200 (CEST) From: Christophe Leroy <christophe.leroy@csgroup.eu> To: Andrew Morton <akpm@linux-foundation.org>, Jason Gunthorpe <jgg@nvidia.com>, Peter Xu <peterx@redhat.com>, Oscar Salvador <osalvador@suse.de>, Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com> Cc: Christophe Leroy <christophe.leroy@csgroup.eu>, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org Subject: [RFC PATCH v3 09/16] powerpc/8xx: Simplify struct mmu_psize_def Date: Sun, 26 May 2024 11:22:29 +0200 Message-ID: <b39165aa73ce701b13dead64a976d96eeb576ff5.1716714720.git.christophe.leroy@csgroup.eu> X-Mailer: git-send-email 2.44.0 In-Reply-To: <cover.1716714720.git.christophe.leroy@csgroup.eu> References: <cover.1716714720.git.christophe.leroy@csgroup.eu> MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716715343; l=1334; i=christophe.leroy@csgroup.eu; s=20211009; h=from:subject:message-id; bh=foRpSg705p76Fv1R91+1LawwFjSx303hjdxd+UuPeuU=; b=89d4p5uFz+OUF0vWXwpE9jxbam9lfuKp47lCKKGXHyK1z/cO7nzq7sxyAgrLXaeLZMYHbfSY5 YabPz86rjLkBdFPZ0ljkWIGS9zTQw6ikc6YqwGMkSv89uOR+Dn/jGi1 X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: B436D14000A X-Stat-Signature: c76wii1uen1pgpoi38ufqx3nwm8k9s8f X-Rspam-User: X-HE-Tag: 1716715392-453945 X-HE-Meta: U2FsdGVkX1+C53dnadE/a5kp7Wgqi1JprmCh1pAtgX6Xr9iDYFmqxL9P6wMyLawj3QD8Ejr+/bs54/aXHQmUbMjUWwXMm6MJqT5e6eCPq6q6zG2JawcFFJnbQqKKE1pVctCiHDTaa731LTMMB/Rgr45AdjC6/6NFGp5wcbcCwqJUQHixcode/z0Rs/5M+9QiyVrqcVLsMRZMTctXmLN/TbBEzb6u6IdcbLwqfSfpReWg+8iUqL9H1z6Sy/ibXIz0/4MTI8L3EyvbPAk0Ijh/9NCpb7Zq3rmciWoKIgQQXD9g6yd4i3UY4h6mVZ1yrout18pAyKfUKa6KuxAFu/8XxGuW2RRk/BtfiP3bcaClhcT2Ygp9yMbarPiG/1pFg+hBqlAQWDOWp9T+RnhuHRcQPSmBHMHMAyaLjyzHvXSk4au4omIvtx93KaCtsSgphF2w6D+V/18PrOf20M4x8jUQVSbnQu14lcsVgQvv6CXeZj4vnzSd8aze2prmCo1kIZVL6DdTzoE3/cLpzddJ1EKWToZ9nyHRt15gW/ugci7CpPAAuHZ4/td2oNre/ilne1Dw5+zHOhUJHI4ZWyDfQnJQjSRO2JrX9OMQTr8FXtNX3YXkOL/ep8L9SxNlBC3PRd4rwJiX2W/dez+a7l7iiLTevKWY+fm2ORSouUHY9KCxN9EqGGMEJ4IbfxzjujfLSsAMujjWtyMpv2F2f+yifR3g5akSUgAfdEWZsu2RbG9Z2hBd4SfZ9OSaEPxmSGQoV9oQcDB8fM1d06YMXUkYW3HRWugtK2iFg5bUFu+ItXKOIETFUTHHRjRuIfRUyFkbKx/XbI+NBttvvzkODBk8Oo+aEuWKn9oFbCJ39YIf/AzLATWFs/1hJ84TXHMlfoO4ycJQ9BwMKpiKduHQEpmd6BAVr3Fp7/Yt6cQ1FrUOBSyEEtWO3le0+JOruaUo4sn27pNl1J7NWwuRDB/XEuHdqSR j3d1SI0W eHxatX/GMIm+Qah3F2HoEamzJAhGAbHAR66Qi0fxPVqey9kwM8ezINNGAVR4mubobN9F9EMVB4cwU04NFG0GaHzLN+v9eEBxN843Nysk3h0GTSLxg4wKS7czjXJdkKtSLmbrNP6pXYRRxcWFj+DI7N2nJ0FvmB0gtNyFD4i3KDIIAUTY= 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Reimplement huge pages without hugepd on powerpc (8xx, e500, book3s/64)
|
expand
|
diff --git a/arch/powerpc/include/asm/nohash/32/mmu-8xx.h b/arch/powerpc/include/asm/nohash/32/mmu-8xx.h index 141d82e249a8..a756a1e59c54 100644 --- a/arch/powerpc/include/asm/nohash/32/mmu-8xx.h +++ b/arch/powerpc/include/asm/nohash/32/mmu-8xx.h @@ -189,19 +189,14 @@ typedef struct { #define PHYS_IMMR_BASE (mfspr(SPRN_IMMR) & 0xfff80000) -/* Page size definitions, common between 32 and 64-bit +/* + * Page size definitions for 8xx * * shift : is the "PAGE_SHIFT" value for that page size - * penc : is the pte encoding mask * */ struct mmu_psize_def { unsigned int shift; /* number of bits */ - unsigned int enc; /* PTE encoding */ - unsigned int ind; /* Corresponding indirect page size shift */ - unsigned int flags; -#define MMU_PAGE_SIZE_DIRECT 0x1 /* Supported as a direct size */ -#define MMU_PAGE_SIZE_INDIRECT 0x2 /* Supported as an indirect size */ }; extern struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT];