Received: by 2002:a4f:b056:0:0:0:0:0 with SMTP id m22csp1409931ivi; Fri, 2 Oct 2020 09:24:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjdtraxRPDqpPtp7GpocnzRS6oWbSMhaylt6E9oKDezKWOhMOXEmZgw4QxQdv9lueyHW6K X-Received: by 2002:a50:b063:: with SMTP id i90mr3267617edd.187.1601655863253; Fri, 02 Oct 2020 09:24:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601655863; cv=none; d=google.com; s=arc-20160816; b=QFlBqagQ6wdSNFoRDiw6dyB5ga+RqRuo3dp2NRvkM1sTa3hEhOBA/ZSI9KUEnhr5ka hlUCjIfwZxAYZSHJ+JIVGIhtiYBX6VeuYW4s0CdK64ncAWacadk6NH7DbmIPE413UW2n knbF7t7aVKDu+RWZu9qcFHO/HZhsSnYRaygnD8spD9biHCca1FcUnWg1K8lOijqEUEYh dUXSQLqzkiWA3IuKV0olbFGkychuV5kgF91IpF7AS1QWuRZuS+kXlgWst+rh6RF+qy/S LiatXrUEYVoP86lQIMp99QzucAZ3yzTqAl6mF3tM2f9jnOP9me58HrkLP25O2QPxXSO/ /eBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:cc:from:subject:references:mime-version :message-id:in-reply-to:date:sender:dkim-signature; bh=s/Xw/RBCO0n2Bno5i+4SkYcgbDI4qmMOMsdLQNIN2w0=; b=dzZ/AmXsyBUnHVjhbTVU1gflWskzI5KUq3JN7fE0rA2WFP5UkFRdUlk4bKdxMRzWit jOB0FHtFp8K57ZghHsvlS4p68Zk3O9OypC6W/f1ZUCiOIGLvU/R4ng8zK5O9BUvcQCqH 3mwUX1XLthRKPna+TqIdWc+QhAbdmO9gIcpazBwdXeToNzwVwmMPW/NsmTCwrFVPYIT3 pv/sEtk9aQh90l+lBQq82NAv7a1kvUPClCWcnm3JGE2e911VLh7LCfYhJ8iTqZOkoNhD 2RkoZK6cCNK/IvmRDO6yd0dkGohVaHVAcxY8yswjGOHL11NzcZqFbBKrz+vJBCArs1A4 8WUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=k9sKPkWt; 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 r14si1291003eji.218.2020.10.02.09.24.00; Fri, 02 Oct 2020 09:24:23 -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=k9sKPkWt; 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 S2388143AbgJBQWO (ORCPT + 99 others); Fri, 2 Oct 2020 12:22:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726386AbgJBQWN (ORCPT ); Fri, 2 Oct 2020 12:22:13 -0400 Received: from mail-qv1-xf49.google.com (mail-qv1-xf49.google.com [IPv6:2607:f8b0:4864:20::f49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37385C0613D0 for ; Fri, 2 Oct 2020 09:22:13 -0700 (PDT) Received: by mail-qv1-xf49.google.com with SMTP id di5so1144088qvb.13 for ; Fri, 02 Oct 2020 09:22:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:cc; bh=s/Xw/RBCO0n2Bno5i+4SkYcgbDI4qmMOMsdLQNIN2w0=; b=k9sKPkWtGuu4ZGWnqHoEmBSTPfyCRaLKxN4sh1GlVpxOGK13giY9J2fDvWDPjX3Clh TYH8Hre3GaZ8/nIA8+ifpHAGT+ghFEFLUdJ98i1yCBxhNJ9QrKzKR9vsuJdhGLMhk1zM jRbNpFUL/RIhh0uLkk4dGTeWDWn3Xsf8T9Mjf5+vyOSSIvFswNWS2pjJfJeYWvb1nllw YjhjQUal9ax2B4XfW6quUw5G3P9nvwUHIzfEgXNEhGVLdcNy8vs04A1WDWphoHtUThaq VAL43/lPVuz798l5kpoX7JUlKCQG4nshkFweKYl7tfdWKJASLiJBr6LEcZQmfobxorms K6HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:cc; bh=s/Xw/RBCO0n2Bno5i+4SkYcgbDI4qmMOMsdLQNIN2w0=; b=rduo8VAsW4jQ8lSHhEMezUvgsJLjVFqaO9JjyyZbCPUzkqYzrbKqIrLv/Pq/xNSjiD U7HMZDu7IXrvY18rNSUygO0ppR28nZzvVQlrOCHf5e+N2muHNQntf3T+87Q4LYC6ynui 6JlQf8hLpO61lREORzMkFMhrasba6CWH+u3pGhBN0gZYoeivWgmnCSC0NOPqrVZPQWTB EwDGuMt0z8hd0327zEZCyJ9ETAJvNRBkkZut02U2dmXD+j5kKsWaT8a48ScYW0vU8802 xmwWR3Ti03hp+MjJEci2ZTNd92ElEJwLLLSSWff6y8VdfXvo26lFI33hy65kkGBZ18US ulPA== X-Gm-Message-State: AOAM532IA5M99z97vsmUMrsOZ3+oF6Sh4QxlQ+PxlqTON6DNAuDkdjGT aOaayOi5ks3EJgr5UQqhO2P8uuI58YwN/hwTMQ== Sender: "kaleshsingh via sendgmr" X-Received: from kaleshsingh.c.googlers.com ([fda3:e722:ac3:10:14:4d90:c0a8:2145]) (user=kaleshsingh job=sendgmr) by 2002:a0c:e904:: with SMTP id a4mr2730548qvo.26.1601655732278; Fri, 02 Oct 2020 09:22:12 -0700 (PDT) Date: Fri, 2 Oct 2020 16:20:49 +0000 In-Reply-To: <20201002162101.665549-1-kaleshsingh@google.com> Message-Id: <20201002162101.665549-5-kaleshsingh@google.com> Mime-Version: 1.0 References: <20201002162101.665549-1-kaleshsingh@google.com> X-Mailer: git-send-email 2.28.0.806.g8561365e88-goog Subject: [PATCH v2 4/6] arm64: Add set_pud_at() function From: Kalesh Singh Cc: surenb@google.com, minchan@google.com, joelaf@google.com, lokeshgidra@google.com, kaleshsingh@google.com, kernel-team@android.com, Catalin Marinas , Will Deacon , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "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 , "Kirill A. Shutemov" , Mina Almasry , Dave Hansen , Ralph Campbell , Brian Geffon , Masami Hiramatsu , Jason Gunthorpe , SeongJae Park , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="UTF-8" To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) -- 2.28.0.806.g8561365e88-goog