Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2065781ybl; Thu, 5 Dec 2019 11:23:10 -0800 (PST) X-Google-Smtp-Source: APXvYqyD+dMtrEfCL6gfV+LtRf7FbeaJws1Pl1MtjuGO2aUXcW83c4gG5ivunUvPV6MDJtEWcOhM X-Received: by 2002:aca:2812:: with SMTP id 18mr8757602oix.14.1575573789963; Thu, 05 Dec 2019 11:23:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575573789; cv=none; d=google.com; s=arc-20160816; b=hHwfzbUbZjDMGOfZidLRAM2iY8FRHS7n81w3Ijh2UjWW1wBER2wN39pUQEgfeGnKkU MnpxQsPgVd352x57yw6jIUWSq1E5cQEdqGQBs7k0+pRsMo6RPVKMmk4W0Bs5EAO+Upfj t1pYIzuUBzzOkHNst6uUtsahfAt8TruXkfI1SLarXhB/ONmwYShp6UNtAGXGe7MlWda5 5HtEBLCyTYFFLnVUbrH4NvtbFU8jZI3jd51k9RSx7zmQ4QA6Xzamt+nDburs1+27gJV2 rc40VIbely0LB2InqyackQalvLz626FWhPUYsy8k1oXOSrRRqPDpfkgu7DWE/qOi8DCl xheQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=4yV+umxVyxp5Mb2HYWi0wAWxdwihlH+FLOLypRAoavA=; b=XARCJ+FNekola6vbNKwKs8ZtEnGT4BcV//XoUvDj9Pvpzz9uFSsRs3GL7y3gQRj8Ot Pm0VbUOGnQG2XqkMTyMBbQm27CjGMSOKgfXnXgHHqFJpacm9x975q8uRv+qMzwRITeMF t+SHD6dj5CGGiQ0GeuTtyxTjXTk1TIHuHDIMF344Pdv2JRUP+RGD8+dUYAuFj80OK4DL KqlXlf5HFpJ4a1Bg1IGiFj65nHQ7kogm/uW6Yyasw4Vif+th1U78wkXdtpkmZ5J89Tva DlJtLTmgl0sPTPUHJAv2SpqZucOv7seyWRNYesUNCdc/9l0dfCZ0rDxaj7+msnt7pE2A 7mDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b="v4ta/HTV"; 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 u18si5564877oia.80.2019.12.05.11.22.56; Thu, 05 Dec 2019 11:23: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=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b="v4ta/HTV"; 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 S1729640AbfLETUz (ORCPT + 99 others); Thu, 5 Dec 2019 14:20:55 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:34657 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726257AbfLETUz (ORCPT ); Thu, 5 Dec 2019 14:20:55 -0500 Received: by mail-oi1-f195.google.com with SMTP id l136so3849764oig.1 for ; Thu, 05 Dec 2019 11:20:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=4yV+umxVyxp5Mb2HYWi0wAWxdwihlH+FLOLypRAoavA=; b=v4ta/HTVZmDiyfFTTC5LhLhiUOyLOYHST6UYYUNMQtBo54lBue/3JPrhHhZKvGTBD+ a51vR5HAYXo1cFZHrGTEzo+NPTjGLQDR8kCQwr6oztJIaN8XRf7GYi4TsljEXcw6gGKv YGnEcCdlS0+S1RTCgm0ZZt9FAEJBk0tNhbVTfj9JrDIuOQ5ldLArQJO5Wxl5f42XF9nS tiePfGKHQxDTHyMxN7Wv6N+OHP/YeUAHOZCIUAptjPI17saPvvPkQYPAor2meRxjPYVy Mf5reT22pAhYRF9TXHBAUwsmz5qq1G2PqgJvFWLceQfLBDEiY09YcWayUI7oQQTjQs8l COtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=4yV+umxVyxp5Mb2HYWi0wAWxdwihlH+FLOLypRAoavA=; b=EcD9XSjpE440KpBFs6ShgtwKObYbLwQIG/AMtl4dZXPQXzq+L1xBSKOJ7+5wzZZPvJ YkpXxAOFQc3Q0hcfk2+1rVWfEMpnn5v4YdxQPX8fQd1Ji/Zrtwadq5l3Z42ephMO4HUh x8kbkWn9J4K4wHdhcPYoCdTmytQ9eH3fpHNO8avKUHyfpMvWJBiCyNMxJEovXxyEAqod QNZlNXr48PeGhXNBt8NERmUU39w8Slc1KmcgEszXGsXVmNvYQTDir37+Pr4idlG5PXKr VlPa/xj/L2BMhIZCysK+Ylw4ka5uaH8DB4g5L/hhnxXCWyWUyxwR7HGi83tHAkodqrC4 sK4w== X-Gm-Message-State: APjAAAW3EmCQ8TXdzMlplX1L+Z+Be4REMtAclXV9Pcs59fsL9UNVw6eV sVSAoUAWxLcFDIeWiZkAXCX4hpbdqrBFeI6c X-Received: by 2002:aca:c146:: with SMTP id r67mr8812840oif.61.1575573653971; Thu, 05 Dec 2019 11:20:53 -0800 (PST) Received: from ?IPv6:2607:fb90:d77:c7b2:6680:99ff:fe6f:cb54? ([2607:fb90:d77:c7b2:6680:99ff:fe6f:cb54]) by smtp.googlemail.com with ESMTPSA id 61sm3696236oti.5.2019.12.05.11.20.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Dec 2019 11:20:53 -0800 (PST) Subject: Re: [PATCH v6 10/18] sh/tlb: Convert SH to generic mmu_gather To: Peter Zijlstra , 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 References: <20190219103148.192029670@infradead.org> <20190219103233.443069009@infradead.org> <20191204104733.GR2844@hirez.programming.kicks-ass.net> From: Rob Landley Message-ID: Date: Thu, 5 Dec 2019 13:24:02 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191204104733.GR2844@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/4/19 4:47 AM, Peter Zijlstra wrote: > 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 ?!? No, but most people running this kind of hardware tend not to upgrade to current kernels on a regular basis. The j-core guys tested the 5.3 release. I can't find an email about 5.4 so I dunno if that's been tested yet? I just tested yesterday's git and it works fine with http://lkml.iu.edu/hypermail/linux/kernel/1912.0/01554.html installed, modulo it _still_ has the suprious stack dump shortly before calling init, which I've complained about on linux-sh and off for a year now? ------------[ cut here ]------------ WARNING: CPU: 0 PID: 1 at mm/slub.c:2451 kmem_cache_free_bulk+0x2c2/0x37c CPU: 0 PID: 1 Comm: swapper Not tainted 5.4.0 #1 PC is at kmem_cache_free_bulk+0x2c2/0x37c PR is at kmem_cache_alloc_bulk+0x36/0x1a0 PC : 8c0a6fae SP : 8f829e9c SR : 400080f0 TEA : c0001240 R0 : 8c0a6de4 R1 : 00000100 R2 : 00000100 R3 : 00000000 R4 : 8f8020a0 R5 : 00000dc0 R6 : 8c01d66c R7 : 8fff5180 R8 : 8c011a00 R9 : 8fff5180 R10 : 8c01d66c R11 : 80000000 R12 : 00007fff R13 : 00000dc0 R14 : 8f8020a0 MACH: 0000017a MACL: 0ae4849d GBR : 00000000 PR : 8c0a709e Call trace: [<(ptrval)>] copy_process+0x218/0x1094 [<(ptrval)>] copy_process+0x7ba/0x1094 [<(ptrval)>] kmem_cache_alloc_bulk+0x36/0x1a0 [<(ptrval)>] restore_sigcontext+0x94/0x1b0 [<(ptrval)>] restore_sigcontext+0x70/0x1b0 [<(ptrval)>] copy_process+0x218/0x1094 [<(ptrval)>] sysfs_slab_add+0x106/0x354 [<(ptrval)>] restore_sigcontext+0x70/0x1b0 [<(ptrval)>] copy_process+0x218/0x1094 [<(ptrval)>] copy_process+0x218/0x1094 [<(ptrval)>] fprop_fraction_single+0x38/0xa4 [<(ptrval)>] pipe_read+0x7a/0x23c [<(ptrval)>] restore_sigcontext+0x70/0x1b0 [<(ptrval)>] restore_sigcontext+0x94/0x1b0 [<(ptrval)>] alloc_pipe_info+0x162/0x1c8 [<(ptrval)>] restore_sigcontext+0x94/0x1b0 [<(ptrval)>] restore_sigcontext+0x70/0x1b0 [<(ptrval)>] handle_bad_irq+0x154/0x188 [<(ptrval)>] raw6_exit_net+0x0/0x14 [<(ptrval)>] prepare_stack+0xe4/0x2fc [<(ptrval)>] sys_sched_get_priority_min+0x18/0x28 [<(ptrval)>] ndisc_net_exit+0x4/0x24 ---[ end trace 6ce4eefeb577b078 ]--- But it's cosmetic... I haven't got one of the new Turtle boards yet (next time I visit Japan...) and the USB connector broke off my old one, so I haven't got test hardware in my bag to boot it on with me at this coffee shop. So just qemu testing at the moment. The actual j-core deployment environment I'm working on this month is a deeply embedded thing with 128k sram so isn't running Linux. :) Rob