Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3819666rwo; Mon, 24 Jul 2023 17:52:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlEQU4IaiGftK0NjHsoUCvIwk8r4Em1HFPW++hwdhxVlBaNm6+p4jBXuJCeTQX4OmSgjHXZB X-Received: by 2002:a17:90a:9904:b0:261:1141:b716 with SMTP id b4-20020a17090a990400b002611141b716mr10850405pjp.33.1690246364079; Mon, 24 Jul 2023 17:52:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690246364; cv=none; d=google.com; s=arc-20160816; b=mB9UK6jcBBcnKcUvbB2pyDiVvfyFVbIKnTlO2JkrPxFA9Hgw7xRTWm6p1w4q8vCORo UlkvZNMAilZV7gNpSWZCLAAnFMdAx3lAxj4SfcJs1By0TBehSmBhiIJd7rw1wML0b2GE c9XnFEKBiCAC8ZT63YtTy8zl45nFtIqsVL13+rozIDuzhXWan6DqdK/vM/eTGKZzKcYV ox6zFrgo80DWDmLf8KON+nBbgrspN88itIwVr+78Iz+IRvmg3OgsVdnZ6H2cd7/sXGs3 +GXVGI2ATWpiQDrS2qgYtTj7w8wh2VLmsW84n2Y7+YRfLRRKD5SY5f3WW0vuTGNLAf5I n/lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id; bh=XpQLw5QkEPWWS7irfjPYn6xPua/GU+l/tOyi9SjU/Iw=; fh=lCxH4CuRX8MITBKC0fcLBpOFyH+MAnRPZfi4WcJdv6I=; b=AKlyeL3pDS0Tss2CQ32HG+SUG9k3yZWLmglexjYaf3yBW0MMqoGmixhNoij3Gz6/Ca bCyfcu6eY2BJgNsJ4EGQll0umHe8LInwPwp1cJlT9ZpBErYJWPCzl3xhQkfkKRwrfy79 cCc9VCkMZ9DGSktZ9CQf9ZqLNi4lHd7HCl1A3pSEFwFjZwsMQ35kfwXlgjUvx0OD5VoD 4Gun8Ksk2ovK5DSh4T8XRyeopri0RNrzIW0GVIDEMYe4YgE2X5E8cb13/eQyy/AcHP5y XObEblhCk48Fr2gOgsR53g/6bCQQA43O0Tcxk3z81La5Dc5CrB9puPNjXDmhqRgnExIZ W7ig== 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 q10-20020a17090a9f4a00b0025defcc6e75si9999993pjv.172.2023.07.24.17.52.32; Mon, 24 Jul 2023 17:52:44 -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 S230356AbjGYAg0 (ORCPT + 99 others); Mon, 24 Jul 2023 20:36:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229850AbjGYAgZ (ORCPT ); Mon, 24 Jul 2023 20:36:25 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D6F0010EF for ; Mon, 24 Jul 2023 17:36:23 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.170]) by gateway (Coremail) with SMTP id _____8BxHOsGGb9kZnsJAA--.18594S3; Tue, 25 Jul 2023 08:36:22 +0800 (CST) Received: from [10.20.42.170] (unknown [10.20.42.170]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Cx_c4GGb9k_fE5AA--.25539S3; Tue, 25 Jul 2023 08:36:22 +0800 (CST) Message-ID: <8d22477f-d7e4-b151-f72b-cea3f1ef3ef3@loongson.cn> Date: Tue, 25 Jul 2023 08:36:22 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 0/3] LoongArch: mm: Code cleanup with populate pte Content-Language: en-US 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 References: <20230712031622.1888321-1-maobibo@loongson.cn> In-Reply-To: <20230712031622.1888321-1-maobibo@loongson.cn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Cx_c4GGb9k_fE5AA--.25539S3 X-CM-SenderInfo: xpdruxter6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBj9xXoWrZFWDGrW5Kw1rXF1kKF18CrX_yoWxKFg_XF yftasYkr4xXayUKFWvgF4rJryUCF4kAF1ktFyDJFW7JasrJr17Jr4UAan8Zas0vFW7trs8 Aw45ArnYywnrKosvyTuYvTs0mTUanT9S1TB71UUUUj7qnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbDAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r4j6F4UM28EF7xvwVC2z280aVCY1x0267AKxVW8 JVW8Jr1ln4kS14v26r126r1DM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2 x26I8E6xACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1q6rW5 McIj6I8E87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lc7 I2V7IY0VAS07AlzVAYIcxG8wCY1x0262kKe7AKxVWUAVWUtwCF04k20xvY0x0EwIxGrwCF x2IqxVCFs4IE7xkEbVWUJVW8JwCFI7km07C267AKxVWUAVWUtwC20s026c02F40E14v26r 1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij 64vIr41lIxAIcVC0I7IYx2IY67AKxVW8JVW5JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr 0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF 0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jz5lbUUUUU= X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 slightly ping. 在 2023/7/12 11:16, Bibo Mao 写道: > 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(-) >