Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp263952ybv; Wed, 12 Feb 2020 23:45:50 -0800 (PST) X-Google-Smtp-Source: APXvYqwwZN2WBvOWPZd3sOzqu1Q43Bj4sD8g8uUPqPfQofPU1iQD80aBeFnC5WtXTnHuBlusfSm8 X-Received: by 2002:a05:6830:155a:: with SMTP id l26mr12563298otp.339.1581579950704; Wed, 12 Feb 2020 23:45:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581579950; cv=none; d=google.com; s=arc-20160816; b=BwQrbxV0SXxfVnhOBmrfUvpgHdziPFd7qwbP/1fz5JuaMEJY79gHXT0D8PvAR5/i7L INSxcD1KvqLbXq6DfFz2Dia8SdHwFCMw4g+RP88L5vRTHHIZ3gVSFFybgKM6boS24xdf 9+2buOAPFDGGoQaSkR/AK8M+R+5kw9/i9W/cs/0bgHEyCeiCAe5byE395TgZRd/3uZPD kwB3qDsc83Zv2+rd1XLf8LNKY5G0eSd5+w2MFonquKYYypPhvqUO0rQlMu9+KJ51zywo EABGVGdPCTTEeSTh6UoY7qAs8REQyIvsAcbg6hrwpcjtpDBRKDuYNh7glNCKR4O5N9Lj BlTA== 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=tccHDFw8Be0tCiwLFmvqNHBCYLNSpms3aI/0Nu1Lkcw=; b=FkTU0X95MemVy1NlEcxK5OD5dcIpA3SNlrNwaYytuyBU4Du0oxKZnedOSVBICkhNsk k8MbQVtsx1Yjl/ZRLO+yD9cug4XkuXmMozj+eNOqDRCpWBX0Z5lUuiAutzaDTZSOtH2+ vyBP0se20eZu53MGqkWsTKwXknyNc/7jEclKWxhs0siEUZLCpGeFPregeRUmZEcXqVZ/ V08e7XFGYj6M/kZSa6iXFtC96K0CgJDdpbdFluPC4A8qjPyVqhNRPSxfq3+I6YXn/GPx IxvQCiXs4uhOQOqp3tcgyVNFb2PucD2fT8R9usvCC1MB23pgQ3+lOJf24llROzyBjVp3 4F4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=biWiIy6c; 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 k11si804147otp.176.2020.02.12.23.45.38; Wed, 12 Feb 2020 23:45:50 -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=@rasmusvillemoes.dk header.s=google header.b=biWiIy6c; 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 S1729874AbgBMHpd (ORCPT + 99 others); Thu, 13 Feb 2020 02:45:33 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:38613 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729706AbgBMHpd (ORCPT ); Thu, 13 Feb 2020 02:45:33 -0500 Received: by mail-lf1-f66.google.com with SMTP id r14so3540086lfm.5 for ; Wed, 12 Feb 2020 23:45:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=tccHDFw8Be0tCiwLFmvqNHBCYLNSpms3aI/0Nu1Lkcw=; b=biWiIy6cSpYBYseYC5rG9zg0yZrhQDMcxudJjex+4XKfDJs5X9uRsoByIs3ZPg2On5 jo9rIt6nZQenqD3JNRPCsh+HcCyg6TQGtIvpn6dorob+z2JtRRyIsV08SbF1Ftkt+eMX +sSnpaCuqr43G996HOyFc+XyiKQV+fRGDUvsQ= 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=tccHDFw8Be0tCiwLFmvqNHBCYLNSpms3aI/0Nu1Lkcw=; b=aK+9hZVJ/jZ3AtaQoFM+VsQ9idI+IAnND46fNp6CGN9X6dvESmD7BwONDkkY6uzgYI GGuDbHvdvWRhbs2Gj30ATf/UAl8buznB7rz5tmkWtJivcihk5Vkp+nWglV3H64THiAV8 XtDOIfCDrrSnuU8ndoyOO8EPynQYnryzRg9gD0Ds/xcquftBQpvbbc6jB2isX5tw1au3 L8+qxfFlqb0nV6Q57DdIumIxEC8R9xJKbkdEbAXrqydzy7SQZXWRK591weOw5urMWsXB iIC3vOyBdHx9qacILvVHz8yIcbtQyIAoOL0FQBtlh3/tcp8NYaZhe2EfFh/MMFVMTh4B fteg== X-Gm-Message-State: APjAAAUDOxM0rrLRbKG8MAyE7bAYy5NRiYWABKnIHj2dUDedWlMwwNUN 79PQHrHJd5j2101fc9MlXQ3VAWreVb9d4FPB X-Received: by 2002:ac2:5391:: with SMTP id g17mr6979327lfh.93.1581579930294; Wed, 12 Feb 2020 23:45:30 -0800 (PST) Received: from [172.16.11.50] ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id h7sm745141lfj.29.2020.02.12.23.45.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Feb 2020 23:45:29 -0800 (PST) Subject: Re: [Regression 5.6-rc1][Bisected b6231ea2b3c6] Powerpc 8xx doesn't boot anymore To: Christophe Leroy , Li Yang , Qiang Zhao , Greg Kroah-Hartman Cc: "linuxppc-dev@lists.ozlabs.org" , Scott Wood , linux-arm-kernel@lists.infradead.org, LKML References: <0d45fa64-51ee-0052-cb34-58c770c5b3ce@c-s.fr> From: Rasmus Villemoes Message-ID: Date: Thu, 13 Feb 2020 08:45:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <0d45fa64-51ee-0052-cb34-58c770c5b3ce@c-s.fr> 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/02/2020 15.24, Christophe Leroy wrote: > Hi Rasmus, > > Kernel 5.6-rc1 silently fails on boot. > > I bisected the problem to commit b6231ea2b3c6 ("soc: fsl: qe: drop > broken lazy call of cpm_muram_init()") > > I get a bad_page_fault() for an access at address 8 in > cpm_muram_alloc_common(), called from cpm_uart_console_setup() via > cpm_uart_allocbuf() Sorry about that. But I'm afraid I don't see what I could have done differently - the patch series, including b6231ea2b3c6, has been in -next since 20191210, both you and ppc-dev were cc'ed on the entire series (last revision sent November 28). And I've been dogfooding the patches on both arm- and ppc-derived boards ever since (but obviously only for a few cpus). > Reverting the guilty commit on top of 5.6-rc1 is not trivial. > > In your commit text you explain that cpm_muram_init() is called via > subsys_initcall. But console init is done before that, so it cannot work. No, but neither did the code I removed seem to work - how does doing spin_lock_init on a held spinlock, and then unlocking it, work? Is everything-spinlock always a no-op in your configuration? And even so, I'd think a GFP_KERNEL allocation under spin_lock_irqsave() would trigger some splat somewhere? Please note I'm not claiming my patch is not at fault, it clearly is, I just want to try to understand how I could have been wrong about the "nobody can have been relying on it" part. > Do you have a fix for that ? Not right now, but I'll have a look. It's true that the patch probably doesn't revert cleanly, but it shouldn't be hard to add back those few lines in the appropriate spot, with a big fat comment that this does something very fishy (at least as a temporary measure if we don't find a proper solution soonish). Rasmus