From patchwork Tue May 18 10:14:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 12264513 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D09D3C433B4 for ; Tue, 18 May 2021 10:24:17 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 57AD160E08 for ; Tue, 18 May 2021 10:24:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 57AD160E08 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=vMW/6ckCkqzCXUS2lgddVaJwZHyKYx7/aWTitirI2Kk=; b=IjCQc9mgykDRQnqNwxWa7bCwK cfkficgeD75UrN5YFoAhS7HT4GO8a2dtTOnThq9oDM4Aa/M+kFPWLeh9RhMdbReXeyGuLRFqSqyRQ pa8v6cdP8x7YMJAMId/o53qfVMg2s1guvXV5JH8R0wTrKNRWaLtznWL6nXM6gNViZT1Xyj85aojT9 Rm3pQ3FyD7tqFkuw5pTbQH4J/+AqhYt6IUN7ElTKV8AuySf5zvJ3IZ6xNpWMZvUanwqQq9u11CXe3 iHgTQpGG571yUN1TVgMOab1MfFWMW3IXe2xBEFDjIp6y8cqJ8A84BDzjO6ln2+YJrRAsnIon/taBh KLzN6FWwA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liwrn-000LtN-Fo; Tue, 18 May 2021 10:22:24 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liwle-000Jya-B3 for linux-arm-kernel@desiato.infradead.org; Tue, 18 May 2021 10:16:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=bh6kRT652A1R4UNsQdEhCtkf2R+JQVrRJdBbgJp7qos=; b=Jm1tXPa7uVNjbCriukeQBKnk6+ K8VorRNKZxouyj5zweWpNYuYdeEIdMsuP0X5lVvG+4ZRT+p4FJFYeaDw6Tfv4qwQF4ZP6xeytfeK6 k21kFW/3TlakdmIrEw5A/QKQsE/MTfqQ42m7kO/1e94IR6kplJoltMXVT+DQ+11jtxJWIPNW3p/tn GfpvInFvmq529i8wEHczfZosDCOybTxRmRT8Bl2RwGDzr3pzHo2Gb+qzSncK+f4FP51rOrqZS2wq3 FGNlAzxRCiu1bfdFswW4qqx7WPy1zHKQU1nvirJ78O2qlnBknUfqdDAUkq3maWwTAFXFUQ7oyBbZ+ gn5QZ/ag==; Received: from mail-eopbgr150042.outbound.protection.outlook.com ([40.107.15.42] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liwlb-00EYJl-RM for linux-arm-kernel@lists.infradead.org; Tue, 18 May 2021 10:16:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TuZVqAs6LiBZH36RgJQBXIGwHiXWV4BRY2hozdvKuHfGYp4curUBgJkhchh6H3L3xsTs/TnR0kI7LT4aZGtLkRLjrnLfsnfg3Tn58oM6VSDgQdnJd15nKv4SHJ0aBfDQPOzKlElN7RST+9UWPjSIZDrZZ32yPd+abu/RaV6jl/D6LKEdtTVXes2NmfiYVs6FtbA1dUznrIvs7wdoC/TdiJhSzi4PBa+5TDXOICJpH7a8FMWQUjAZcVQzz+dy5hAjIZ98iMtSVDppPqpFdfOGcFb1TJwaj+g0PJMuthibe867C9yHnKzniET+wcN5Ixqxvu57+0gd/Zz6pLNALHDQZQ== 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-SenderADCheck; bh=bh6kRT652A1R4UNsQdEhCtkf2R+JQVrRJdBbgJp7qos=; b=OUGasgIAQToqztkoeGEE1/L/rJHCTR3op7RItfJnu8bJ0O2uRv6l/04yuNWenFmJSmRa51vaJ/c+tZGnkKNyXbTLxnR6ziNImv4VANttuxat+sqJmyXgYbzkrnWyQE951ctIrsA1Kt5enoNl+RLmN+Ja4xbwaVfeirmGYAJnSSijAIwBP+jEUkaEveuuJYxsxdI/mmDaODaHJhbN7U6mzGBtrFWtnB2XiwwTwg6/ayRj17EOK/sBL+qd3mh/3cLI2nq5zXfNmtGvEFLUV8FFtx14rQ1DxqrgRqxHHldL9juIN7+nuBdTQYK9NtI0T3OXmQ4p20hNJQ0p4bYJg7YGrg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bh6kRT652A1R4UNsQdEhCtkf2R+JQVrRJdBbgJp7qos=; b=f2Tgy55jpXYpuVKD9vBI2SAjpKU5bRQ7Q+m6Bac9IpBPQiSV5joSABRyNTXJffaTBRVHEgO1h3pBvllXEQbxdXLUJ43SGU9JxpWOGS/apHSsQTHBUDqf/DsKDg9TtvvYyOmR6riBd6Davn1VtV3KVt/0hLw93p1QQZpa1Eov3wo= Authentication-Results: lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4966.eurprd04.prod.outlook.com (2603:10a6:20b:2::14) by AM5PR0401MB2450.eurprd04.prod.outlook.com (2603:10a6:203:34::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.28; Tue, 18 May 2021 10:15:55 +0000 Received: from AM6PR04MB4966.eurprd04.prod.outlook.com ([fe80::b10a:ad0:a6f5:db9b]) by AM6PR04MB4966.eurprd04.prod.outlook.com ([fe80::b10a:ad0:a6f5:db9b%2]) with mapi id 15.20.4129.031; Tue, 18 May 2021 10:15:55 +0000 From: Dong Aisheng To: linux-arm-kernel@lists.infradead.org Cc: dongas86@gmail.com, Dong Aisheng Subject: [PATCH 1/4] arm64: mm: remove unneeded SWAPPER_INIT_MAP_SIZE Date: Tue, 18 May 2021 18:14:02 +0800 Message-Id: <20210518101405.1048860-2-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210518101405.1048860-1-aisheng.dong@nxp.com> References: <20210518101405.1048860-1-aisheng.dong@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR06CA0217.apcprd06.prod.outlook.com (2603:1096:4:68::25) To AM6PR04MB4966.eurprd04.prod.outlook.com (2603:10a6:20b:2::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR06CA0217.apcprd06.prod.outlook.com (2603:1096:4:68::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Tue, 18 May 2021 10:15:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3eeed9a3-190b-44f5-0dc3-08d919e5ec0e X-MS-TrafficTypeDiagnostic: AM5PR0401MB2450: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:161; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dEclI9jL+XMZ89fXBgjA9+KLaaJjrNvyXUhuYRuKCuvRK+aeBJis0q9Sx0an7ZMhzZ6gscMi839Tghb0Fb2Qlx0WDHhd+qNPX1C1YD7vyNp6/KKrM0STjdowmLQ/snmgLV7huEONNDALXZM05ZLh6Jxl6zBifxpqN2Z2HsKXMs3ZIlmJ/0hySFimvLoXvRx4zek9xG/zD500imY/GjFEBOMHOVrcUjIvYYQsBdXtjcINuWjWiju71mnnJlg3S8HCFK1FPtn8U7zm4IVXNG1hB1qtMqGeNN4zFxSS4Ghadh/BcRjhkiInnuRlyhepFL081JrKOb8yZFiqUFZzIZREJSQDB5A1t9wTAlNF3dDfcjlIq1wRiAOSkIlRScxjsjUQJqLX3sbdcFMYHUbvNz1kcUkuGynrpWJTLYCZGqxdCcOSKagJEUwG0NzA4auRthQu4QI+E+wngv87Qsf0cYyX2uUu4JNDh/aa2NU6J2hKpEDCOEhe2wGQEXmD2bKE6qcjid7OxavDQtvbw630zX6+FubrME4eaYRkwmLDwDPRhk7HGE+kkMGIQdl6CKEKQlM0ZEB7tMYHT/inTHEU7Sa0JELlEQrCsixr/vjMQuSMdPO3+JKQEPN6Ynvqnc3w19vQdm5tlIR2urbvBhwmI1yYcol6FVx63E5tqBisvUNuqy2Ccc2PF+v/Waco/bFSBsrW X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB4966.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(346002)(376002)(39850400004)(136003)(366004)(6666004)(316002)(478600001)(6506007)(4326008)(186003)(4744005)(52116002)(16526019)(8936002)(86362001)(6486002)(2906002)(8676002)(2616005)(5660300002)(26005)(66946007)(956004)(66556008)(66476007)(38350700002)(38100700002)(6512007)(6916009)(1076003)(83380400001)(36756003)(69590400013); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: pu51kK8sO/6hhAorNXwWZu6eZVOOgPbKscpA3ZG2Oy80qNpnBk4HW/k4SOn2rA9z5PhH5tuIwx1eExH16cXPMkJd3t+bI4hDSISBaW78XIZYaGd9AxjolLHGoLUTSv3g9cOZ0owvikymyvRefapJqd3tJdmhVlEiRGXlJvZe+tJuOb47Novqg6MpLkPpdd6hrByPS0HEN2i2Weh8PIsPl9t043yqQvH1bQGhbZZvGH6/5Bt030TIwUlW+UXKYsNyexv9+xvWc5+3dey+XB0gaVNwqpcVZ9pzZGqxMdi5yx7AOBgM0v3eil1hWp90T0EywAd+c8DTAxusUe7ZdGciGTqxCvtlABoFaX1BfZge9+ql/s+smOs4f95p5jkdFP/cj2ifq5N4pc4mVHdtVfGpjikiqc6bfE7knS9bsQXm5cNKzYNms6gHkeDEeOBFGtXxbLpf5oQI2zSsjUGhhM3rSuJw5EGP72udKSdFH+anSiBTpPI3mxAIFmNZQjZ/4fltcvRPvhHXylArCe3rDfItKw0K05ZNlcTCGMCbMIJxz7GOaBvVGPyF+tJhoz5Cu3HEBoHqh+caUt2RNRBkNYhZpJuhnMViUNbFLNfDY7xvdTU1YWpZmVcDNyli+SWMycJNU4Af/7LpMmK3LkdAP40Jdq1gB3oUyiofKibzVhgpVuuaohG44u7TdQEBUFGwOi2iKGiGVjS80HAYh/A5JtVJ1ZO48LNVfm9FN8dlT7PtZKh1PlX+IwbCfThZkyhzyd5n8tyr35eLYfrC5avx3MJZ2qpRAMfqsHrPGjtx6dONKfmDpLM4t1IqBVALs0GlniXt80ZqEm4Qnlsx7nLQfle9HTuFN1WAMtpk0vjyrqb3h2ryQ/thM/A4eTSTBmFGHQ9wrTKl0WAGFOseejGddeEXwNyoxz0Ay7nergczXN1q8MX3esqgRUjiP85TjxKDlS9kNXuBat1beys3MwoIsYKUXWQaI6M0zVLSQQ9zfXhIdcSfQkNcC9IU/F/f+dLIGza7wrSaG1G+NpWXDROqna4Q1TaZTFZryFj3vB8hmjHp2EMDxBAftsJV32YE8ltXwE1tDs1q73cpTYCxyukHS1GU/9GyXWQNAqZbdY/w/yqsMwTDlQEeSpC98wS6PUpAvcIgunUDo0077pSCK/Tr4Duek5i8KNIvwZE24DgKNvtjWoF2/V49xv86FtcL+7mn8ykUQEo1qA0gmvPvJ5bsGFtgt5pabHkhvaQsBglI5WICHql3KaVnz4o6QANXX7lkGlFIUkJvtWi4Th0YOVZJqTwxv7gfkgz/Qv9+2vrJUK6gdDSzK0rkQUFgYVk7ZvTEhRS1 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3eeed9a3-190b-44f5-0dc3-08d919e5ec0e X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4966.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2021 10:15:55.1293 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JLDOCLrAlXcy9xgimlyVDk7vRVB4Zepm50iY5LnqaeeTqQgtTPx8sssc7nqFGB6GS9Z4S0HHm0yd5ltgAx4ZRA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0401MB2450 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210518_031559_904490_8C3A499F X-CRM114-Status: UNSURE ( 8.96 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Since commit cdef5f6e9e0e ("arm64: mm: allocate pagetables anywhere"), arm64 kernel supports allocate pagetables anywhere and this macro definition is not used anymore. Signed-off-by: Dong Aisheng Acked-by: Mark Rutland --- arch/arm64/include/asm/kernel-pgtable.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm64/include/asm/kernel-pgtable.h b/arch/arm64/include/asm/kernel-pgtable.h index d44df9d62fc9..e2f103cce7c1 100644 --- a/arch/arm64/include/asm/kernel-pgtable.h +++ b/arch/arm64/include/asm/kernel-pgtable.h @@ -100,9 +100,6 @@ #define SWAPPER_TABLE_SHIFT PMD_SHIFT #endif -/* The size of the initial kernel direct mapping */ -#define SWAPPER_INIT_MAP_SIZE (_AC(1, UL) << SWAPPER_TABLE_SHIFT) - /* * Initial memory map attributes. */