Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1640301pxk; Fri, 2 Oct 2020 15:13:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxs1I2WAba+Yvh2a4/QxUQEqqCnrwoSFiE8Hvxh/Z7ihjIQhjDI8GOetBA5srEQj5Lnznb1 X-Received: by 2002:a17:906:b1d7:: with SMTP id bv23mr4119796ejb.464.1601676784776; Fri, 02 Oct 2020 15:13:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601676784; cv=none; d=google.com; s=arc-20160816; b=S9mOnBr/4y0f9YSgbyIaM+RID1CwXs2LEhQ3JzNGYsi7bgAwucbhSB+Mgv0N73ap8j xQfdEF4jmG5rnnFxhEgBcqfyc7K6QRyPC1Kf3i4pbMmszSuNjY7VbzsWnR5vWyG2TPAt fUVE5p8lQ8bVNIP3bZFfvDEradTNN0gEd1S49R4710ee0daJMkPSr8KErcaamjp7pJCi Y1lu3Rb7KUUIou9lZxH9yCjezblHhAfsPba8b3UBu9u9RaoOJ7BoIJje8UltRIoNwMpn cfd1Ge/OigPXlwy81iJXriUdTlqD9XnfXa+ARskmfIDi3pzlfoPSXmyQ9acWqqyUKQXg J3Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=WqR15+53sxuwPJNhG7UG5UWNC8ykbQrWL0dbrlfLd84=; b=eqJHhaxSKq7NvhV+5iriEJAxj0N9EUtDI5+yzAoRz93IjT67JznuUrRZoTXAyIpfV5 Lht6mt6Q8IL6CZYdpXWbrQfmoyPBDgBxMzXUgZ+M6yUZC7bLno72Sg3T/s59/S0HAA1J SS/0WERpWJ8RJ7e908IR3ReO/Dg+A52X6EN28BjmUwQhleZzDjOEfDa25LS6B86LbqsX 3wXsYcE7uOVip3bLfzfbzTgRR7hZRyhoTahb7r4lGaKPBUt4oQDzvuu+r5RK+waKT1iD o01cY1EK7/U5QNTCJ6EaU/bQPr/U7T6jBOQ64hagpCMKGxXUe09Wwb/egW2P04rMcMvN M+GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=wBnJYdX3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id da18si1898384edb.466.2020.10.02.15.12.42; Fri, 02 Oct 2020 15:13:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=wBnJYdX3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725562AbgJBWLQ (ORCPT + 99 others); Fri, 2 Oct 2020 18:11:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725355AbgJBWLQ (ORCPT ); Fri, 2 Oct 2020 18:11:16 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84542C0613D0 for ; Fri, 2 Oct 2020 15:11:14 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id x2so1740420pjk.0 for ; Fri, 02 Oct 2020 15:11:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WqR15+53sxuwPJNhG7UG5UWNC8ykbQrWL0dbrlfLd84=; b=wBnJYdX3j0KvI3E9/Rv3G3+tTnUPNT62rSqh1h9uJYdXfWkoXgtnBi3r2c0RgQZBaj hXYD4KXVAkb3TtIecQSUfK8E+rOaJeIcpGnhbOHnRRkoROoDQ6QsKYfs820F/lJtrJu4 wOW1c++5z3HL/lHdozDnipsC5a25lC1yIxwn0mq7w+rB9E8ph6gtmTgNvkTUErKL6dyM nF65kKXd92+bGYcJVHIwGkM8hD0ASRv0F2EtOvaDvWY277owNjtVgv+Xzoo/ML95+MrY lUYg2AeoJTWKjQ+xoVn8WWF0MLzKcqUJdkoK9hy3gUsPpTi9uyYxLX8qJEpkiGJb1Xjo W8pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WqR15+53sxuwPJNhG7UG5UWNC8ykbQrWL0dbrlfLd84=; b=nFAPAKmmT5DhRnhsvW/OsdKawsINxmEU6fSHLOwZzLN39Bej3aD+6HTT6xAyTMm1j1 +4bx12Jfnrqnzuh1+My9/IWbidgEBJFF47f9dB/Zmg9dR48oM9iYVkhMd+Uv6TFyluku bTMG7ZO8Oqb/649B5MSeJtPoBj9M9QpRxeuQq+xj2A18q+foBLxFxYu25XcKzk6gqyGJ gR0lZfPxDqLoDaWQaVTyDbzqfrtOjTHVP3JNzidIfqqvijOw1g1EiDsFzE9jao0y1SXX 2jHmFgLaTc23hI+EQwnAzXFIPJicJxiEl49Ie9rWS8KB2sTSWS6BH8KFloePh3H6uqge bWcg== X-Gm-Message-State: AOAM530hrvBzMlR8ab1+64qLl0m3OQuRMk+Fr7iF1Vcz8NBagO9jOY7u 0huobg0JITCLSk4c0c7+JbW+vc6C0or6gS4WWpfU4w== X-Received: by 2002:a17:90b:a53:: with SMTP id gw19mr4889507pjb.53.1601676673868; Fri, 02 Oct 2020 15:11:13 -0700 (PDT) MIME-Version: 1.0 References: <20201002162101.665549-1-kaleshsingh@google.com> <20201002162101.665549-5-kaleshsingh@google.com> <20201002165202.qjthgret34qvh43d@black.fi.intel.com> In-Reply-To: <20201002165202.qjthgret34qvh43d@black.fi.intel.com> From: Kalesh Singh Date: Fri, 2 Oct 2020 18:11:01 -0400 Message-ID: Subject: Re: [PATCH v2 4/6] arm64: Add set_pud_at() function To: "Kirill A. Shutemov" Cc: Suren Baghdasaryan , Minchan Kim , Joel Fernandes , Lokesh Gidra , "Cc: Android Kernel" , Catalin Marinas , Will Deacon , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "the arch/x86 maintainers" , "H. Peter Anvin" , Andrew Morton , Shuah Khan , Kees Cook , "Aneesh Kumar K.V" , Peter Zijlstra , Sami Tolvanen , Masahiro Yamada , Arnd Bergmann , Krzysztof Kozlowski , Frederic Weisbecker , Hassan Naveed , Christian Brauner , Stephen Boyd , Mark Rutland , Mark Brown , Mike Rapoport , Gavin Shan , Steven Price , Jia He , Zhenyu Ye , John Hubbard , Ram Pai , Thiago Jung Bauermann , Sandipan Das , Mina Almasry , Dave Hansen , Ralph Campbell , Brian Geffon , Masami Hiramatsu , Jason Gunthorpe , SeongJae Park , LKML , "moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)" , "open list:MEMORY MANAGEMENT" , "open list:KERNEL SELFTEST FRAMEWORK" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 2, 2020 at 12:52 PM Kirill A. Shutemov wrote: > > On Fri, Oct 02, 2020 at 04:20:49PM +0000, Kalesh Singh wrote: > > set_pud_at() is used in move_normal_pud() for remapping > > pages at the PUD level. > > > > Signed-off-by: Kalesh Singh > > --- > > arch/arm64/include/asm/pgtable.h | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h > > index d5d3fbe73953..8848125e3024 100644 > > --- a/arch/arm64/include/asm/pgtable.h > > +++ b/arch/arm64/include/asm/pgtable.h > > @@ -415,6 +415,7 @@ static inline pmd_t pmd_mkdevmap(pmd_t pmd) > > #define pfn_pud(pfn,prot) __pud(__phys_to_pud_val((phys_addr_t)(pfn) << PAGE_SHIFT) | pgprot_val(prot)) > > > > #define set_pmd_at(mm, addr, pmdp, pmd) set_pte_at(mm, addr, (pte_t *)pmdp, pmd_pte(pmd)) > > +#define set_pud_at(mm, addr, pudp, pud) set_pte_at(mm, addr, (pte_t *)pudp, pud_pte(pud)) > > > > #define __p4d_to_phys(p4d) __pte_to_phys(p4d_pte(p4d)) > > #define __phys_to_p4d_val(phys) __phys_to_pte_val(phys) > > Just fold it into the next patch. Sounds good. I'll update in the next version. Thanks > > -- > Kirill A. Shutemov > > -- > To unsubscribe from this group and stop receiving emails from it, send an email to kernel-team+unsubscribe@android.com. >