Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp610584ybl; Fri, 31 Jan 2020 04:58:08 -0800 (PST) X-Google-Smtp-Source: APXvYqxt6anTMjxOp4KR4PuCIfjLiH5TeoZNA29xQbFKZLb++GA/79oJYOaIsg8PbuZMz1f7ZSPH X-Received: by 2002:a05:6830:10d5:: with SMTP id z21mr7889623oto.30.1580475488512; Fri, 31 Jan 2020 04:58:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580475488; cv=none; d=google.com; s=arc-20160816; b=Ldb1yf9ib/50MhTo+vSeIlAU1EdtTyuYzmtHhfw2woxi0b929lCvluwL16UF7IaRIr E7sD9fcN67NHlyiDsPiCLxK3p5DiOnp1cF4W6CMT+3SXOvwKrMMCI7YGDfUBq72zgBZg YAZOQuOb2jQCIh0Cv8lykn0duMWh92A0ATLGMPr3LaFu0x0J17zFCItZGFuO3vdFGOi1 LMqRaLduSWwFdgXpQgLmNVHPZ+UfhskkcprAauVd9d9+WH0QFu2JXw6/2nMwel3Uqho9 F/t3WtqgxxSZAUz6wefSMSOYXIkA1aaa287EeQ49V73QUHg6vROoTWOLniBdnJ2fxh9f mJdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:cc:to:from:date:user-agent :message-id:dkim-signature; bh=tQe5ZkmOJfFNHXR/r2H5EVWu98xBJw3hJYOCQreRxLE=; b=nBspyJg5Jm+QFzwgj8sJA6bW9M1HlyBws7dNtNfcP3Hy3KOdRSjnjJZvvSdDwYteg4 6fpO2hRmXd6aTtWi3LFYeQ8Ns644h9BvYhCk8giVXxf6Wg99DTP6JIYbDwqbyqwM7nSE G6nKBcXH+ufocFvXmku4V4tg25urWJ97Qio5Wjasd/4T1WEO2LKTpj/9ac6u+16VR6nq dcQZSliyskmUNq4i2WJSn85wiMb0veO0TxZLR7d4hhbDdhGKgQ4ggTEVBatGoRC7mtNo N8mOLuJEcGyLCM/3V4khBQqv4+MuxjweR2CjuN+TMfYVyjlzXwJOAbWyfGXiincRpxoQ 5H6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=ocNmgmBO; 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 l10si2646100oth.243.2020.01.31.04.57.56; Fri, 31 Jan 2020 04:58:08 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=ocNmgmBO; 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 S1728736AbgAaM4b (ORCPT + 99 others); Fri, 31 Jan 2020 07:56:31 -0500 Received: from merlin.infradead.org ([205.233.59.134]:39020 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728621AbgAaM4H (ORCPT ); Fri, 31 Jan 2020 07:56:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Subject:Cc:To:From:Date:Message-Id: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=tQe5ZkmOJfFNHXR/r2H5EVWu98xBJw3hJYOCQreRxLE=; b=ocNmgmBOpYN35Mc8mLXROXdxo WBjIQAMyZtqZqd8y4pusoY3WUd7YnHZucy9eI0kQOTgeLHXGbbcnTnYjMnCHBJ7SOsZNLcsqLw4QT wIAE6VgD4buNEBhY/0MfWTr/Hpq+lN9nJgHMywwaXfu0fKcGHYcPe7jtwErNaQdVRZpDUqTLRsEdU GGJmgyLp3WAfwpoHouMQs4JFoLOTyptn8CK1Jf3rOpCmMliEdw0+1FK+BJpWlzhE9f185gp1tmgQH dk13A7/Ff5EFkNTnHMMn9FdqRO/Pqtr8qywACkwIyc/tCI4JgwxFtSDT8lfRfoKZZXy6jgOfF8CUI 7WVm3OFWA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixVq7-0003gH-P5; Fri, 31 Jan 2020 12:56:03 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 34027300E0C; Fri, 31 Jan 2020 13:54:17 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id DA4742B4C426D; Fri, 31 Jan 2020 13:56:00 +0100 (CET) Message-Id: <20200131124531.623136425@infradead.org> User-Agent: quilt/0.65 Date: Fri, 31 Jan 2020 13:45:31 +0100 From: Peter Zijlstra To: Geert Uytterhoeven Cc: linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, Will Deacon , Peter Zijlstra , Michael Schmitz , Greg Ungerer Subject: [PATCH -v2 00/10] Rewrite Motorola MMU page-table layout Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! In order to faciliate Will's READ_ONCE() patches: https://lkml.kernel.org/r/20200123153341.19947-1-will@kernel.org we need to fix m68k/motorola to not have a giant pmd_t. These patches do so and are tested using ARAnyM/68040. Michael tested the previous version on his Atari Falcon/68030. Build tested for sun3/coldfire. Please consider! Changes since -v1: - fixed sun3/coldfire build issues - unified motorola mmu page setup - added enum to table allocator - moved pointer table allocator to motorola.c - converted coldfire pgtable_t - fixed coldfire pgd_alloc - fixed coldfire nocache --- arch/m68k/include/asm/mcf_pgalloc.h | 31 ++--- arch/m68k/include/asm/motorola_pgalloc.h | 74 ++++------ arch/m68k/include/asm/motorola_pgtable.h | 36 +++-- arch/m68k/include/asm/page.h | 16 ++- arch/m68k/include/asm/pgtable_mm.h | 10 +- arch/m68k/mm/init.c | 34 +++-- arch/m68k/mm/kmap.c | 36 +++-- arch/m68k/mm/memory.c | 103 -------------- arch/m68k/mm/motorola.c | 228 +++++++++++++++++++++++++------ 9 files changed, 302 insertions(+), 266 deletions(-)