Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2324958ybc; Wed, 13 Nov 2019 12:35:10 -0800 (PST) X-Google-Smtp-Source: APXvYqw4flbggChYaqxthfXPRWb6wU3f5BgacXe2HslITvUWIxA8J0gCIjOv/sWgQpogQUduCSs3 X-Received: by 2002:a17:906:3495:: with SMTP id g21mr4848380ejb.190.1573677309972; Wed, 13 Nov 2019 12:35:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573677309; cv=none; d=google.com; s=arc-20160816; b=yx++Is+YQJAHlN0GRCiMTmqlLDX/UfYrFPgtMpN751ksg7CcvN9ixh2JwZ5TAXO5MI fxWVNraRNXmOHWl+BBR0PijC39qbDNXhfjrabZsTBe2YdbvJWQaaYCMscgraAxtmMDDE Xyn1luHP4jmKxlGCIYdK5dYnsW0jDhoBhDelB72SecRwmlPTdGkTPQfxsGb1j3hzkI18 1bGe0Q2jKiySDAWxb4R+kepemy5vZT3D8uif2HlQ2gEVmkmN3+Gh4Hp2CZyKgNBKQI2c VHsC6P1xL8QmiDeGE30gK6H0gEYtPO+Kbg6CDJD0kTAQwHuGrWSsqQDVB4NhLJxPW6Fk Rejg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=HhUJSPQDvSVcW6lExUu0Aos25QWc66JPMYbcEiKuXrc=; b=HyG5mu5DRX8FtBEAy+dE/wFfhakBi7Wr2yOQtTPwuwqXulN+h4GcXFJcm1NkX9CXxU Y+6vOOLaWss4W5R1BF6SKgod/CKGbo3urTa2gGRKwfuFabNte/UrtEMT2cOjWJp/DLJ+ bMsGtoRcfuE5VkHLzKVnaMMhM0hYsYnHwuwoblB3PdyeLu06N97FlF0r6Dyrl6xW6bVY fsgFkGT+fuTTwqXqhpSoY5ibSKOyMN/LOz5wqgugrRTTcfh/A1qySeQMOOrl3vklWOZM xtiTxzPXulLrmisluMh9S4iTKPczz7I2xufAe5IKAzMJwyGX+OT7S8RlciQSYCSTfBZr ENEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Nn03DCxi; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ce20si1905899ejb.183.2019.11.13.12.34.44; Wed, 13 Nov 2019 12:35:09 -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=@gmail.com header.s=20161025 header.b=Nn03DCxi; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726291AbfKMUaw (ORCPT + 99 others); Wed, 13 Nov 2019 15:30:52 -0500 Received: from mail-yb1-f194.google.com ([209.85.219.194]:45175 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726162AbfKMUaw (ORCPT ); Wed, 13 Nov 2019 15:30:52 -0500 Received: by mail-yb1-f194.google.com with SMTP id i7so1486982ybk.12 for ; Wed, 13 Nov 2019 12:30:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HhUJSPQDvSVcW6lExUu0Aos25QWc66JPMYbcEiKuXrc=; b=Nn03DCxiI7YI0L9xwwcV+FWANHJyX0Nosiah9C9ZEYM6RrUknHizEw0/Ycd051SlK3 p+Abqia/sM7br2NF1iq6mgg7c3AqnCya0VFzL+xCg6m/DvN2uAaXNdeI+hA1pF0mlLm7 lajPR7C6kVPLXfNzWmevC8ueutQUsmor9IfCJkTa6m9g1VjBQ0cCm0ROz3JWUfbpI+eB PiOheiqaWiP9+CJ6BJaOZOv4+4gGvcJ41Un+Wqvod2rKcV1KbUYOz4xORFCqDAbJgbQQ 562C+TZg0L8TjWX3oLB+QWrwC15uulzsY5TV58YDTkSLEnYd9pPzqLJ2FvpCLH1ZoccY jJiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HhUJSPQDvSVcW6lExUu0Aos25QWc66JPMYbcEiKuXrc=; b=iWZH0zWqLnXNXQIMbihKB54SQ0iEJp9s6ysyHE2uDL/CdFluk0SRGkaDBbdmb1G3mM Uxq4Odp9F9mRRMc5phNXrLDsp7eDrg/rqbCFBfNJUCwkWWRN9mV8KAylEUavIHJl0V4v Wex93vteoxva9G7raGOKXey/4W5ERbOiMeMo283b9cw7LFYJrR4ItoR/KqO5oYMjhwfl J6SidmD0fecQLL2Syf/u+jYph4SrS9FIwssos+lbXmo/Csu3NQOzh8Nq55+OUpIm3BS0 k2+cLRgfLllFLOruM68uyuahNzRJFG+fShMnWW0lgweh+hFvboS70As/mD6P4/j6lfxJ KJtw== X-Gm-Message-State: APjAAAX3eFZAoptRPbVKBmieHGrahKSc2Dmrw9nFxw9arVp+BVyMJddo AfxQqTVw1iN/Y4gJ/LMNNCgAtbIU4feDOgV1gEc= X-Received: by 2002:a25:768d:: with SMTP id r135mr3778035ybc.25.1573677051679; Wed, 13 Nov 2019 12:30:51 -0800 (PST) MIME-Version: 1.0 References: <1572964400-16542-1-git-send-email-rppt@kernel.org> <1572964400-16542-3-git-send-email-rppt@kernel.org> In-Reply-To: <1572964400-16542-3-git-send-email-rppt@kernel.org> From: Max Filippov Date: Wed, 13 Nov 2019 12:30:39 -0800 Message-ID: Subject: Re: [PATCH 2/2] xtensa: get rid of __ARCH_USE_5LEVEL_HACK To: Mike Rapoport Cc: Chris Zankel , "open list:TENSILICA XTENSA PORT (xtensa)" , linux-mm@kvack.org, LKML , Mike Rapoport Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: 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