From: Neil Armstrong <narmstrong@baylibre.com> To: Anand Moon <linux.amoon@gmail.com>, Jerome Brunet <jbrunet@baylibre.com> Cc: devicetree <devicetree@vger.kernel.org>, Martin Blumenstingl <martin.blumenstingl@googlemail.com>, Kevin Hilman <khilman@baylibre.com>, Linux Kernel <linux-kernel@vger.kernel.org>, linux-amlogic@lists.infradead.org, linux-arm-kernel <linux-arm-kernel@lists.infradead.org> Subject: Re: [RFCv1 5/5] arm64/ARM: configs: Change CONFIG_PWM_MESON from m to y Date: Fri, 18 Oct 2019 16:13:52 +0200 [thread overview] Message-ID: <1496ed3e-e91b-3f09-d359-f36a8944e6b0@baylibre.com> (raw) In-Reply-To: <CANAwSgSoK4X3_QbO3YpZRXNTpPJ+zVeid=w93f14Eyk8Dd32EQ@mail.gmail.com> On 18/10/2019 16:04, Anand Moon wrote: > Hi Jerome / Neil / Martin, > > On Wed, 9 Oct 2019 at 17:34, Jerome Brunet <jbrunet@baylibre.com> wrote: >> >> >> On Wed 09 Oct 2019 at 10:48, Anand Moon <linux.amoon@gmail.com> 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 If these was wrong, the drivers simply won't work, at all > > Also the order of these is not correct. The order is correct, actually > > 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 There is an offset between the doc and the actual GIC_SPI line, they start the datasheet numbers from the GIC_PPI numbers (+32). Neil > > and so on. > Please share your thought if these changes are valid. > > Best Regards > -Anand > _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic
next prev parent reply other threads:[~2019-10-18 14:14 UTC|newest] Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-10-07 13:16 [RFCv1 0/5] Odroid N2 failes to boot using upstream kernel & u-boot Anand Moon 2019-10-07 13:16 ` [RFCv1 1/5] arm64: dts: meson: Add missing 5V_EN gpio signal for VCC5V regulator Anand Moon 2019-10-07 14:19 ` Neil Armstrong 2019-10-07 15:28 ` Anand Moon 2019-10-07 13:16 ` [RFCv1 2/5] arm64: dts: meson: Add missing pwm control gpio signal for pwm-regulator Anand Moon 2019-10-07 14:20 ` Neil Armstrong 2019-10-07 15:30 ` Anand Moon 2019-10-07 13:16 ` [RFCv1 3/5] arm64: dts: meson: Add missing regulator linked to VDDAO_3V3 regulator to FLASH_VDD Anand Moon 2019-10-07 14:20 ` Neil Armstrong 2019-10-07 15:53 ` Anand Moon 2019-10-07 13:16 ` [RFCv1 4/5] arm64: dts: meson: Add missing regulator linked to VCCV5 regulator to VDDIO_C/TF_IO Anand Moon 2019-10-07 14:21 ` Neil Armstrong 2019-10-07 15:54 ` Anand Moon 2019-10-07 13:16 ` [RFCv1 5/5] arm64/ARM: configs: Change CONFIG_PWM_MESON from m to y Anand Moon 2019-10-07 14:25 ` Neil Armstrong 2019-10-07 15:52 ` Anand Moon 2019-10-07 20:10 ` Martin Blumenstingl 2019-10-07 22:57 ` Kevin Hilman 2019-10-08 14:38 ` Anand Moon 2019-10-08 17:40 ` Martin Blumenstingl 2019-10-09 8:48 ` Anand Moon 2019-10-09 12:04 ` Jerome Brunet 2019-10-18 14:04 ` Anand Moon 2019-10-18 14:13 ` Neil Armstrong [this message] 2019-10-18 15:21 ` Anand Moon 2019-10-18 18:10 ` Martin Blumenstingl 2019-10-21 14:11 ` Anand Moon 2019-10-21 14:25 ` Neil Armstrong 2019-10-21 15:41 ` Anand Moon 2019-10-26 18:56 ` Anand Moon 2019-10-24 20:20 ` Martin Blumenstingl 2019-10-09 17:05 ` Martin Blumenstingl 2019-10-08 7:19 ` Anand Moon
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1496ed3e-e91b-3f09-d359-f36a8944e6b0@baylibre.com \ --to=narmstrong@baylibre.com \ --cc=devicetree@vger.kernel.org \ --cc=jbrunet@baylibre.com \ --cc=khilman@baylibre.com \ --cc=linux-amlogic@lists.infradead.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux.amoon@gmail.com \ --cc=martin.blumenstingl@googlemail.com \ --subject='Re: [RFCv1 5/5] arm64/ARM: configs: Change CONFIG_PWM_MESON from m to y' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).