Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp354981ybv; Thu, 13 Feb 2020 01:38:20 -0800 (PST) X-Google-Smtp-Source: APXvYqxU/rdXe1Ei5TTZzZmS0fwH5yRtnKRgqAEoJPVpSDyVgVlASh86Da6zTWADI0iP1vD7GVhF X-Received: by 2002:aca:2407:: with SMTP id n7mr2343316oic.14.1581586700817; Thu, 13 Feb 2020 01:38:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581586700; cv=none; d=google.com; s=arc-20160816; b=VrqfsPRngy+3n0UysihdGTk+rP1kKniqUjw20Y9eDT+/4jJ0x2wlbY0y/cNlPIrIR3 pwxq+u34Cidbcsc5m0MXweeYqll5bwromFU8X2KGgicBzlh+r7zKtFPWJmNYicut+PRg GBX/zBdeQIU4afTUoA6zmXKGu4NrwxTWBss+2jpUf/fETlC/5aSdElDYpufvWTjRoo70 Dvw+SUYZBZtbL7KSB+2iEbQuVkG/AcUJLOlKvBXLuXHjZtZsAo/A9C2b/27zfimv6k3E s9Fn+2EePiNp8iuVRJyLX6CyywmcIaJ/J0V/okEoXYOIAXrkBeD4UGWDb1QdVz1I6nLa GKiw== 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=abAWSR2K9H6Y7+jBghj7Y02LAAu4P/DFtVh1G9MzXxs=; b=SrD11URhjdFdoAPHJDu2KyhUmYfUAj9aTy1WHOUBI+LO7/MvXZmDg3eWaGCXphmiuX hJZJFOipEt3Fj4JTTF+bLAW8QH82Q5I5RcFPPUWxQubzzXtGv4x0ATrd856lucGnBYvx 81rj0QI3RPO9TGi/jJP6DzP2kGdl7XWYG/VRcN/+yuFYUkAWylVW7/7daNfBoOpGoVjT CKv//LxHG6H6jD05m3ZDyWLU7MUo6ZulJmxcs8rec/QGAI4qFihmPnQ16eMS1BNbP8SI x/AGXwU6ILGAj0aQUQBceN6pkNB1wRdmj7EG0eJTKS3ILuyiXltYzp7y+M99upGArNxQ p7lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=QijSSUZm; 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 b10si813977oiy.254.2020.02.13.01.38.08; Thu, 13 Feb 2020 01:38:20 -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=QijSSUZm; 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 S1729661AbgBMJhu (ORCPT + 99 others); Thu, 13 Feb 2020 04:37:50 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:37135 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726232AbgBMJht (ORCPT ); Thu, 13 Feb 2020 04:37:49 -0500 Received: by mail-lj1-f196.google.com with SMTP id v17so5799107ljg.4 for ; Thu, 13 Feb 2020 01:37:47 -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=abAWSR2K9H6Y7+jBghj7Y02LAAu4P/DFtVh1G9MzXxs=; b=QijSSUZmAvV9r/UmfLRddFu/lj5MAcoPgRZbVa3v9j5jiiATXWzyL/BvURW3lz3KW7 iMjlFqEHYvawzlPHLR/6TBOqcOgIPA8kR1X2nWq5kW9cvm8JEMkz8Q9hVcUSVr23HHE4 ZwjkFtmmfIky8bGKUhfgRMyi8KT/hNbFyFmrU= 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=abAWSR2K9H6Y7+jBghj7Y02LAAu4P/DFtVh1G9MzXxs=; b=pb7f7lJ2iytifF23NY5hGI+8T5eJ3I2GEy6T+Z60UtzfzezeM5oVCTaem10NI2Icgi Xw9TVPW7XNQDfIzdPKGA4pPYMToyZNap0uIMfzUwK1KjbQ4ZPRwjz+0HbKWoeM+eM4ok kFW0lg+NPUnbbY45IxFM73CqA+pjBY8IQfXhfli00ZPbF9UuslILvxxyAYl+9Uqx1qa0 3IRH7k+2QDgu0lVBgJ0xyEPvjw5Aq2MWgswUlZHn8weZlgcGAF9YWb3YlaCI7uOFB+ex P6viD4DMv4qQQGUrFu6aUDKJPgjfmof6FwOjxu89lULLJjtL0MTLJ/QuyRUGqzUKnunu 0GKQ== X-Gm-Message-State: APjAAAUZWio81vK88D2uApxfwRgBUK2iLpSuYmwNKvavGJWO7sjMWgDt osQ+ea03S7i1NSQKwPzqb3BJHg== X-Received: by 2002:a05:651c:232:: with SMTP id z18mr11013557ljn.85.1581586666416; Thu, 13 Feb 2020 01:37:46 -0800 (PST) Received: from [172.16.11.50] ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id r9sm1151939lfc.72.2020.02.13.01.37.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Feb 2020 01:37:45 -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: Scott Wood , "linuxppc-dev@lists.ozlabs.org" , LKML , linux-arm-kernel@lists.infradead.org References: <0d45fa64-51ee-0052-cb34-58c770c5b3ce@c-s.fr> From: Rasmus Villemoes Message-ID: <59487f8a-fd2e-703d-d954-d263f756a3a0@rasmusvillemoes.dk> Date: Thu, 13 Feb 2020 10:37:44 +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: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/02/2020 15.50, Christophe Leroy wrote: > > > On 02/12/2020 02:24 PM, Christophe Leroy wrote: >> 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. >> >> Do you have a fix for that ? >> > > The following patch allows powerpc 8xx to boot again. Don't know if > that's the good place and way to do the fix though. > > --- > diff --git a/drivers/tty/serial/cpm_uart/cpm_uart_core.c > b/drivers/tty/serial/cpm_uart/cpm_uart_core.c > index 4cabded8390b..341d682ec6eb 100644 > --- a/drivers/tty/serial/cpm_uart/cpm_uart_core.c > +++ b/drivers/tty/serial/cpm_uart/cpm_uart_core.c > @@ -1351,6 +1351,7 @@ static int __init cpm_uart_console_setup(struct > console *co, char *options) >          clrbits32(&pinfo->sccp->scc_gsmrl, SCC_GSMRL_ENR | SCC_GSMRL_ENT); >      } > > +    cpm_muram_init(); >      ret = cpm_uart_allocbuf(pinfo, 1); > >      if (ret) Hmm, that seems to be a somewhat random place, making it hard to see that it is indeed early enough. Would it work to put it inside the console_initcall that registers the cpm console? I.e. static int __init cpm_uart_console_init(void) { + cpm_muram_init(); register_console(&cpm_scc_uart_console); return 0; } console_initcall(cpm_uart_console_init); Rasmus