From patchwork Mon May 27 13:30:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Leroy X-Patchwork-Id: 13675249 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 B66F9C25B74 for ; Mon, 27 May 2024 13:30:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 486176B009D; Mon, 27 May 2024 09:30:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 40CDA6B00B0; Mon, 27 May 2024 09:30:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2AEAE6B00AF; Mon, 27 May 2024 09:30:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 0DBBC6B00A3 for ; Mon, 27 May 2024 09:30:59 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id C4390413A2 for ; Mon, 27 May 2024 13:30:58 +0000 (UTC) X-FDA: 82164261396.01.952EFEB Received: from pegase1.c-s.fr (pegase1.c-s.fr [93.17.236.30]) by imf25.hostedemail.com (Postfix) with ESMTP id A82F5A0022 for ; Mon, 27 May 2024 13:30:56 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=csgroup.eu; spf=pass (imf25.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=1716816656; 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=fF+ztpNZQ8XolqDsqvI7F/EjGPsLvA9H6M5wZvwqGDqmclT8aB3naOrM42B4N0ZmsAlwb1 FWzslZNeZ+48myOpFMzdXSJh+DRv8FWpUXS/yS5Zee4D+BQX4gcbX5c7vyFyoEie3xxAn7 MPrgTqk/NkogRJXPAevWmnSp01nmvJg= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=csgroup.eu; spf=pass (imf25.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=1716816656; a=rsa-sha256; cv=none; b=Q9IqsZF4rB1LEwW5YQjly/4lt/mvJN1YwwafiCzQznjoZoLVrvtrkMrjZp0GM4UrXEBKGX l884iWdeZzKI+YHZfA82cPQu6uPxVBm4icpY5E7yIVGRuTYh8SDAGvMjDo7IkrPcw6CG2q cx7m2Uuqlvl03w8W190MXilmC82m02Q= Received: from localhost (mailhub3.si.c-s.fr [192.168.12.233]) by localhost (Postfix) with ESMTP id 4VnxNh4CNPz9sqS; Mon, 27 May 2024 15:30:44 +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 xjPC1R4_n9Zd; Mon, 27 May 2024 15:30:44 +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 4VnxNg1JK8z9tHF; Mon, 27 May 2024 15:30:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 276B48B773; Mon, 27 May 2024 15:30:43 +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 oFrG5_RqJUcI; Mon, 27 May 2024 15:30:43 +0200 (CEST) Received: from PO20335.idsi0.si.c-s.fr (unknown [192.168.232.49]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 36A748B764; Mon, 27 May 2024 15:30:40 +0200 (CEST) From: Christophe Leroy To: Andrew Morton , Jason Gunthorpe , Peter Xu , Oscar Salvador , Michael Ellerman , Nicholas Piggin Cc: Christophe Leroy , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org Subject: [RFC PATCH v4 09/16] powerpc/8xx: Simplify struct mmu_psize_def Date: Mon, 27 May 2024 15:30:07 +0200 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716816601; l=1334; i=christophe.leroy@csgroup.eu; s=20211009; h=from:subject:message-id; bh=foRpSg705p76Fv1R91+1LawwFjSx303hjdxd+UuPeuU=; b=atjAkuPvr2Ff19HnM3/JJDA8hanr8ssPzuScrr4EAW+e8KY9FkfkPIo6ifYbiRWCmKLcT2yim WqCOkcm1cUIC5pqBbEtGzVFjE8KrVm19vJe/pprh/0CxgsyxAvsnX++ X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: A82F5A0022 X-Stat-Signature: f75h83cp3ric8xkyzbwtx614mk7e8ows X-Rspam-User: X-HE-Tag: 1716816656-336105 X-HE-Meta: U2FsdGVkX18GElC9H+Y1A3Fq3eFsapVRxskeeBm4+hcMk80bJukYaoCf+JkjHpB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b0GAOLRUv1osHY4ilLvrnpQ+wGR1cz/ISvBUuVBCqDIwqa0irwoOzACx9+2YVnVuAjCqDUzyG6ZBGoSiuXXzKS1ASYO+eGXPgpbAQUM3rA3qVQm7ascf8V9kq/KIvKTPvhQqrZczxx 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: List-Subscribe: List-Unsubscribe: On 8xx, only the shift field is used in struct mmu_psize_def Remove other fields and related macros. Signed-off-by: Christophe Leroy Reviewed-by: Oscar Salvador --- arch/powerpc/include/asm/nohash/32/mmu-8xx.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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];