From patchwork Wed Nov 2 09:12:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 14132 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp3504099wru; Wed, 2 Nov 2022 02:14:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6xb81XkYdrgePpdIJHvcnrKNLx1utmbaRa0BnESj+24RF+o+2XQ6xIDb4T/YtokFhsqnsO X-Received: by 2002:a05:6a00:1d06:b0:56b:ec38:27e9 with SMTP id a6-20020a056a001d0600b0056bec3827e9mr23784650pfx.71.1667380493322; Wed, 02 Nov 2022 02:14:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667380493; cv=none; d=google.com; s=arc-20160816; b=bTx54AJ5QXtI/V3h1YwEq60bG4uQH+M47k5ZzRcRZV4EbQ+D7M6gQWZCVJeTwq9AfQ 37dHwKdW0Hg6FYeK4vcm+xsFHiq5N8EYSidZ8PIb/1ALfrE/7fZr+jQ3ZubMdmhK2agi du1nKSxSI9qjkAsKs8DtHbO/x1u29hUscURjZ2/JCShrmIZJcVsRPYB/QADZzN+0wIGD jiF6aDQ9rfrcuSrpZ6KlQCgbbIL+LG6oFzcoFATy2AMXNqj4aw0Tg8XX1grZmL7xiw1e xC3ccnjX1PgiSZwqfE9FnkJaqNphxlt+7r+EvfuP2XD5MDhep5KrbFDXSI3rSXJxAaBo ZFGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:cc:subject:to:reply-to:sender:from :dkim-signature:dkim-signature:date; bh=RO2IHuYFSdiGcCtndhrP9IGcPaamUDawD8uuIGJbN9M=; b=KYYskQeBXCgW3fRvwfxIL+3YPGZSBvhepxjHHdZNqrIdVdR2ohyPOJ3YX0bqip+UuI OQePMNGwaVSzAqQFakO1BNXU1Dk1PP+KTVgXX/ZEZzEdxpI11MlfVB50PtOt8j+9HwSW CruKfHMwMxdTHmRfboq4AZ+ibzFG7Qu+VxP+HEJkhqD3VQNv0QcKWJwmwDvr0sBuvrFo QXF4fNuhmy3jV3XuR4yKtGl1sUsffXt/VZpDs9wiNXdMfLTILGMp2iPqcjsh4aeQ/yVo uOQoQLWHePZ+z4gzDX/TTdhyW2oRxGXgk13VZVg45qeSZrKK6Myn5EAnCPP1VkJrMofq Y4eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Pb8lrMrN; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l71-20020a63914a000000b0046eecbac482si15976297pge.415.2022.11.02.02.14.40; Wed, 02 Nov 2022 02:14:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Pb8lrMrN; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231522AbiKBJOa (ORCPT + 99 others); Wed, 2 Nov 2022 05:14:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230186AbiKBJNH (ORCPT ); Wed, 2 Nov 2022 05:13:07 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC36B28E2C; Wed, 2 Nov 2022 02:12:46 -0700 (PDT) Date: Wed, 02 Nov 2022 09:12:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1667380365; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RO2IHuYFSdiGcCtndhrP9IGcPaamUDawD8uuIGJbN9M=; b=Pb8lrMrN/Narh/Fq4vIi73rrhPd8ezLdWLptblZFR6wLis7MDb9U4i2cep280jaX9U4zeB eBXumIJ7qrZ7mLMntnIe84cat3u+NO7sdCLYBj8ajbLqALPS+KbV6dRmrk4viaErOUhDvp 09DuhdEWCYxLfo63qGzq5G6Ksi9IOAGXDa1RCmx6pZKy4zEhiIYjwGK3zwCP0sj6PNRlSD fVS18M2iLZUMfxDMIE9QT9B2q1xRxk4iEVanVg/GoqmRkOnZg0Ll82vwOTehFDVRAImXlF qD85Q9Ax4X8+eDgETHn+ENCF+CYm9KX0PswkahHE+6cm4iPBieU4Xbweh7insQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1667380365; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RO2IHuYFSdiGcCtndhrP9IGcPaamUDawD8uuIGJbN9M=; b=n4U32zc/lnxmcPgWuhNsTxDzJD+IBsAUGgOkNvWt8Bw4boBFxd4lNQ02cm0QYGYPkjdbm9 cDxoQfAXm2i980Dw== From: "tip-bot2 for Peter Zijlstra" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/mm] sh/mm: Make pmd_t similar to pte_t Cc: "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <166738036405.7716.8277600641359044546.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748375167625530592?= X-GMAIL-MSGID: =?utf-8?q?1748375167625530592?= The following commit has been merged into the x86/mm branch of tip: Commit-ID: bb51ac2cd4191626bee6e196f39559d371c8609d Gitweb: https://git.kernel.org/tip/bb51ac2cd4191626bee6e196f39559d371c8609d Author: Peter Zijlstra AuthorDate: Thu, 26 Nov 2020 17:05:55 +01:00 Committer: Peter Zijlstra CommitterDate: Tue, 01 Nov 2022 13:44:00 +01:00 sh/mm: Make pmd_t similar to pte_t Just like 64bit pte_t, have a low/high split in pmd_t. Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20221022114424.645657294%40infradead.org --- arch/sh/include/asm/pgtable-3level.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/sh/include/asm/pgtable-3level.h b/arch/sh/include/asm/pgtable-3level.h index cdced80..a889a3a 100644 --- a/arch/sh/include/asm/pgtable-3level.h +++ b/arch/sh/include/asm/pgtable-3level.h @@ -28,9 +28,15 @@ #define pmd_ERROR(e) \ printk("%s:%d: bad pmd %016llx.\n", __FILE__, __LINE__, pmd_val(e)) -typedef struct { unsigned long long pmd; } pmd_t; +typedef struct { + struct { + unsigned long pmd_low; + unsigned long pmd_high; + }; + unsigned long long pmd; +} pmd_t; #define pmd_val(x) ((x).pmd) -#define __pmd(x) ((pmd_t) { (x) } ) +#define __pmd(x) ((pmd_t) { .pmd = (x) } ) static inline pmd_t *pud_pgtable(pud_t pud) {