From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1AD2C43603 for ; Thu, 5 Dec 2019 19:20:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 71ADD2464D for ; Thu, 5 Dec 2019 19:20:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=landley-net.20150623.gappssmtp.com header.i=@landley-net.20150623.gappssmtp.com header.b="v4ta/HTV" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729712AbfLETUz (ORCPT ); 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-Google-Smtp-Source: APXvYqxSAZn7yskgyF4hY2x+zDFHc1x9kx/3qY5XGkP+CwZZSGO3a5P1NSuWeZ//2xVCH3qTV0dGgQ== 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