From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756001AbeAHJPh (ORCPT + 1 other); Mon, 8 Jan 2018 04:15:37 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:43797 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755247AbeAHJPe (ORCPT ); Mon, 8 Jan 2018 04:15:34 -0500 X-Google-Smtp-Source: ACJfBosl78SLNqB9NrWlEaj+FG2WluK0mf9UYIgOaJJyoTp1nSoV310WSDKAuAi0hEnUFFhA8yM28A== MIME-Version: 1.0 In-Reply-To: References: <4357a69da97f46a324eec4c766f4bc9d9e7733ff.1490545262.git-series.plaes@plaes.org> <20171212172635.2utwz3koyo5iwglt@plaes.org> <20171213170933.qyfn3hgnrvjpmod7@plaes.org> <20171213171358.oocp24c2mdon45o5@plaes.org> From: Chen-Yu Tsai Date: Mon, 8 Jan 2018 17:15:09 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linux-sunxi] [PATCH v2 3/6] ARM: sun4i: Convert to CCU To: Kevin Hilman Cc: Priit Laes , Maxime Ripard , lkml , linux-arm-kernel , devicetree , linux-clk , linux-sunxi , Icenowy Zheng , Russell King , Mark Rutland , Rob Herring , Stephen Boyd , Michael Turquette , Philipp Zabel , Olof Johansson Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Sat, Jan 6, 2018 at 12:10 AM, Kevin Hilman wrote: > On Wed, Dec 13, 2017 at 11:46 AM, Kevin Hilman wrote: >> On Wed, Dec 13, 2017 at 9:13 AM, Priit Laes wrote: >>> On Wed, Dec 13, 2017 at 05:09:33PM +0000, Priit Laes wrote: >>>> On Tue, Dec 12, 2017 at 01:24:52PM -0800, Kevin Hilman wrote: >>>> > On Tue, Dec 12, 2017 at 9:26 AM, Priit Laes wrote: >>>> > > On Mon, Dec 11, 2017 at 02:22:30PM -0800, Kevin Hilman wrote: >>>> > >> On Sun, Mar 26, 2017 at 10:20 AM, Priit Laes wrote: >>>> > >> > Convert sun4i-a10.dtsi to new CCU driver. >>>> > >> > >>>> > >> > Signed-off-by: Priit Laes >>>> > >> >>>> > >> I finally got around to bisecting a mainline boot failure on >>>> > >> sun4i-a10-cubieboard that's been happening for quite a while. Based >>>> > >> on on kernelci.org, it showed up sometime during the v4.15 merge >>>> > >> window[1]. It bisected down to this commit (in mainline as commit >>>> > >> 41193869f2bdb585ce09bfdd16d9482aadd560ad). >>>> > >> >>>> > >> When it fails, there is no output on the serial console, so I don't >>>> > >> know exactly how it's failing, just that it no longer boots. >>>> > > >>>> > > We tried out latest 4.15 with various compilers and it works: >>>> > > - gcc version 7.1.1 20170622 (Red Hat Cross 7.1.1-3) (GCC) - A10 Gemei G9 tablet >>>> > > - gcc 7.2.0-debian - A10 Cubieboard >>>> > >>>> > And you can reproduce the bug with gcc5 or gcc6? >>>> >>>> Tried following commits on Gemei G9 (A10 tablet): >>>> * 4.15.0-rc3-00037-gd39a01eff9af - latest master >>>> * 4.14.0-rc1-00002-g41193869f2bd - the exact commit, causing the issue. >>>> >>>> With the same Linaro toolchain: >>>> (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) >>> >>> And I also tried the same dtb and zImage from kernelci page [1] and it works with >>> that too... >>> >>> https://storage.kernelci.org/mainline/master/v4.15-rc3/arm/sunxi_defconfig/ >> >> Can you share a full boot-log (including all the u-boot output etc.) >> so I can see exactly how the kernel is being loaded? Especially the >> u-boot version? >> >> As $SUBJECT patch seems to be changing clocks around, perhaps this is >> an issue where some u-boot dependency is uncovered, and older versions >> of u-boot don't play well with this change. > > Ping. > > This is still failing in mainline, but passing int stable <= v4.14 Just did a test with clean builds of v4.15-rc7 with sunxi_defconfig and U-boot 2018.01-rc3 with Cubieboard_defconfig. It successfully boots to a prompt. My previous bootloader was U-boot 2017.05 with some local modifications. Here is the full boot log: https://wens.tw/cb-boot-log.txt The boot script is: setenv bootargs console=tty0 console=ttyS0,115200n8 root=/dev/mmcblk0p1 rootwait panic=10 earlycon=uart,mmio32,0x01c28000 consoleblank=0 drm.debug=0x1e load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} boot/zImage load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} boot/${fdtfile} bootz ${kernel_addr_r} - ${fdt_addr_r} Regards ChenYu From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chen-Yu Tsai Subject: Re: [PATCH v2 3/6] ARM: sun4i: Convert to CCU Date: Mon, 8 Jan 2018 17:15:09 +0800 Message-ID: References: <4357a69da97f46a324eec4c766f4bc9d9e7733ff.1490545262.git-series.plaes@plaes.org> <20171212172635.2utwz3koyo5iwglt@plaes.org> <20171213170933.qyfn3hgnrvjpmod7@plaes.org> <20171213171358.oocp24c2mdon45o5@plaes.org> Reply-To: wens-jdAy2FN1RRM@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org In-Reply-To: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Kevin Hilman Cc: Priit Laes , Maxime Ripard , lkml , linux-arm-kernel , devicetree , linux-clk , linux-sunxi , Icenowy Zheng , Russell King , Mark Rutland , Rob Herring , Stephen Boyd , Michael Turquette , Philipp Zabel , Olof Johansson List-Id: devicetree@vger.kernel.org On Sat, Jan 6, 2018 at 12:10 AM, Kevin Hilman wrote: > On Wed, Dec 13, 2017 at 11:46 AM, Kevin Hilman wrote: >> On Wed, Dec 13, 2017 at 9:13 AM, Priit Laes wrote: >>> On Wed, Dec 13, 2017 at 05:09:33PM +0000, Priit Laes wrote: >>>> On Tue, Dec 12, 2017 at 01:24:52PM -0800, Kevin Hilman wrote: >>>> > On Tue, Dec 12, 2017 at 9:26 AM, Priit Laes wrote: >>>> > > On Mon, Dec 11, 2017 at 02:22:30PM -0800, Kevin Hilman wrote: >>>> > >> On Sun, Mar 26, 2017 at 10:20 AM, Priit Laes wrote: >>>> > >> > Convert sun4i-a10.dtsi to new CCU driver. >>>> > >> > >>>> > >> > Signed-off-by: Priit Laes >>>> > >> >>>> > >> I finally got around to bisecting a mainline boot failure on >>>> > >> sun4i-a10-cubieboard that's been happening for quite a while. Based >>>> > >> on on kernelci.org, it showed up sometime during the v4.15 merge >>>> > >> window[1]. It bisected down to this commit (in mainline as commit >>>> > >> 41193869f2bdb585ce09bfdd16d9482aadd560ad). >>>> > >> >>>> > >> When it fails, there is no output on the serial console, so I don't >>>> > >> know exactly how it's failing, just that it no longer boots. >>>> > > >>>> > > We tried out latest 4.15 with various compilers and it works: >>>> > > - gcc version 7.1.1 20170622 (Red Hat Cross 7.1.1-3) (GCC) - A10 Gemei G9 tablet >>>> > > - gcc 7.2.0-debian - A10 Cubieboard >>>> > >>>> > And you can reproduce the bug with gcc5 or gcc6? >>>> >>>> Tried following commits on Gemei G9 (A10 tablet): >>>> * 4.15.0-rc3-00037-gd39a01eff9af - latest master >>>> * 4.14.0-rc1-00002-g41193869f2bd - the exact commit, causing the issue. >>>> >>>> With the same Linaro toolchain: >>>> (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) >>> >>> And I also tried the same dtb and zImage from kernelci page [1] and it works with >>> that too... >>> >>> https://storage.kernelci.org/mainline/master/v4.15-rc3/arm/sunxi_defconfig/ >> >> Can you share a full boot-log (including all the u-boot output etc.) >> so I can see exactly how the kernel is being loaded? Especially the >> u-boot version? >> >> As $SUBJECT patch seems to be changing clocks around, perhaps this is >> an issue where some u-boot dependency is uncovered, and older versions >> of u-boot don't play well with this change. > > Ping. > > This is still failing in mainline, but passing int stable <= v4.14 Just did a test with clean builds of v4.15-rc7 with sunxi_defconfig and U-boot 2018.01-rc3 with Cubieboard_defconfig. It successfully boots to a prompt. My previous bootloader was U-boot 2017.05 with some local modifications. Here is the full boot log: https://wens.tw/cb-boot-log.txt The boot script is: setenv bootargs console=tty0 console=ttyS0,115200n8 root=/dev/mmcblk0p1 rootwait panic=10 earlycon=uart,mmio32,0x01c28000 consoleblank=0 drm.debug=0x1e load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} boot/zImage load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} boot/${fdtfile} bootz ${kernel_addr_r} - ${fdt_addr_r} Regards ChenYu From mboxrd@z Thu Jan 1 00:00:00 1970 From: wens@csie.org (Chen-Yu Tsai) Date: Mon, 8 Jan 2018 17:15:09 +0800 Subject: [linux-sunxi] [PATCH v2 3/6] ARM: sun4i: Convert to CCU In-Reply-To: References: <4357a69da97f46a324eec4c766f4bc9d9e7733ff.1490545262.git-series.plaes@plaes.org> <20171212172635.2utwz3koyo5iwglt@plaes.org> <20171213170933.qyfn3hgnrvjpmod7@plaes.org> <20171213171358.oocp24c2mdon45o5@plaes.org> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Sat, Jan 6, 2018 at 12:10 AM, Kevin Hilman wrote: > On Wed, Dec 13, 2017 at 11:46 AM, Kevin Hilman wrote: >> On Wed, Dec 13, 2017 at 9:13 AM, Priit Laes wrote: >>> On Wed, Dec 13, 2017 at 05:09:33PM +0000, Priit Laes wrote: >>>> On Tue, Dec 12, 2017 at 01:24:52PM -0800, Kevin Hilman wrote: >>>> > On Tue, Dec 12, 2017 at 9:26 AM, Priit Laes wrote: >>>> > > On Mon, Dec 11, 2017 at 02:22:30PM -0800, Kevin Hilman wrote: >>>> > >> On Sun, Mar 26, 2017 at 10:20 AM, Priit Laes wrote: >>>> > >> > Convert sun4i-a10.dtsi to new CCU driver. >>>> > >> > >>>> > >> > Signed-off-by: Priit Laes >>>> > >> >>>> > >> I finally got around to bisecting a mainline boot failure on >>>> > >> sun4i-a10-cubieboard that's been happening for quite a while. Based >>>> > >> on on kernelci.org, it showed up sometime during the v4.15 merge >>>> > >> window[1]. It bisected down to this commit (in mainline as commit >>>> > >> 41193869f2bdb585ce09bfdd16d9482aadd560ad). >>>> > >> >>>> > >> When it fails, there is no output on the serial console, so I don't >>>> > >> know exactly how it's failing, just that it no longer boots. >>>> > > >>>> > > We tried out latest 4.15 with various compilers and it works: >>>> > > - gcc version 7.1.1 20170622 (Red Hat Cross 7.1.1-3) (GCC) - A10 Gemei G9 tablet >>>> > > - gcc 7.2.0-debian - A10 Cubieboard >>>> > >>>> > And you can reproduce the bug with gcc5 or gcc6? >>>> >>>> Tried following commits on Gemei G9 (A10 tablet): >>>> * 4.15.0-rc3-00037-gd39a01eff9af - latest master >>>> * 4.14.0-rc1-00002-g41193869f2bd - the exact commit, causing the issue. >>>> >>>> With the same Linaro toolchain: >>>> (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) >>> >>> And I also tried the same dtb and zImage from kernelci page [1] and it works with >>> that too... >>> >>> https://storage.kernelci.org/mainline/master/v4.15-rc3/arm/sunxi_defconfig/ >> >> Can you share a full boot-log (including all the u-boot output etc.) >> so I can see exactly how the kernel is being loaded? Especially the >> u-boot version? >> >> As $SUBJECT patch seems to be changing clocks around, perhaps this is >> an issue where some u-boot dependency is uncovered, and older versions >> of u-boot don't play well with this change. > > Ping. > > This is still failing in mainline, but passing int stable <= v4.14 Just did a test with clean builds of v4.15-rc7 with sunxi_defconfig and U-boot 2018.01-rc3 with Cubieboard_defconfig. It successfully boots to a prompt. My previous bootloader was U-boot 2017.05 with some local modifications. Here is the full boot log: https://wens.tw/cb-boot-log.txt The boot script is: setenv bootargs console=tty0 console=ttyS0,115200n8 root=/dev/mmcblk0p1 rootwait panic=10 earlycon=uart,mmio32,0x01c28000 consoleblank=0 drm.debug=0x1e load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} boot/zImage load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} boot/${fdtfile} bootz ${kernel_addr_r} - ${fdt_addr_r} Regards ChenYu