Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp859113ybf; Thu, 27 Feb 2020 00:49:05 -0800 (PST) X-Google-Smtp-Source: APXvYqwyLHmT+6RaHP6dXINTmkIQ0Wq6PfvIY9njxrv5SbGQwxnthNVn9zl5CERlhNsYIyYvZQpU X-Received: by 2002:a05:6808:48b:: with SMTP id z11mr2334781oid.38.1582793345171; Thu, 27 Feb 2020 00:49:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582793345; cv=none; d=google.com; s=arc-20160816; b=gNtSC/EvqNSukeFyLRKXYwPHO15D4lNTfKBEVTcjkaXSBJsbzEig8R4u0miLIhztEX bBnl494POymSN22wwS1kGxlOvC6I2VScWeESQ6Wnp+irXPcBVu/ElypBoIwrsx1XJjGx vg1PttJrb227SNXI8J97/Qm91mTumnYdcdQIVQznGoJoBGp0fszgs0WCcGRxSSiNN9YT FTyNfh+dBwRDBpF66PcQOEJgJw8Yr6jm8PniIAqq8rRiabTBBLunPvnw//bnyZYaskFa ZvRn5PJxGawQ6RbzQYYQLuCTBKm5p4485hnTBRYJpuQM2EZoJhlabVlFChLGk+HTsn/W oYzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=auI1oysPnbzbyLWQknp1xBdkkEnDOwp29M2WNwBzovw=; b=Cp43XcvrFfNKU1c0QvLMConVInWZ+nEWplJBjR0/dhEpOq2QVxvkkfln5ID1gJPugx /SbDoizi3t86ZLt7cU+JcNHYYYECRCIr6iGJfp9Byq3xY5gqprVal+muPzNe30qrEdIF bzNIAg0ozrCHdIdZQhFYXm2BJDA1BtCYX67jWT9XZW87A+gsBjcDsqbBT231TaOKou7Z rXqUmSOFvavXevKO9Yh265n5QNYGIpAF4XqyFxOan6RV7+v7GDBZgn9e9dJDNwowPE0i oq2a0zM5dgBuk0siVqyjzLVIJolvdVX2KxZZ27daaR2/+NQ1IAoCDQ4kcpmuYhqpt+Fg 3eEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yeV9cIO5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w13si1099687oti.291.2020.02.27.00.48.53; Thu, 27 Feb 2020 00:49:05 -0800 (PST) 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=@kernel.org header.s=default header.b=yeV9cIO5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728629AbgB0Isq (ORCPT + 99 others); Thu, 27 Feb 2020 03:48:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:58688 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728469AbgB0Isp (ORCPT ); Thu, 27 Feb 2020 03:48:45 -0500 Received: from aquarius.haifa.ibm.com (nesher1.haifa.il.ibm.com [195.110.40.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 253792467B; Thu, 27 Feb 2020 08:48:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582793324; bh=RG9Zl/BpZrqRN3HuSpCwlDUS57jnnyLncIWtzvxDXVc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yeV9cIO5+yHqg0pRHuIksXXhCSdwuStrk3RmcmdgzfvxN7ktm2lsx5aUpOD/+xi4k 5kJqDFyM82pDukikSREXjjoXIupCa3+enh5i/8SeenNhYer/SHwai6M+agFAnw7ZMr I+fLSNws91PPGux1ughj/IKPUyozIUfsO72XZna0= From: Mike Rapoport To: linux-kernel@vger.kernel.org Cc: Andrew Morton , Arnd Bergmann , Benjamin Herrenschmidt , Brian Cain , Catalin Marinas , Christophe Leroy , Fenghua Yu , Geert Uytterhoeven , Guan Xuetao , James Morse , Jonas Bonn , Julien Thierry , Ley Foon Tan , Marc Zyngier , Michael Ellerman , Paul Mackerras , Rich Felker , Russell King , Stafford Horne , Stefan Kristiansson , Suzuki K Poulose , Tony Luck , Will Deacon , Yoshinori Sato , kvmarm@lists.cs.columbia.edu, kvm-ppc@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org, nios2-dev@lists.rocketboards.org, openrisc@lists.librecores.org, uclinux-h8-devel@lists.sourceforge.jp, Mike Rapoport , Mike Rapoport Subject: [PATCH v3 03/14] hexagon: remove __ARCH_USE_5LEVEL_HACK Date: Thu, 27 Feb 2020 10:45:57 +0200 Message-Id: <20200227084608.18223-4-rppt@kernel.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200227084608.18223-1-rppt@kernel.org> References: <20200227084608.18223-1-rppt@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mike Rapoport The hexagon architecture has 2 level page tables and as such most of the page table folding is already implemented in asm-generic/pgtable-nopmd.h. Fixup the only place in arch/hexagon to unfold the p4d level and remove __ARCH_USE_5LEVEL_HACK. Signed-off-by: Mike Rapoport --- arch/hexagon/include/asm/fixmap.h | 4 ++-- arch/hexagon/include/asm/pgtable.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/hexagon/include/asm/fixmap.h b/arch/hexagon/include/asm/fixmap.h index 933dac167504..97b1b062e750 100644 --- a/arch/hexagon/include/asm/fixmap.h +++ b/arch/hexagon/include/asm/fixmap.h @@ -16,7 +16,7 @@ #include #define kmap_get_fixmap_pte(vaddr) \ - pte_offset_kernel(pmd_offset(pud_offset(pgd_offset_k(vaddr), \ - (vaddr)), (vaddr)), (vaddr)) + pte_offset_kernel(pmd_offset(pud_offset(p4d_offset(pgd_offset_k(vaddr), \ + (vaddr)), (vaddr)), (vaddr)), (vaddr)) #endif diff --git a/arch/hexagon/include/asm/pgtable.h b/arch/hexagon/include/asm/pgtable.h index 2fec20ad939e..83b544936eed 100644 --- a/arch/hexagon/include/asm/pgtable.h +++ b/arch/hexagon/include/asm/pgtable.h @@ -12,7 +12,6 @@ * Page table definitions for Qualcomm Hexagon processor. */ #include -#define __ARCH_USE_5LEVEL_HACK #include /* A handy thing to have if one has the RAM. Declared in head.S */ -- 2.24.0