From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52369C43141 for ; Thu, 14 Nov 2019 08:04:15 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 05B1D2070E for ; Thu, 14 Nov 2019 08:04:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="ehOgQ1GB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 05B1D2070E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 5F4C66B0003; Thu, 14 Nov 2019 03:04:14 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5A5096B0005; Thu, 14 Nov 2019 03:04:14 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4E14A6B0006; Thu, 14 Nov 2019 03:04:14 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0170.hostedemail.com [216.40.44.170]) by kanga.kvack.org (Postfix) with ESMTP id 3D3696B0003 for ; Thu, 14 Nov 2019 03:04:14 -0500 (EST) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with SMTP id DB123180AD80F for ; Thu, 14 Nov 2019 08:04:13 +0000 (UTC) X-FDA: 76154145186.14.wine74_5f19b287f3b1c X-HE-Tag: wine74_5f19b287f3b1c X-Filterd-Recvd-Size: 3475 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf15.hostedemail.com (Postfix) with ESMTP for ; Thu, 14 Nov 2019 08:04:13 +0000 (UTC) Received: from rapoport-lnx (unknown [84.88.5.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A4A472070E; Thu, 14 Nov 2019 08:04:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573718652; bh=1PyO5+dQPDTpXCmhdbg0KDpb08buZBrMmvB/Mf+5GAs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ehOgQ1GBZQoyqSmTjQ94gv5ZG32CoqqZkGFCYmCmtTbtUOuatpozWB4V8aQllTv25 BH64kHoGVvn9EsZUbg1oVnV9CPy7m63WSe7kBYMXPDcrJY2SmSgW9F1Ca0I0imgorD CuAQ+9ovR4auo2ZKgpUqHN09CEvD54G3NhStx9A0= Date: Thu, 14 Nov 2019 09:04:06 +0100 From: Mike Rapoport To: Max Filippov Cc: Chris Zankel , "open list:TENSILICA XTENSA PORT (xtensa)" , linux-mm@kvack.org, LKML , Mike Rapoport Subject: Re: [PATCH 2/2] xtensa: get rid of __ARCH_USE_5LEVEL_HACK Message-ID: <20191114080405.GA13838@rapoport-lnx> References: <1572964400-16542-1-git-send-email-rppt@kernel.org> <1572964400-16542-3-git-send-email-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Nov 13, 2019 at 12:30:39PM -0800, Max Filippov wrote: > Hi Mike, > > On Tue, Nov 5, 2019 at 6:33 AM Mike Rapoport wrote: > > > > From: Mike Rapoport > > > > xtensa has 2-level page tables and already uses pgtable-nopmd for page > > table folding. > > > > Add walks of p4d level where appropriate and drop usage of > > __ARCH_USE_5LEVEL_HACK. > > > > Signed-off-by: Mike Rapoport > > --- > > arch/xtensa/include/asm/pgtable.h | 1 - > > arch/xtensa/mm/fault.c | 10 ++++++++-- > > arch/xtensa/mm/kasan_init.c | 6 ++++-- > > arch/xtensa/mm/mmu.c | 3 ++- > > arch/xtensa/mm/tlb.c | 5 ++++- > > 5 files changed, 18 insertions(+), 7 deletions(-) > > This change missed a spot in arch/xtensa/include/asm/fixmap.h. > I've added the following hunk and queued both patches to the xtensa tree: Thanks! > diff --git a/arch/xtensa/include/asm/fixmap.h b/arch/xtensa/include/asm/fixmap.h > index 7e25c1b50ac0..cfb8696917e9 100644 > --- a/arch/xtensa/include/asm/fixmap.h > +++ b/arch/xtensa/include/asm/fixmap.h > @@ -78,8 +78,10 @@ static inline unsigned long virt_to_fix(const > unsigned long vaddr) > > #define kmap_get_fixmap_pte(vaddr) \ > pte_offset_kernel( \ > - pmd_offset(pud_offset(pgd_offset_k(vaddr), (vaddr)), (vaddr)), \ > - (vaddr) \ > - ) > + pmd_offset(pud_offset(p4d_offset(pgd_offset_k(vaddr), \ > + (vaddr)), \ > + (vaddr)), \ > + (vaddr)), \ > + (vaddr)) > > #endif > > > -- > Thanks. > -- Max -- Sincerely yours, Mike.