From patchwork Fri Oct 2 16:20:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalesh Singh X-Patchwork-Id: 11813969 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 891D513B2 for ; Fri, 2 Oct 2020 16:22:29 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 5A784206FA for ; Fri, 2 Oct 2020 16:22:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rvd5DS5N"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="k9sKPkWt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5A784206FA Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:From:Subject:References:Mime-Version:Message-Id: In-Reply-To:Date:Reply-To:To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=c9gF2Scxu6PyzzT66PGmP1cm+XKpS9Fwm5WJzC9NAfQ=; b=rvd5DS5N5ljbfJpC3TLTqd0on 3ehyyWSy/Ljm1za7LKEzhXm2zDRHO3c6T1bTRRjEY6KttO23P+XwwDL94Qex62fmAkhiiQ0A9db8D L5wNf/mvlD5C/vnxFbAQVs/GeQRfBVl83B2ob+ztGODbs1dBVBcKhsvnauhzYa2x7crTmuSRB5QUm ETmTzionyx7NVVnKwXj6VY287myMsaKhtzr9/WX7s5epEsOHAKhE5MQqUqc1rHWk+qx+pia5hHHDB jjZUWENqWQE66rBH5PFEkvE/q2Eu2fDhaVXJ4HN5DObykrC4hUH2dx4fiM+TH4HlDs0cSu7ajC/Qo PYLH0M7IA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kONp5-0002oN-7i; Fri, 02 Oct 2020 16:22:19 +0000 Received: from mail-qk1-x74a.google.com ([2607:f8b0:4864:20::74a]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kONp1-0002m2-Cc for linux-arm-kernel@lists.infradead.org; Fri, 02 Oct 2020 16:22:16 +0000 Received: by mail-qk1-x74a.google.com with SMTP id h191so1443345qke.1 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=C8G+w1p7QcrA7gCaEOXsXmfOrsz+mexhmKsbdyvsyabIoLgHj3eeVJwejMFcOaNW2l HHIHLukpObs83tFgXGbddwBLkvUNdW2aPPdq5NIoX58qBFGjBLa1DJMvr372fsMEktlP SjkH82RK9ykrw6mWcs4Lp1v6y7SFKJpk7ZXaauLPSP40sS3F2umrN9xTUtcDJOYQMd2m oKvnPz7He7HOsRadLiieoJMQeXneDksPwzQLcBeEjDnetOh7vZS0nP/f/g6yS0yiMxVC EJrN5gLxhrDV1w+06r69bjr3uVPKK2scRG+qh6LRsUK8HAyQjOo5yGDtMpfThLaZzCfa 6gHg== X-Gm-Message-State: AOAM532puBdSUZYH8EnYZvaQHYRwEprxJGk+J7V6BVGsYAd2M4nrDV4b dTUHsbqIl9cDooMlPtP5blqCNLhEbie4g7NoNQ== X-Google-Smtp-Source: ABdhPJy1XYUcKvGqDmhG+SgmlzqCf1a7mFONorMqdUyr843tXA3FgfFHdqOZFCcNSS+Fax1oPNOyO7OdvdzrlXWIkQ== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201002_122215_450831_90A2C10E X-CRM114-Status: GOOD ( 15.94 ) X-Spam-Score: -6.5 (------) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-6.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:74a listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.2 MISSING_HEADERS Missing To: header -7.5 USER_IN_DEF_DKIM_WL From: address is in the default DKIM white-list 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 DKIMWL_WL_MED DKIMwl.org - Medium trust sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: joelaf@google.com, Mark Rutland , Gavin Shan , Brian Geffon , Peter Zijlstra , Catalin Marinas , kaleshsingh@google.com, Ram Pai , Dave Hansen , Will Deacon , lokeshgidra@google.com, linux-kselftest@vger.kernel.org, "H. Peter Anvin" , Christian Brauner , Shuah Khan , Mina Almasry , Jia He , Arnd Bergmann , "Aneesh Kumar K.V" , Masahiro Yamada , x86@kernel.org, Krzysztof Kozlowski , Steven Price , Jason Gunthorpe , Ingo Molnar , Sami Tolvanen , kernel-team@android.com, Hassan Naveed , Masami Hiramatsu , Ralph Campbell , Kees Cook , minchan@google.com, Zhenyu Ye , John Hubbard , Frederic Weisbecker , Mark Brown , Borislav Petkov , Thomas Gleixner , surenb@google.com, linux-arm-kernel@lists.infradead.org, SeongJae Park , linux-mm@kvack.org, Stephen Boyd , "Kirill A. Shutemov" , linux-kernel@vger.kernel.org, Thiago Jung Bauermann , Andrew Morton , Mike Rapoport , Sandipan Das Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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)