Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp287951ybl; Wed, 4 Dec 2019 02:50:00 -0800 (PST) X-Google-Smtp-Source: APXvYqxq3EnVCXwiiZ2WD68CYTMiW7ow3tAxfmHtgPT3wkVm6sS/kPiLWRx8Loehgz23RdWgac1/ X-Received: by 2002:a9d:861:: with SMTP id 88mr2039461oty.258.1575456600119; Wed, 04 Dec 2019 02:50:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575456600; cv=none; d=google.com; s=arc-20160816; b=YJta2CdU9v6Hnmj12bQpMx0xXLLfjowMaxNoL8tuoWn1cmLB709SJ04btAbTX7d1Qf lC7s0bIlXN3RGW+H0nSch2fQUgHyRHm2W4sqHkV/3+hKm6dGtwDIJ0BWbunUf0IclntG NfEa1+MY7QiY+yniMMmF4fAyQiSGEfLu3ZF6c2d/LryZ4VIZj2XkO76o9gAK89RBUm1u ETB6nsuX5sYAg0qQZBZWuDmLQhHAARem5X22uONZN/C8vM5yGifq0tao+24Qm91I3T6J mAnghM/cc4nPMRgdidCIhVmAIeobIzkrT/0LCpnY8QQaIcsulsq6zUjFYdQdMUueXnUi GWXQ== 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=bzEyGREtuXLN+BJxDXXMIaaMU5KjR8ry9dUjVmcDpeU=; b=rxCZZ0/hDCb0E+ZlVzoLVgcfMZdp3MWYTnoBd4PoDFupyiHkEfGmI6WvnkQOspya9B 9oCU0TlR3hYyMLmqaSIzxCnGeszJmWmWQm8Nt4ED90TN8caa4U6tY+mE9csv5tXpEQB8 TeK0NZL9UGVVuSyeNGr/dLVGcyo4kO/2sUCw6KvEh+v2gah+KNmLFLzJLNsqz2N8IwnN SE84DLXUFrtoXCdLgA6rBgrpAR2OMH9EknDCYWXRwfGo10xy8Zv2DdF9E8EaAt9NkjOq eWiOWgQDLPJOpFcnOyswxdK69foS8YnGHJAk9zwfvt6XOPWl6Cljy9HT+AijhzqSqUGN HuyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=gxYkV6vZ; 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 l204si2956818oig.31.2019.12.04.02.49.46; Wed, 04 Dec 2019 02:50:00 -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=gxYkV6vZ; 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 S1727503AbfLDKtS (ORCPT + 99 others); Wed, 4 Dec 2019 05:49:18 -0500 Received: from merlin.infradead.org ([205.233.59.134]:59866 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727268AbfLDKtS (ORCPT ); Wed, 4 Dec 2019 05:49:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=bzEyGREtuXLN+BJxDXXMIaaMU5KjR8ry9dUjVmcDpeU=; b=gxYkV6vZObIYRZTv3aSY6JqJx ajMdvZ4eP8CRwMNtZoKDZ2Uoj9SyNpex4TQGBG4QjfWiMOFgBqgN280jfkuKAcfs8xW3jzyEJRX1k 9gfzx/4W3ajHtjI23hu1lESGb/LL+Cu7ME++Y6nk5U6lpc6ncAQdnIF58wm4FTMOChNCFX+X+KBaF mPu52L3jpoDb7in+11K70kLmjzxk0cunAvU2cR8GaDQMyEX0ssfYbgB7dfAXGHHM4G2uk+FWEcL5W 8ItWr0uDhCakCPhq5avym6TKiFur1RGgx+OZGUUC/i5h7mcvxzCXqf/nt1vU9RvJXJ/Jcuzq5oqRZ wUtC6+8ZA==; 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 1icSC2-0005Cu-Tg; Wed, 04 Dec 2019 10:47:39 +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 F0B4D3011DD; Wed, 4 Dec 2019 11:46:16 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 7A5082007B378; Wed, 4 Dec 2019 11:47:33 +0100 (CET) Date: Wed, 4 Dec 2019 11:47:33 +0100 From: Peter Zijlstra To: Geert Uytterhoeven Cc: Will Deacon , "Aneesh Kumar K.V" , Andrew Morton , Nicholas Piggin , Linux-Arch , Linux MM , Linux Kernel Mailing List , Russell King , Heiko Carstens , Rik van Riel , Yoshinori Sato , Rich Felker , Linux-sh list , Guenter Roeck Subject: Re: [PATCH v6 10/18] sh/tlb: Convert SH to generic mmu_gather Message-ID: <20191204104733.GR2844@hirez.programming.kicks-ass.net> References: <20190219103148.192029670@infradead.org> <20190219103233.443069009@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Tue, Dec 03, 2019 at 12:19:00PM +0100, Geert Uytterhoeven wrote: > Hoi Peter, > > On Tue, Feb 19, 2019 at 11:35 AM Peter Zijlstra wrote: > > Generic mmu_gather provides everything SH needs (range tracking and > > cache coherency). > > > > Cc: Will Deacon > > Cc: "Aneesh Kumar K.V" > > Cc: Andrew Morton > > Cc: Nick Piggin > > Cc: Yoshinori Sato > > Cc: Rich Felker > > Signed-off-by: Peter Zijlstra (Intel) > > I got remote access to an SH7722-based Migo-R again, which spews a long > sequence of BUGs during userspace startup. I've bisected this to commit > c5b27a889da92f4a ("sh/tlb: Convert SH to generic mmu_gather"). Whoopsy.. also, is this really the first time anybody booted an SH kernel in over a year ?!? > Do you have a clue? Does the below help? diff --git a/arch/sh/include/asm/pgalloc.h b/arch/sh/include/asm/pgalloc.h index 22d968bfe9bb..73a2c00de6c5 100644 --- a/arch/sh/include/asm/pgalloc.h +++ b/arch/sh/include/asm/pgalloc.h @@ -36,9 +36,8 @@ do { \ #if CONFIG_PGTABLE_LEVELS > 2 #define __pmd_free_tlb(tlb, pmdp, addr) \ do { \ - struct page *page = virt_to_page(pmdp); \ - pgtable_pmd_page_dtor(page); \ - tlb_remove_page((tlb), page); \ + pgtable_pmd_page_dtor(pmdp); \ + tlb_remove_page((tlb), (pmdp)); \ } while (0); #endif