Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp522949ybl; Fri, 31 Jan 2020 03:17:08 -0800 (PST) X-Google-Smtp-Source: APXvYqyeFgRUB3YoCOpG8UKY+xRNNgA3mlx8p9Luioi3DozRhNMVuw6Q04n1OH1vO/J8XsIjQwaW X-Received: by 2002:a9d:4c14:: with SMTP id l20mr7182461otf.125.1580469428693; Fri, 31 Jan 2020 03:17:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580469428; cv=none; d=google.com; s=arc-20160816; b=XsTgnrw5Dl2+yHkH8f/pPPIkAwMT5tyfWGBlZMutGVxnHi82YhcmFNu1EBK1QSsBam deQ7Ho2jZ8zCkmv5+qsiewOlw4UPPEUR24CGOKP6AgxEgvtR/CzMgvkAAK3u/PYW8XMt PMd4sapz+FkkzhwcR3gJe6BFpl8b8JBp8DHTU8Ku/bFo/ajTkz89LbX0uh+TEc70Po+r +BcvoaBeVCv7UQnwtkro51n8X8pkMqSoQo0AnyWgUmQwwaykJCAy0c3s1A5n2eh+gnCM BxASI8TysPFxdEuryBEMXuZHJFBuaEP5SeCzXF7WpIX/R5cdBLqOETu5FUXPUIy+sXHp CcOg== 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=5OfgyaE20AJ017aVKU8rBOO0ddIOPKVfUp8Sgc1aLVg=; b=U4tjytHjb5ebRGgmCDIw4KTd9TRqwjDJ3iaOv0ujb8bzNLUIkNimisUS9UAq7AKIgt DjKlfo13aG50zQUHm4GViZsZJmWN/OmUO8lTZe1QNCf6BCnL58SbO7irdLelL9GV1gKt eokPzyqMV1g7Mjzcu2ZnXVszKZewNHG+omZ4CxMqYPf2LSqSGg9q5ngn7gVrQ64xFR0k 0CNY8gUHJ1Cxn1Cn64dp0rCTWi19TzkcF6qlauQ41GmUKt2t94gfi2kjufKlCojDMLU+ qzRB4Y8NPUx+HepqJKv1BTfKTYJdL6UQQzTPnSyPMtHrmRROASWi4eCwbY0+K6Yx3cfT 037w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=AynFvpk3; 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 c196si4183066oib.36.2020.01.31.03.16.56; Fri, 31 Jan 2020 03:17: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=bombadil.20170209 header.b=AynFvpk3; 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 S1728395AbgAaLPD (ORCPT + 99 others); Fri, 31 Jan 2020 06:15:03 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:58100 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728342AbgAaLPD (ORCPT ); Fri, 31 Jan 2020 06:15:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=5OfgyaE20AJ017aVKU8rBOO0ddIOPKVfUp8Sgc1aLVg=; b=AynFvpk3cnMGqU5HpJhMwGbmW jljQKytJ7d9x9lLifRy+zW8YGdg+9W+DGyk0FN24JuLWl898qdNl/pzRxqvk/tE211SPowK7GR8lH 526X0Oib8F8ckCLbrDNSvVxaNrBBEkpIea+Co8/JdNV98cNihh0Yjy59LMhIkKqD5rK545Y2fDxTa o9gEJMoJMlMvk8epgGDl7E0veCVFIKY8+qBYzFBHvUry09L9kwbczFnUcMKDJSJfFc4taikjM6CR9 75S8FE6GB7HlfDKtgpz5QC0A2FqigZSSObAeO136BuEUYfmNO+ED4vVO11oiwSBFDgVtzHwype9dz l1cANlcBA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixUGL-00062y-Iv; Fri, 31 Jan 2020 11:15:01 +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 9CCBE3007F2; Fri, 31 Jan 2020 12:13:15 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 5061A2014711C; Fri, 31 Jan 2020 12:14:59 +0100 (CET) Date: Fri, 31 Jan 2020 12:14:59 +0100 From: Peter Zijlstra To: Will Deacon Cc: Greg Ungerer , Geert Uytterhoeven , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/5] Rewrite Motorola MMU page-table layout Message-ID: <20200131111459.GO14946@hirez.programming.kicks-ass.net> References: <20200129103941.304769381@infradead.org> <8a81e075-d3bd-80c1-d869-9935fdd73162@linux-m68k.org> <20200131093813.GA3938@willie-the-truck> <20200131102239.GB14914@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200131102239.GB14914@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 31, 2020 at 11:22:39AM +0100, Peter Zijlstra wrote: > On Fri, Jan 31, 2020 at 09:38:13AM +0000, Will Deacon wrote: > > > > This series breaks compilation for the ColdFire (with MMU) variant of > > > the m68k family: > > That's like the same I had reported by the build robots for sun3, which > I fixed by frobbing pgtable_t. That said, this is probably a more > consistent change. > > One note below: > > > > -static inline struct page *pte_alloc_one(struct mm_struct *mm) > > +static inline pgtable_t pte_alloc_one(struct mm_struct *mm) > > { > > struct page *page = alloc_pages(GFP_DMA, 0); > > pte_t *pte; > > @@ -54,20 +55,19 @@ static inline struct page *pte_alloc_one(struct mm_struct *mm) > > return NULL; > > } > > > > - pte = kmap(page); > > - if (pte) { > > - clear_page(pte); > > - __flush_page_to_ram(pte); > > - flush_tlb_kernel_page(pte); > > - nocache_page(pte); > > - } > > - kunmap(page); > > + pte = page_address(page); > > + clear_page(pte); > > + __flush_page_to_ram(pte); > > + flush_tlb_kernel_page(pte); > > + nocache_page(pte); > > See how it does the nocache dance ^ > So either, alloc_one() shouldn't either, or it's all buggered. Damn, we weren't going to touch coldfire! :-)) So now I found the coldfire docs, and it looks like this thing is a software tlb-miss arch, so there is no reason what so ever for this to be nocache. I'll 'fix' that.