Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2883329ybc; Thu, 14 Nov 2019 00:08:15 -0800 (PST) X-Google-Smtp-Source: APXvYqyYkQA0ecGJ1v4lfjQLKs+aTqO6SgQ8F2LbxZA2bpZ9jXB6dAM3oX3v8PqURsQHr7WaaJHQ X-Received: by 2002:a17:906:4096:: with SMTP id u22mr7181133ejj.264.1573718894959; Thu, 14 Nov 2019 00:08:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573718894; cv=none; d=google.com; s=arc-20160816; b=S6gqGRtNBvyc1rGMYIXXBYknj6vPAVIWMcOJLkGvknhQcRkjXUpa1pbcxMrCss97tu x6vgilRku+faViFb78W3NyFO0035TG9g/j5VqNcAd9GgyQtt3AmGLK8igW+Mcug+wd/y e/0+0EDyWJIdJQStooNz5ZeKdUfF5oOxkEGzd1lua2tB6cOGIVwkSqZ8zp5Re99JxgMC lIAbGjuo6iwr2CWhuSZ8jfHHIBXYb9HbUBdJyB0bYWgliu1ZiKW+DFsgdTzo+/VpJvJ9 XqouC9LlXGorz0BYbCUl+Wr9NamKyAsxUd0tQ10THaRiXnNVC9kxm0zHIaLv0GSzwoV1 lhPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hTNMF5LC1OL/I6DZHz92MWmu3M+g5tEo/SEospIWhk0=; b=sbW9U6By/5zM0iSbpd9qHKmijXYNlu6eTdUnTs15CUzHDUuKLMyDOEEE+gysCdoqBf lhG51Et0b77OPfAq4Neni5w3hmZ1duDsSPwlSLIbJaIVsTd0d9SHSVjWp/Tpa5m1RvWt USAZ5WBG35aHBAM2SjNl37Hsn+Vl1vibnZCPM5l17A9dIRR5ln+HO8FqJeveEmDF4u5b 1/UkmSieyV3FVqXxdRkMs5vW4TM9Y9EO4ZSDNSZ5tCi5GJeqHRV8coi97s2SQgIJklmV EBl8e5unSlb/PIsRQ1fGfdP6yk2lahlhCD1KYhnJ03Rh1gWbGDLGJVc97Val5vUGmgHj lVHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ehOgQ1GB; 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 f26si2981467ejr.92.2019.11.14.00.07.49; Thu, 14 Nov 2019 00:08:14 -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=ehOgQ1GB; 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 S1726179AbfKNIEN (ORCPT + 99 others); Thu, 14 Nov 2019 03:04:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:54302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725838AbfKNIEM (ORCPT ); Thu, 14 Nov 2019 03:04:12 -0500 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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.