Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2531741pxb; Fri, 17 Sep 2021 11:58:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQNHdLzvTjwX9ml2lQYp5RiqexIkJLS/dpIfkazc4Z8KYOTOt9cbtv35Sn3GasUzQ3cMtN X-Received: by 2002:a17:906:35d8:: with SMTP id p24mr13794539ejb.292.1631905085968; Fri, 17 Sep 2021 11:58:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631905085; cv=none; d=google.com; s=arc-20160816; b=JMVrrPU56Un7I4GWdmKtzof84sFIGZR5fblqWYj/ZiQOy53k76UJKVhkSs+q+yFuVe jIHFIYrP3/bD6bJEQb240FH1nFTpSopPMuJdM8ZY0qQKcay9SdRKqCkXsew3+Ngokzhy 27IAoaNQLXm/fZYsEbAn7vZEBqArPiicSYBaWa4dhBPoq3hCOIoY20zil/NH+UGSHDYO MNew7UoJdZ+OgRTr/RFbgmUzX9YiNEHuYUPN9Ohn0BcGok0PxPAPHnkpCQI7YafCQumr HAnlHyc1D6tltZhEvjcYXLuoR6+XVmoaBt8tLMRCih7kfQFMBuhOI05dqQq7ONF9MH5N z55Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=4U4C/Tn4UFgMxRNC4wDOn5lKWValhNN21xcvmm57g7w=; b=hWP6VVg96vyvKV+smJhAllSLLF0FWu+iSDsq0VLWQgykNIF3+3ConNT41FWwTbdgfu fH/t4tiVE7jk6tQD9+gS3UuX6OSV/SPjeOP6fcwVCVdDzMjvJGKj0lg+oaanqwN7OuSr de1jBGnie6d9BijfwZiDxyRaH690VzvwIC2yaAZ60CbrD9BUTqys1yBIYzj33TYEcxlN DE/j6cycd4fSyEozQt8tGrfA1oLa4L0dM8ZWNT14sz5K16BikH3nmWqFwzjRxzOfDCJm mLAqy5kNyEa9H0bplq7a6Zsmf6MmT386kLDZhDWWZtr7ue+bM8A/uHDzOY3YwoqLx8sB xc3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 23si6612952ejr.127.2021.09.17.11.57.41; Fri, 17 Sep 2021 11:58:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343815AbhIQKsn (ORCPT + 99 others); Fri, 17 Sep 2021 06:48:43 -0400 Received: from muru.com ([72.249.23.125]:33900 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240611AbhIQKsk (ORCPT ); Fri, 17 Sep 2021 06:48:40 -0400 Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id C7ED680B3; Fri, 17 Sep 2021 10:47:44 +0000 (UTC) Date: Fri, 17 Sep 2021 13:47:16 +0300 From: Tony Lindgren To: "Vaittinen, Matti" Cc: "linux-omap@vger.kernel.org" , Grygorii Strashko , Suman Anna , Paul Barker , Peter Ujfalusi , =?utf-8?Q?Beno=C3=AEt?= Cousson , "linux-kernel@vger.kernel.org" Subject: Re: beaglebone black boot failure Linux v5.15.rc1 Message-ID: References: <120a0ca4-28c7-5a7b-f1ab-2015c8817bda@fi.rohmeurope.com> <0679a5bb-88d1-077d-6107-d5f88ef60dbf@fi.rohmeurope.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0679a5bb-88d1-077d-6107-d5f88ef60dbf@fi.rohmeurope.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, * Vaittinen, Matti [210917 10:29]: > Oh.. Sorry! I don't know where I picked Tom from... My bad! No worries :) > > For me, adding any kind of delay fixed the issue. Also adding some printk > > statements fixed it for me. > > > >> Any suggestions what to check next? > > > > Maybe try the attached patch? If it helps, just try with the with the > > ti,sysc-delay-us = <2> added as few modules need that after enable. > > > > It's also possible there is an issue with some other device that is now > > getting enabled other than pruss. The last XXX printk output should show > > the last device being probed. > > > > Looks like you need to also enable CONFIG_SERIAL_EARLYCON=y, and pass > > console=ttyS0,115200 debug earlycon in the kernel command line. > > Ah. Thanks again. I indeed lacked the "debug earlycon" parameters. Now > we're more likely to see what went wrong :) I pasted the serial log form > failing boot with v5.15-rc1 which has both the patch you linked me above > and the patch you suggested me to test in previous email. OK thanks. > [ 2.830347] ti-sysc 4a326000.target-module: XXX sysc_probe > [ 2.836198] 8<--- cut here --- > [ 2.839339] Unhandled fault: external abort on non-linefetch (0x1008) > at 0xe0266000 Yup, this is the pruss target-module@300000 that has the first reg at 4a326000. The oops look very similar to what I was seeing with my bbb. The external abort means the pruss module is not properly enabled when accessing the registers. Not sure what might be different here, presumably all am335x hardware has the pruss. Maybe try with a larger ti,sysc-delay-us value? I doubt that helps though as 2 is the most we've seen so far for the delay needed.. Maybe the issue is in omap_reset_deassert(). You could try adding some printk to omap_reset_deassert() and see if the issue happens right away or after deasserting the reset. If it's after deasserting the reset, you could adding delay to the end of omap_reset_deassert() and see if that helps. Regards, Tony