Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1453373pxk; Fri, 2 Oct 2020 09:53:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPxu1nHNM1wlMlYmW6w/zMlFN/Vht5dFwYu5Jj8wP2PUxXbD4A0kr7VnxVn0ShhLoi65cA X-Received: by 2002:a17:906:4a03:: with SMTP id w3mr1978410eju.15.1601657619904; Fri, 02 Oct 2020 09:53:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601657619; cv=none; d=google.com; s=arc-20160816; b=Jvs2JFmlOh+WVmxZbmKHRDFLZ3naLv93k1mTeYLWrzR5QFYcO9iv/CNOW+szTFqrc7 ZYU8oIzqirTbMcMlB7opWHax14lvd/dpmUxQBKA+XXR4+HYGHZAI6fVxb9UkojPyZ7Gd 6BIJ+bVmofHezI+fhiybnt2eB81dwmmFYIOX0WCOYRwQt4Pqq+sa6Hv4MlSs0xGrI6wK 64+nGUc3+2aRYvdzwQwbZLYz8WN38q8Iw3JRGQGrvucHONR7NCyovQU9PJYSZiqlvVQq pE6Gkp+Eh1SmaHDQZCS29/CGvnZUw3AW8KUpvbGauD1rduMxcwSO/IHnnCFdTqq9CsiD qQGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=Azn0m8rrEoA2M7J1t1sXP/D+DuvNdIX5Zpxungfh8U4=; b=E+w3uXCPCNQeAXpmW4TfkSwEs80t8y4j8nw65oPeg+9JyUxqUAq5qmSdQTX09OsisR Z6W8PzFQA2uLWBEphq7X2v7hGm/WHu9NaYzHntSFOD8X9KuKeuT8oDTG+n/ldvhtuhxS HA/eO3pDJpDjc4zwlOljM37rrwGGn5VkeadKWz96BBjihrS+D0awXgI/0CVHKxLS+Woz 3vSKkP2oFGUDVzSf2SZKrEznkhqvuom9wmqLZ+aYsnDlHCrRLIxTf+xZjiaRNTerUgwD PeZxddjPLteoeO12cSkzZ7kIKCIlraDuXaJ7hLOYEYd1xpy5xUXsz0O7ejnaFE5yHAWJ 653w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g16si1680166ejf.735.2020.10.02.09.53.17; Fri, 02 Oct 2020 09:53:39 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388008AbgJBQwO (ORCPT + 99 others); Fri, 2 Oct 2020 12:52:14 -0400 Received: from mga07.intel.com ([134.134.136.100]:1030 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726017AbgJBQwO (ORCPT ); Fri, 2 Oct 2020 12:52:14 -0400 IronPort-SDR: GAgE3XfJy7RaqNgzySPPMW05f1/Z+9zJpNITnlq0tBr+1c1MBmlf4mNkyxQsyD0dzKg6Q+EjAU nATkXW1qeVZg== X-IronPort-AV: E=McAfee;i="6000,8403,9762"; a="227156243" X-IronPort-AV: E=Sophos;i="5.77,328,1596524400"; d="scan'208";a="227156243" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Oct 2020 09:52:13 -0700 IronPort-SDR: MV/ZSbu9At/6hkOYXRAnQvZ6nDout6zerci9vjY+0NOEByRMeyB3/cK1s6RDePQ7uCvsLJdlMh cjc+XxxtGskg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,328,1596524400"; d="scan'208";a="325867986" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga002.jf.intel.com with ESMTP; 02 Oct 2020 09:52:03 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id F418ECB; Fri, 2 Oct 2020 19:52:02 +0300 (EEST) Date: Fri, 2 Oct 2020 19:52:02 +0300 From: "Kirill A. Shutemov" To: Kalesh Singh Cc: surenb@google.com, minchan@google.com, joelaf@google.com, lokeshgidra@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 , 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 Subject: Re: [PATCH v2 4/6] arm64: Add set_pud_at() function Message-ID: <20201002165202.qjthgret34qvh43d@black.fi.intel.com> References: <20201002162101.665549-1-kaleshsingh@google.com> <20201002162101.665549-5-kaleshsingh@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201002162101.665549-5-kaleshsingh@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Kirill A. Shutemov