Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1740625ybg; Sat, 19 Oct 2019 01:29:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqziEf6Yj8KjooaE4FoS0ZyYa7Q/lmA4qX3WsNkrErjkZYpTlkILcVd3i0cHW3ECfHEy5TU+ X-Received: by 2002:a17:906:7257:: with SMTP id n23mr12818681ejk.132.1571473773914; Sat, 19 Oct 2019 01:29:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571473773; cv=none; d=google.com; s=arc-20160816; b=GUfZ+f2GdgYnqQyOtW9I524Ba9QFZaImp3HIY96atdhe1jIseNW183akQAW+5CRuTO T+9WyWufi7NlLqjRU+X7fsMRn02H3Kux2wjIMVkl5lik07dTF9bwVyStjBEhg6LKb+xJ RxUf8MUzKJM77vlyyP4JfKsUS4fPVYOaJi1rNELT7dJ9abxDkq2W1vEdrXCu4Roi9iJ2 3seTg6l/+EYYCczPdrlSAkyAIRWUUiPGyhCy3PIgbyZkTXnr21rQzQ/ERLppQaoUj/Vt YURBM9HnzSAERI+92++GyalEuF/RuQ49Fm//FSc2xREqr+nR7HFJmcjzV1lJSTSTU4Lu 4b8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=hFzoYmplkki9kyOBFxHB/h7HTLnl6ZxTVUTZz24IbTM=; b=hI+653sEfWDJwV4lZXwBwNCPMQSCX1CZ3+rKpE3fWvLoPIzIOAaLYqE2NWMJFyMtln eKJL9qn9boedr01ydAllnwCmkN9yJOUcwZKtup1uQryQKqCorQG9/u9xtzmYu618SR+8 PJAzRkse1AdFngCQGnf2rjGsebpPLCltgzc/FE543ebAGbVY0X3smu7YL8tMd8GETQTB gtnzfyLWPkVWUXw/IuBAGQ4Ut2o4lk2WEOjP8l1A32FXGX3qWtAyrYFaOepBQ2FyVI48 maRlKQNhvKjbWDfAKebFLoVBoUmjpnaaSZMWhKC1l2P0bd/Fy9RfMbDcZ0u40dOH/0/A 9nHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Mv2Cc5fh; 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 v53si5730735edc.378.2019.10.19.01.29.11; Sat, 19 Oct 2019 01:29:33 -0700 (PDT) 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=Mv2Cc5fh; 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 S2633684AbfJROE0 (ORCPT + 99 others); Fri, 18 Oct 2019 10:04:26 -0400 Received: from mail-il1-f194.google.com ([209.85.166.194]:41061 "EHLO mail-il1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393962AbfJROE0 (ORCPT ); Fri, 18 Oct 2019 10:04:26 -0400 Received: by mail-il1-f194.google.com with SMTP id z10so5627475ilo.8; Fri, 18 Oct 2019 07:04:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hFzoYmplkki9kyOBFxHB/h7HTLnl6ZxTVUTZz24IbTM=; b=Mv2Cc5fhH95jd20n/Sf2opUMvxeC4GuDidaIvU95LAnx2bjFB31zzog/P6oqWNI58d XM4kMQNx9ix/JvgLSWiV7rzZz237lTyUC6xWCtOCj91cdMKPCsv6byLDvUndFWxaGk0L HaFovSd7qTmKH50MXUduQUJKddS1QIt0tOelQnPWH60Wn/uylOnx7KRn78t7S3kM9aK7 nsz2w2pVnCnOPthzSr12A/S8UYEgfISBV/Ngbi5zNtoleFlCH6MWRuOKtu7jbM4ue7kk OiblLeg1doD4dboEnAuQMI+pSP1pjHIH7bya5MdqmBmJVTXcYLqH7s0TZljYFeuCIxlI cWgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hFzoYmplkki9kyOBFxHB/h7HTLnl6ZxTVUTZz24IbTM=; b=CiTziZS13yHPp1Vw3KltkoLN/iZHWxndnkFMvY7SFJIL3614kuZ6iIx3fmMBDmm962 xAOLdStq7ww1nYmEOGqS3eafZUv9NS4EuL7b//VkmpI9GAz7gL4K7UVDQaDBSzmjVcNI 5g5qxYk0Q4M50A92McGb/RPbSC0wdxCFiE7YYX9ncl1nMqn6k85E+7FRmNXJuZ0KSLJI XC9xG3gb3c5xWCXu/E0pEJtFS4uPEsDR1NEdcZSJw0HIzyjmBDahuVN/HC8ecrF7lSiJ 6hA+QLY9OyxG0l2H+jLfwpPNi2U3S+iNeKQO1UUaoF3OlwiIij6VgQeXsMY7C78dfnXP 0b9g== X-Gm-Message-State: APjAAAV7mG4AfKDWR0BziJ+ZHRKOigJx0EaOjKztnWOnkNLCSLQWCX4j VyYS90qL6O+iD9PkG+uBgi9OvNieDtXgBz9wildR0ZRD X-Received: by 2002:a92:c80b:: with SMTP id v11mr10713556iln.6.1571407464959; Fri, 18 Oct 2019 07:04:24 -0700 (PDT) MIME-Version: 1.0 References: <20191007131649.1768-1-linux.amoon@gmail.com> <20191007131649.1768-6-linux.amoon@gmail.com> <7hsgo4cgeg.fsf@baylibre.com> <1jwode9lba.fsf@starbuckisacylon.baylibre.com> In-Reply-To: <1jwode9lba.fsf@starbuckisacylon.baylibre.com> From: Anand Moon Date: Fri, 18 Oct 2019 19:34:14 +0530 Message-ID: Subject: Re: [RFCv1 5/5] arm64/ARM: configs: Change CONFIG_PWM_MESON from m to y To: Jerome Brunet Cc: Martin Blumenstingl , Kevin Hilman , Neil Armstrong , devicetree , linux-arm-kernel , linux-amlogic@lists.infradead.org, Linux Kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jerome / Neil / Martin, On Wed, 9 Oct 2019 at 17:34, Jerome Brunet wrote: > > > On Wed 09 Oct 2019 at 10:48, Anand Moon wrote: > > > > Kernel command line: console=ttyAML0,115200n8 > > root=PARTUUID=45d7d61e-01 rw rootwait > > earlyprintk=serial,ttyAML0,115200 initcall_debug printk.time=y > > > > [0] https://pastebin.com/eBgJrSKe > > > >> you can also try the command line parameter "clk_ignore_unused" (it's > >> just a gut feeling: maybe a "critical" clock is being disabled because > >> it's not wired up correctly). > >> > > > > It look like some clk issue after I added the *clk_ignore_unused* to > > kernel command line > > it booted further to login prompt and cpufreq DVFS seem to be loaded. > > So I could conclude this is clk issue.below is the boot log > > > > Kernel command line: console=ttyAML0,115200n8 > > root=PARTUUID=45d7d61e-01 rw rootwait > > earlyprintk=serial,ttyAML0,115200 initcall_debug printk.time=y > > clk_ignore_unused > > > > [1] https://pastebin.com/Nsk0wZQJ > > > > Next step it to try narrow down the clock causing the issue. > Remove clk_ignore_unused from the command line and add CLK_INGORE_UNUSED > to the flag of some clocks your clock controller (g12a I think) until > > The peripheral clock gates already have this flag (something we should > fix someday) so don't bother looking there. > > Most likely the source of the pwm is getting disabled between the > late_init call and the probe of the PWM module. Since the pwm is already > active (w/o a driver), gating the clock source shuts dowm the power to > the cores. > > Looking a the possible inputs in pwm driver, I'd bet on fdiv4. > I had give this above steps a try but with little success. I am still looking into this much close. Well I am not the expert in clk or bus configuration. but after looking into the datasheet of for clk configuration I found some bus are not configured correctly. As per Amlogic's kernel S922X (Hardkernel) below link share the bus controller. [0] https://github.com/hardkernel/linux/blob/odroidn2-4.9.y/arch/arm64/boot/dts/amlogic/mesong12b.dtsi#L295-L315 looking in to current dts changes it looks bit wrong to me. *As per 6.1 Memory Map* apb_efuse: bus@30000 --> apb_efuse: bus@ff630000 periphs: bus@34400 --> periphs: bus@ff634400 dmc: bus@38000 --> dmc: bus@ff638000 hiu: bus@3c000 --> hiu: bus@ff63c0000 Also the order of these is not correct. Down the line in the datasheet some of the interrupt GIC bit are not mapped correctly for example. *As per 6.9.2 Interrupt Control Source* 223 SD_EMMC_C 222 SD_EMMC_B 221 SD_EMMC_A and so on. Please share your thought if these changes are valid. Best Regards -Anand