Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3731597ybx; Mon, 4 Nov 2019 01:55:57 -0800 (PST) X-Google-Smtp-Source: APXvYqxr4jKoz+cjOtjQD4FYMTXtGPLPC4xTSfP1vC2XYtxvcot4ec1z+rQ5WCCG1yBnp0UKA9y+ X-Received: by 2002:aa7:c645:: with SMTP id z5mr28525766edr.204.1572861357734; Mon, 04 Nov 2019 01:55:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572861357; cv=none; d=google.com; s=arc-20160816; b=yDBJ6VMebCEcj6icmqmB+sWuaydBtKAbmo4DiadS+1yYPmE0qsemEd9kfayQ8NzUhL RVFyKKNQvVeP7pe+VJK0vCbxacuJFCiTwkML8/aQA+Ybp3BSgG8LZIwmlgU0iGviF3GM V77m1CpsUZmN343Re8SPkfT41otzoPDlu1MpUE/F1xNm93CL2e5L6wbJpZzaA0Uf22MS lgLFMw523kwZNKB2yaztUsVzeyRSgaaxvJSsfR8r2t7fzmxCAy+6GDOFpaeLzRu+Tp4m Aj2AwgOTpNDpU/nVgoFnwLMjtm72S19I6RVWNiN9r2y/CgU+ZnqhC/I6KD7KS/Zk31Na BFqA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=+h1cjKH0wrF33xJsxn6WjuXQMD7BJWb7wrbwDELhFpE=; b=Ol3EdKLkRCr9+CnYt0xbfjSIW0UXDbKp/XpRiHtE6RHxgIr2yBXexGTC66RKxbYIyv VyiP9lHtLF0dwRn+G/T62tGQtOVH+lanb6AL2VfzYYzOyRQSIIWEHlaezWy1VDe4bLzb P/oS3FBh7zMGzUaUYIqhDOmmoQuAAUGycGmJ9eGuPqVdEAtRt77y1rbprYowqmTueBtk mD0LBeUG44bap1gKhzrJCU2E7nCV1O/Mt1xfhyZTTDruwrXrvHT4cGCBp5enQKgsflDJ aDctu1LWMeXx0BJQkmYYOpkumsn/RHO5hYsaj1/31PpniYfmpfVApIP6drBD/DZnev6T Vx8Q== ARC-Authentication-Results: i=1; mx.google.com; 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 a12si10487412ejp.425.2019.11.04.01.55.34; Mon, 04 Nov 2019 01:55:57 -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; 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 S1727939AbfKDJxu convert rfc822-to-8bit (ORCPT + 99 others); Mon, 4 Nov 2019 04:53:50 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:37603 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726633AbfKDJxt (ORCPT ); Mon, 4 Nov 2019 04:53:49 -0500 Received: by mail-ot1-f66.google.com with SMTP id d5so1808003otp.4; Mon, 04 Nov 2019 01:53:49 -0800 (PST) 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:content-transfer-encoding; bh=KliwOsaW5hNOlzjps3zd+1fC4WckuXEun2JezrBsl8M=; b=VT4iPDigdyJQyY+eGSEBG2z95byYx+O72g1TWexezzCHEDkvUNFlkg4blTiZW7RrVw hFTvX8Fh3YS3PgeysvD64rpU66LFNe0ESLuQthk4M/gtbvNeqY14v1aJQKDJS5FmAU0t co6HVuJPCQb6GZ9i7gFZbNRe6B0WmPQ40s9MEWuLf5yDTTVm7PGyJ+69vtGLxSe/DZ1D jiW03HC6MneDPJAJ/Wf7qc5+IUGuYlFIuPisg27PfM/D3TIybtr7+aB2qL5tPR82Um70 MwhtSmE/KagZYuxbQNq/dl8taRjDaG+rsd/WxKjbMO30Vjx5nz3QAInVjLhWJD4H55C/ US9A== X-Gm-Message-State: APjAAAWojAaNQobj/aNkU0uZZUivF4zLZ/J3/IvYrc9M8jYO1vu9ey/6 zUq5upExNYr84e2+Rq2sL70a3GaAcLziZhzF9rUJUQ== X-Received: by 2002:a9d:73cd:: with SMTP id m13mr18480198otk.145.1572861228733; Mon, 04 Nov 2019 01:53:48 -0800 (PST) MIME-Version: 1.0 References: <1572850587-20314-1-git-send-email-rppt@kernel.org> <1572850587-20314-6-git-send-email-rppt@kernel.org> <20191104094748.GB23288@rapoport-lnx> In-Reply-To: <20191104094748.GB23288@rapoport-lnx> From: Geert Uytterhoeven Date: Mon, 4 Nov 2019 10:53:37 +0100 Message-ID: Subject: Re: [PATCH v3 05/13] m68k: mm: use pgtable-nopXd instead of 4level-fixup To: Mike Rapoport Cc: Linux MM , Andrew Morton , Anton Ivanov , Arnd Bergmann , "David S. Miller" , Greentime Hu , Greg Ungerer , Helge Deller , "James E.J. Bottomley" , Jeff Dike , "Kirill A. Shutemov" , Linus Torvalds , Mark Salter , Matt Turner , Michal Simek , Peter Rosin , Richard Weinberger , Rolf Eike Beer , Russell King , Sam Creasey , Vincent Chen , Vineet Gupta , alpha , Linux-Arch , Linux ARM , linux-c6x-dev@linux-c6x.org, Linux Kernel Mailing List , linux-m68k , Parisc List , linux-um@lists.infradead.org, sparclinux , Mike Rapoport Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mike, On Mon, Nov 4, 2019 at 10:48 AM Mike Rapoport wrote: > On Mon, Nov 04, 2019 at 09:53:34AM +0100, Geert Uytterhoeven wrote: > > On Mon, Nov 4, 2019 at 7:57 AM Mike Rapoport wrote: > > > From: Mike Rapoport > > > m68k has two or three levels of page tables and can use appropriate > > > pgtable-nopXd and folding of the upper layers. > > > > > > Replace usage of include/asm-generic/4level-fixup.h and explicit > > > definitions of __PAGETABLE_PxD_FOLDED in m68k with > > > include/asm-generic/pgtable-nopmd.h for two-level configurations and with > > > include/asm-generic/pgtable-nopud.h for three-lelve configurations and > > > adjust page table manipulation macros and functions accordingly. > > > > > > Signed-off-by: Mike Rapoport > > > Acked-by: Greg Ungerer > > > > Thanks for your patch! > > > > The build error reported for v1 by kbuild test robot when building for > > sun3x is still there (m68k defconfig or sun3x_defconfig): > > > > arch/m68k/sun3x/dvma.c: In function ‘dvma_map_cpu’: > > arch/m68k/sun3x/dvma.c:98:33: error: passing argument 2 of > > ‘pmd_alloc’ from incompatible pointer type > > [-Werror=incompatible-pointer-types] > > if((pmd = pmd_alloc(&init_mm, pgd, vaddr)) == NULL) { > > ^~~ > > In file included from arch/m68k/sun3x/dvma.c:17: > > include/linux/mm.h:1875:61: note: expected ‘pud_t *’ {aka ‘struct > > *’} but argument is of type ‘pgd_t *’ {aka ‘struct > > *’} > > static inline pmd_t *pmd_alloc(struct mm_struct *mm, pud_t *pud, > > unsigned long address) > > ~~~~~~~^~~ > > The initial report was against older mmotm (base: > git://git.cmpxchg.org/linux-mmotm.git master) and I presumed this was the > cause of the error. Will fix in v4. OK, thanks! My tree is based on m68k/master, which does not include the mmotm tree, and should be fairly similar to plain v5.4-rc6. > > This indeed boots fine on ARAnyM, which emulates on 68040. > > It would be good to have some boot testing on '020/030, too. > > To be honest, I have no idea how to to that :) Sure. This was more a request for the fellow m68k users. But don't worry too much about it. If it breaks '020/'030, we can fix that later. Thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds