Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp548795imm; Fri, 1 Jun 2018 05:45:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKuIsxZBg6rwkwc4XzvpkeSzDrgid4405ht9Z0jRAyvPx9QROJnWHGKGS7HOvdI1iiMY+Gv X-Received: by 2002:a63:6fcb:: with SMTP id k194-v6mr8864384pgc.349.1527857133478; Fri, 01 Jun 2018 05:45:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527857133; cv=none; d=google.com; s=arc-20160816; b=hil8GYSb9toNH+HbyJ+CzxzZLmk+HMnH5nyl0vspT1kEOFrnSLx3yf+JzIU6Y03yhV YvtcT9O0PvxOEswe1n8ii7ticN0XE4taOjR0dZDeqjsgdE+gO4LAdjpdyM0FL4MS3iTX lyG3yy4Xn9SaIKwS3Vldt17XwfP06X0BI1mFTqYJvK0Nq8NXgV6en+azICSGrqUQ9Pgg ZwKpk1bsZoOPTBnAmdnusXhnpp5XTrrkedCmQ7S2anse7ijP+q0+hawyw/4AoLkGhwBD dtrFsSaTpo02rTn2xhTbjHPf3dwAgOGJUnKy5Eq1CxTyj+JcbfW67MNsQjRnNpM1EDWR PRbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=CTbwY25o+amT+R+4/gJ/eK0dSgp/RvhXcUgU7Nv2zL0=; b=cD/QQxAMuNEibsOl3UAEnZw3xdr6jI3UrJR7wFRhjWw04LDXJpbdyzvgQE3IxIBQwV w2nrXLOBwf7/FY1iKBzIFIKMM2ZgGbeiWauU9a3Xf8GgQcdzbEofMQcgEXA3RzsdzlN9 KH4gilSdGsmu8KfDmMHrQx+q1Lq/ttInN9xjA8p6bpFVksM51kuaNYPaQuVUPDivz7TJ bMhMHRZYPsJnf0U6b7Q+tWK+QEh8VVyFW1yhNn7d9rogfvSa0AScSI4UR1+0UlqGaGrQ tjU+enLZMjA/s3wJb/g1y74F3xEzf8kjLDeXMOgZG0gDtOE+Rpz/nt+Ck659a1nqhL7O nE8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=av9lnvdr; dkim=pass header.i=@codeaurora.org header.s=default header.b=DcBLZNmq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n9-v6si11594054pgv.501.2018.06.01.05.45.18; Fri, 01 Jun 2018 05:45:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=av9lnvdr; dkim=pass header.i=@codeaurora.org header.s=default header.b=DcBLZNmq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752099AbeFAMkd (ORCPT + 99 others); Fri, 1 Jun 2018 08:40:33 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:50114 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751981AbeFAMjs (ORCPT ); Fri, 1 Jun 2018 08:39:48 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 33812607B4; Fri, 1 Jun 2018 12:39:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527856788; bh=e44tfVl7ZnxDs0fIXC4yWnJ0yJ9ozZjdivargEJjMDc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=av9lnvdrRQ2ZJXn9+0kKoJPiqBYQTJGI4G58FdwUB9yS7X+kr5wKMVpMLZN9BmBuC 8idKonAaXgllcHoqKbEhYUXkxWbkA3YYeZ/G8DCIujOFaXbDd16J0XVyMhASTgoW6x m5/JLv2Tf9zLrCqUi+i7gPL24TckiO2lJ4ZvGmWU= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from cpandya-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: cpandya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 6EA02607E2; Fri, 1 Jun 2018 12:39:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527856787; bh=e44tfVl7ZnxDs0fIXC4yWnJ0yJ9ozZjdivargEJjMDc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DcBLZNmq/KORG45bB6rr3StbdGvcq7YB52PiCNsnNN+TUBpudorjS5awvWEitRIKq K5lHNdPMZddhbeCLmk4xSwHRL3hDiVJf4F0QUIp2e7aKaxd4EhtvyrcFxSH480I7pA Y3g5YnenubfMr7l1QeSCHppHTV4ElRs6JA+3qjzY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6EA02607E2 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=cpandya@codeaurora.org From: Chintan Pandya To: will.deacon@arm.com, catalin.marinas@arm.com, mark.rutland@arm.com, akpm@linux-foundation.org Cc: toshi.kani@hpe.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Chintan Pandya Subject: [PATCH v12 3/5] arm64: pgtable: Add p*d_page_vaddr helper macros Date: Fri, 1 Jun 2018 18:09:16 +0530 Message-Id: <1527856758-27169-4-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1527856758-27169-1-git-send-email-cpandya@codeaurora.org> References: <1527856758-27169-1-git-send-email-cpandya@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add helper macros to give virtual references to page tables. These will be used while freeing dangling page tables. Signed-off-by: Chintan Pandya --- arch/arm64/include/asm/pgtable.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h index 7c4c8f3..ef4047f 100644 --- a/arch/arm64/include/asm/pgtable.h +++ b/arch/arm64/include/asm/pgtable.h @@ -580,6 +580,9 @@ static inline phys_addr_t pgd_page_paddr(pgd_t pgd) #endif /* CONFIG_PGTABLE_LEVELS > 3 */ +#define pmd_page_vaddr(pmd) __va(pmd_page_paddr(pmd)) +#define pud_page_vaddr(pud) __va(pud_page_paddr(pud)) + #define pgd_ERROR(pgd) __pgd_error(__FILE__, __LINE__, pgd_val(pgd)) /* to find an entry in a page-table-directory */ -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project