Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37774448rwd; Tue, 11 Jul 2023 20:34:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlGr2JJpB+B2IrPb9hhmMj3qvAEaX2MtQb56Lle5YwlPZim7iLsJzGY83sIaq01KIt6KZERF X-Received: by 2002:a05:6a21:328a:b0:10d:5390:eadb with SMTP id yt10-20020a056a21328a00b0010d5390eadbmr16590333pzb.2.1689132867137; Tue, 11 Jul 2023 20:34:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689132867; cv=none; d=google.com; s=arc-20160816; b=fSElIj14hdgX3y6n6uHANLVd7G0sZvm99gCXciYxf3nFXEsoawp8UGvJfYEqDh51Eg 5DA+Iz4ggY0BMy7OV8CnYatpVxpaadp4JZxH3HeoaazK7IMmSunY6FfuVm0JZfBSTq5V LYGY9phuPFC75ZtBGpFM0MvnYdpzzQKEjAfo9RnqSBzSgtKMtQkwqG3IciBh1rns40or MlfynrfYN2eYgWn5B3QBKaDtwG/8d1HcX9fw5DLiij/g3ZSAaG8Q6xRcF6ZtsZQH7JxN EwIqvWPRl7XA8S0n4/Y7yFcSWogcSaqqbmBVn9q6flm89BbcJvACxkg4b84bkUmrNJae EARQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ekFyi289m5wxFPyQE1lLTXpWi7EVHTV7RxfzEzEeEds=; fh=0EL+iotVhsZFwjEWmZ6zpavmrVrlDb0rJf8YE1ub+kM=; b=X5VbZ85q/DWF/fJ+/NTeul9gZF5kirQHi/Hx/j6+6FePOlh7PR44LLVVyYA57TX/yq kCNhcbvA+IdBDJk+d2QkK3IZ/r9Ao7ze4Nu94/RSMOSk14P/F7WhUQlH3U1Q2XGpD4sE JdbPIHDL97YqIBpIdrD0/hZTPs/uQ0ct1fgAP4oSW67XH2oBq4sa52yPaqLUSmJIQQfh DS+ZuGRmDKlCiEiOlKVCiqHQM+zdl74DCcSzwo6eXrMINjH6/BG6W1zTa52pGFNKGTYc fvrSnXHqVM7TxemaeEJWFrN+3+4j2CTsWa026qfBCxA1xir4UXRnmBsMRsJ/hH+4f+J3 v8kA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d17-20020a170903231100b001b8b4ed422bsi2564217plh.308.2023.07.11.20.34.15; Tue, 11 Jul 2023 20:34:27 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231913AbjGLDQd (ORCPT + 99 others); Tue, 11 Jul 2023 23:16:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbjGLDQ0 (ORCPT ); Tue, 11 Jul 2023 23:16:26 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 817F810E3 for ; Tue, 11 Jul 2023 20:16:24 -0700 (PDT) Received: from loongson.cn (unknown [10.2.9.158]) by gateway (Coremail) with SMTP id _____8AxjusGG65kg8cDAA--.8096S3; Wed, 12 Jul 2023 11:16:22 +0800 (CST) Received: from kvm-1-158.loongson.cn (unknown [10.2.9.158]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxWM0GG65kA7cpAA--.53483S2; Wed, 12 Jul 2023 11:16:22 +0800 (CST) From: Bibo Mao To: Huacai Chen , Dennis Zhou , Tejun Heo , Christoph Lameter Cc: Andrew Morton , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, linux-mm@kvack.org, WANG Xuerui Subject: [PATCH 0/3] LoongArch: mm: Code cleanup with populate pte Date: Wed, 12 Jul 2023 11:16:19 +0800 Message-Id: <20230712031622.1888321-1-maobibo@loongson.cn> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8CxWM0GG65kA7cpAA--.53483S2 X-CM-SenderInfo: xpdruxter6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBj9xXoWrZrWkAryDAw4kJF1fKr1ruFX_yoWxAFb_Xa 4ftasYkr4xXayUKay8KF4rJFWjkF4v9F1qyFykJFW7GFy3Jw1UJF42yan8Za4q9FW7trs5 Aw45ArnYvw129osvyTuYvTs0mTUanT9S1TB71UUUUjUqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbfAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_JFv_Jw1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwA2z4x0Y4vEx4A2jsIE14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_ Gr0_Gr1UM2kKe7AKxVWUXVWUAwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYI kI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUtVWr XwAv7VC2z280aVAFwI0_Gr0_Cr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI4 8JMxkF7I0En4kS14v26r126r1DMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j 6r4UMxCIbckI1I0E14v26r1Y6r17MI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwV AFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv2 0xvE14v26r4j6ryUMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4 v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x0267AK xVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU1mii3UUUUU== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 There are some confusion between pdg and p4d when populate pte for kernel address space. This patch modifies this issue and adds unified function for pcpu and fixmap populate pte. Bibo Mao (3): mm/percpu: Remove some local variables in pcpu_populate_pte LoongArch: Code cleanup in function pcpu_populate_pte LoongArch: mm: Add unified function populate_kernel_pte arch/loongarch/include/asm/pgalloc.h | 1 + arch/loongarch/kernel/numa.c | 35 ++----------------- arch/loongarch/mm/init.c | 52 ++++++++++++++++------------ mm/percpu.c | 24 +++++-------- 4 files changed, 42 insertions(+), 70 deletions(-) -- 2.27.0