Received: by 10.223.185.116 with SMTP id b49csp2893187wrg; Mon, 12 Feb 2018 17:27:55 -0800 (PST) X-Google-Smtp-Source: AH8x226WiI4US+Vm6C7fGHjfqmU+1RMT/vi/Cyrwbn7FxZ3Ow6NYQwHr1T8dVNMRBu2FqSlBxDMy X-Received: by 10.99.117.83 with SMTP id f19mr8971065pgn.318.1518485275077; Mon, 12 Feb 2018 17:27:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518485275; cv=none; d=google.com; s=arc-20160816; b=NraY0LaIIetr5a2YW/HzO96lyGkkMiRqwetXFAB7BqkRe4SZ5LOVFlBcXUTmtu7wzR ZdmazbXDeZKLYNk1jfEfgWMAFtxaR15mTDtZJ2v69i+wR8JUKiMd7iXOPlX0COyUMgEp plXqctytpEXs3dXs/imMMX2udKsaJu3y6l0V1kk2ocK5WNUM8QNe5FBCCuomLfwE3cyL YxKOCT0zLlIMKln+CFE/qcc3exqiQ172k0gcpQcQ5ZNLSDChTgLifdeGZdRaVcuLkSgL sbpfRPYvyVoe0yy+tRE+QZFfZItBE77d6bKHQTDy6skqStcMDPnQY1iYRK9OU2pdmltG QogQ== 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:references:cc:to:from:subject:dkim-signature :arc-authentication-results; bh=P9c6IEmEXTJKoJlcg2uIe4Se2nUHYkpAG9DPaYXukNM=; b=rnKzBqwQwpEb7tU6nmjf2JRnrZaEiqic5RcnsLn7o/xzPU/fOMv5TDI9oOGkVwCIZj ITp5Bmf7h3qmZeAsqJ8wYLTwkMSxtr6tykwENyb9+ysH1CM5o9KvwePLWHJeBETuY5B6 KDGFTKc7CBGui00JNLtsLO7R/+aIHT/eI68XNE9WO/FGdGmpjE8wHjNqDQxAhNMx22+8 6CiVssbSS4oqCr+eZG2ZgdhE3pSQFEzMVybpooWOf2AJfIK0X9qb9kJS7LzL3JDfoKzd jVHpLSWoceQSytR8kg2FgSEonhO3lxDARRezmC6EODG27aKQXre0Lo9v85IPKMHpBVaA dRmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FQ5RALvT; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1si1674156pfg.288.2018.02.12.17.27.40; Mon, 12 Feb 2018 17:27:55 -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=@gmail.com header.s=20161025 header.b=FQ5RALvT; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933196AbeBMB0H (ORCPT + 99 others); Mon, 12 Feb 2018 20:26:07 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:37702 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933047AbeBMB0F (ORCPT ); Mon, 12 Feb 2018 20:26:05 -0500 Received: by mail-wm0-f67.google.com with SMTP id v71so13222397wmv.2; Mon, 12 Feb 2018 17:26:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=P9c6IEmEXTJKoJlcg2uIe4Se2nUHYkpAG9DPaYXukNM=; b=FQ5RALvTlhUQZYzC1sa/kfkYtIzNniavU508TnxY2LlLrUPmH188uuUYHc4zAkn6sr PCtdjTAWPah845tKicO1luB/g4YJih4ItGV3tfTfePv3OGdQSd3OoAolNIkhA4L7gOVE Z5LbD22N15/VACr/TpVlqC06umjA9G9V/asO1M6KyV3hzXJ6tDhNWcmB0/iDdaYYVlzB I5bRCdjHhJ4AdfVfYNmSFgI2dZu9ebLQLw2mP9xAX0Ft1qJ49Vko31bYEYNuKniBqStS ZREO/Hj3fSU9pGksXN6feCHQWeSXKH2ZMuogBn7FrzOcQtpq/gMyhubN2mbOccYdUdei v5qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=P9c6IEmEXTJKoJlcg2uIe4Se2nUHYkpAG9DPaYXukNM=; b=fC4aBwxQskPMyFKUhrksIVxCrUkbG/unfW6Kk7/Ez5P+TBnf/mkUazOyhSvv3+wpCe VXyB+l/Mov4kn9e/UvcA30HoGBrXCfqW8Mo1rt89UHzvvznX7r7y+7kmNnZIUyT3/fQr H0SA/lyIDpa6KmY0y3wX1QxkcWiWiZb1LQ3ezPpqAxq6HThemuug+ICvO+/r+p2oKsHh XwvcxE5udSVjYSLVbD2a69kPYp2ucVl/J9nUhj8Gg6IqdSwEXXu7lwS1dQhJf2fArYi8 kMOFuBB6Y+1RPx+HcszwqezPZG6iUenIz8fNuHRJu7pMGYbqVZJxN7CmcBNJTHxbU0BW MyuQ== X-Gm-Message-State: APf1xPCxXUa2cVi16LGMjiqXRpLQzr0ocMafdyRh9N8COTYPcgU0NqCy phyB2fxGf4lb+ZkK5EftVfF3kdBo X-Received: by 10.28.70.196 with SMTP id t187mr261679wma.129.1518485163800; Mon, 12 Feb 2018 17:26:03 -0800 (PST) Received: from [192.168.2.73] (p578F04D2.dip0.t-ipconnect.de. [87.143.4.210]) by smtp.gmail.com with ESMTPSA id h194sm9978674wma.8.2018.02.12.17.26.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Feb 2018 17:26:03 -0800 (PST) Subject: Re: BUG: A31s Not booting anymore From: Philipp Rossak To: linux-sunxi@googlegroups.com, maxime.ripard@free-electrons.com, wens@csie.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org References: Message-ID: Date: Tue, 13 Feb 2018 02:25:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed 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.2018 19:21, Philipp Rossak wrote: > Hey, > > When I try to boot my A31s (Bananapi M2) u-boot is showing only Starting > kernel ... . After enabling the earlyprintk I could capture this log: [1]. > > After reverting those 5 commits from Chen-Yu I was able to boot again: > > > clk: sunxi-ng: Support fixed post-dividers on NM style clocks > 7d333ef1cc1b8c8951f3a2c41f6406e2295d8be9 > > clk: sunxi-ng: sun8i: a83t: Add /2 fixed post divider to audio PLL > 10e6eb4f2c5b35ae71c9bc0db83d74238719b453 > > clk: sunxi-ng: sun8i: a83t: Use sigma-delta modulation for audio PLL > e952ca3c6b2ffdfbf9618e4bd3e9aad1ff3f5eb4 > > clk: sunxi-ng: Support fixed post-dividers on MP style clocks > 946797aa3f08e2f6f5992f3ec2be44791e9b9260 > > clk: sunxi-ng: sun50i: a64: Add 2x fixed post-divider to MMC module clocks > 83fe3be4d1974f5f50c5e2039a1609f4960e8579 > > > I allready tried to fix it with making them save against zero: > > if (cmp->common.features & CCU_FEATURE_FIXED_POSTDIV && \ >         cmp->fixed_post_div with) >                rate *= cmp->fixed_post_div; > > But that didn't help. > > Any ideas? > > Regards, > Philipp > > [1]: https://pastebin.com/64Fzzqvg It took me some time, but I have now a few more infos: Right now the code breaks at this point here [1], with this clock [2]. If we have a look now at the clock config [3], we see here a table which is an u8 array and also a fixed_predivs struct. If we have a look at the function call where it breaks [4], shouldn't the table be a clk_div_table struct instead of an u8? The a31s is the only board where we have this combination of a fixed_predivs and a table. Philipp Related Clock source register A31s: 0000: OSC24MHz/750=32KHz 0001: LOSC 0010: OSC24MHz 0011: / 0100: / 0101: / 0110: / 0111: / 1000: / 1001: / 1010: / 1011: AXICLK/4 1100: / 1101: AHB1CLK/4 1110: / 1111: / [1]: http://lxr.bootlin.com/linux/v4.16-rc1/source/drivers/clk/clk-divider.c#L89 [2]: http://lxr.bootlin.com/linux/v4.16-rc1/source/drivers/clk/sunxi-ng/ccu-sun6i-a31.c#L1137 [3]: http://lxr.bootlin.com/linux/v4.16-rc1/source/drivers/clk/sunxi-ng/ccu-sun6i-a31.c#L749 [4]: http://lxr.bootlin.com/linux/v4.16-rc1/source/drivers/clk/clk-divider.c#L93