non-Multiplatform APE6EVM broken in v3.18-rc1
Hi,
I have noticed that there appears to be a regression between v3.17 and v3.18-rc1 such that non-multiplatform APE6EVM (ape6evm_defconfig) no longer boots. This appears to be the case using both reference DT (MACH_APE6EVM) and Legacy-C (MACH_APE6EVM_REFERENCE).
I have tried bisecting this problem but dew a blank: the problem seems to arise on a merge commit.
This problem also seems to be present in v3.18-rc2 and the devel and next branches of my renesas tree (which are based on v3.18-rc2 and v3.18-rc1 respectively).
To be clear this problem, whatever it is, does not seem to affect multiplatform APE6EVM (shmobile_defconfig).
Hi Simon,
Quoted 3 lines · Simon Horman
I have noticed that there appears to be a regression between v3.17 and v3.18-rc1 such that non-multiplatform APE6EVM (
ape6evm_defconfig) no longer boots. This appears to be the case using both reference DT (MACH_APE6EVM)
How does it manifest itself?
If you don't get any console output, have you tried my early debug patch?
Quoted 4 lines
and Legacy-C (
MACH_APE6EVM_REFERENCE).I have tried bisecting this problem but dew a blank: the problem seems to arise on a merge commit.
Which merge commit?
Quoted 6 lines
This problem also seems to be present in v3.18-rc2 and the devel and next branches of my renesas tree (which are based on v3.18-rc2 and v3.18-rc1 respectively).
To be clear this problem, whatever it is, does not seem to affect multiplatform APE6EVM (
shmobile_defconfig).
AFAIK, there's no APE6EVM support in multiplatform yet?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Quoted 9 lines · Geert Uytterhoeven
Hi Simon,
Quoted 3 lines · Simon Horman
I have noticed that there appears to be a regression between v3.17 and v3.18-rc1 such that non-multiplatform APE6EVM (
ape6evm_defconfig) no longer boots. This appears to be the case using both reference DT (MACH_APE6EVM)How does it manifest itself?
If you don't get any console output, have you tried my early debug patch?
IIRC, there was no console output.
I have not tried any out-of tree debug code :)
Quoted 6 lines
Quoted 4 lines
and Legacy-C (
MACH_APE6EVM_REFERENCE).I have tried bisecting this problem but dew a blank: the problem seems to arise on a merge commit.
Which merge commit?
Looking over things again my bisection seems bogus. I can try again but it won't be today.
Quoted 8 lines
Quoted 6 lines
This problem also seems to be present in v3.18-rc2 and the devel and next branches of my renesas tree (which are based on v3.18-rc2 and v3.18-rc1 respectively).
To be clear this problem, whatever it is, does not seem to affect multiplatform APE6EVM (
shmobile_defconfig).AFAIK, there's no APE6EVM support in multiplatform yet?
Yes, true. I must have imagined that part.
Quoted 12 lines
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Hi Simon,
Quoted 11 lines · Simon Horman
Quoted 7 lines · Geert Uytterhoeven
Quoted 3 lines · Simon Horman
I have noticed that there appears to be a regression between v3.17 and v3.18-rc1 such that non-multiplatform APE6EVM (
ape6evm_defconfig) no longer boots. This appears to be the case using both reference DT (MACH_APE6EVM)How does it manifest itself?
If you don't get any console output, have you tried my early debug patch?IIRC, there was no console output.
I have not tried any out-of tree debug code :)
Perhaps it should just move in-tree?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Quoted 9 lines · Geert Uytterhoeven
Hi Simon,
Quoted 6 lines · Simon Horman
Quoted 5 lines · Geert Uytterhoeven
Quoted 3 lines · Simon Horman
I have noticed that there appears to be a regression between v3.17 and v3.18-rc1 such that non-multiplatform APE6EVM (
ape6evm_defconfig) no longer boots. This appears to be the case using both reference DT (MACH_APE6EVM)
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
How does it manifest itself?
If you don't get any console output, have you tried my early debug patch?IIRC, there was no console output.
I have not tried any out-of tree debug code :)Perhaps it should just move in-tree?
Yes, perhaps it should :)
Regardless, I will try to give it a spin and report back.
[ CC Sudeep Holla, Daniel Lezcano, LKML ]
Quoted 13 lines · Simon Horman
Quoted 12 lines · Geert Uytterhoeven
Hi Simon,
Quoted 9 lines · Simon Horman
Quoted 7 lines · Geert Uytterhoeven
Quoted 3 lines · Simon Horman
I have noticed that there appears to be a regression between v3.17 and v3.18-rc1 such that non-multiplatform APE6EVM (
ape6evm_defconfig) no longer boots. This appears to be the case using both reference DT (MACH_APE6EVM)How does it manifest itself?
If you don't get any console output, have you tried my early debug patch?
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
IIRC, there was no console output.
I have not tried any out-of tree debug code :)Perhaps it should just move in-tree?
Yes, perhaps it should :)
Regardless, I will try to give it a spin and report back.
Thanks that seems to work well on the ape6evm.
It seems that the boot stops here:
...
smsc911x smsc911x eth0: MAC Address: 00:08:f7:00:02:4b rcar_thermal rcar_thermal: Runtime PM disabled, clock forced on. rcar_thermal rcar_thermal: 3 sensor probedsh_mobile_sdhi sh_mobile_sdhi.0: Runtime PM disabled, clock forced on. sh_mobile_sdhi sh_mobile_sdhi.0: No vqmmc regulator found
I re-ran my bisection and this time the following showed up as the culprit.
I suspect that the initialisation of mmcif, which is usually the next device to be initialised, sleeps and never wakes up because the timer is disabled.
commit c387f07e6205cc13f57c1def5f885bf0a20e1c2d
Author: Sudeep Holla <[email protected]> Date: Mon Sep 29 01:50:05 2014 +0200
clocksource: arm_arch_timer: Discard unavailable timers correctly
Currently we wait until both cp15 and mem timers are probed if we have both timer device nodes present in the device tree without checking if the device is actually available. If one of the timer device node present is disabled, the system locks up on the boot as no timer gets registered.
This patch adds the check for the availability of the timer device so that unavailable timers are discarded correctly. It also adds the missing of_node_put.
drivers/clocksource/arm_arch_timer.c +16 -4
@@ -616,17 +616,29 @@ static const struct of_device_id arch_timer_mem_of_match[] __initconst = { {}, }; +static bool __init +arch_timer_probed (int type,const struct of_device_id *matches) +{ +struct device_node *dn; +bool probed = false; + + dn =of_find_matching_node (NULL , matches); +if (dn &&of_device_is_available (dn) && (arch_timers_present & type)) + probed = true; +of_node_put (dn); + +return probed; +} +static void __init arch_timer_common_init (void ) {unsigned mask =ARCH_CP15_TIMER |ARCH_MEM_TIMER ;/* Wait until both nodes are probed if we have two timers */ if ((arch_timers_present & mask) != mask) { -if (of_find_matching_node (NULL , arch_timer_mem_of_match) && - !(arch_timers_present &ARCH_MEM_TIMER )) +if (!arch_timer_probed (ARCH_MEM_TIMER , arch_timer_mem_of_match))return ; -if (of_find_matching_node (NULL , arch_timer_of_match) && - !(arch_timers_present &ARCH_CP15_TIMER )) +if (!arch_timer_probed (ARCH_CP15_TIMER , arch_timer_of_match))return ; }
Quoted 24 lines · Simon Horman
Quoted 7 lines · Simon Horman
Quoted 6 lines · Geert Uytterhoeven
Quoted 5 lines · Simon Horman
Quoted 4 lines · Geert Uytterhoeven
Quoted 3 lines · Simon Horman
I have noticed that there appears to be a regression between v3.17 and v3.18-rc1 such that non-multiplatform APE6EVM (
ape6evm_defconfig) no longer boots. This appears to be the case using both reference DT (MACH_APE6EVM)It seems that the boot stops here:
...
smsc911x smsc911x eth0: MAC Address: 00:08:f7:00:02:4brcar_thermalrcar_thermal: Runtime PM disabled, clock forced on.rcar_thermalrcar_thermal: 3 sensor probedsh_mobile_sdhish_mobile_sdhi.0: Runtime PM disabled, clock forced on.sh_mobile_sdhish_mobile_sdhi.0: No vqmmc regulator foundI re-ran my bisection and this time the following showed up as the culprit.
I suspect that the initialisation of mmcif, which is usually the next device to be initialised, sleeps and never wakes up because the timer is disabled.
Quoted 5 lines
commit
c387f07e6205cc13f57c1def5f885bf0a20e1c2dAuthor: Sudeep Holla <[email protected]> Date: Mon Sep 29 01:50:05 2014 +0200clocksource:
arm_arch_timer: Discard unavailable timers correctly
Apparently reported and fixed by Laurent and a few others, cfr.
http://www.spinics.net/lists/arm-kernel/msg371615.html
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Quoted 25 lines · Geert Uytterhoeven
Quoted 24 lines · Simon Horman
Quoted 7 lines · Simon Horman
Quoted 6 lines · Geert Uytterhoeven
Quoted 5 lines · Simon Horman
Quoted 4 lines · Geert Uytterhoeven
Quoted 3 lines · Simon Horman
I have noticed that there appears to be a regression between v3.17 and v3.18-rc1 such that non-multiplatform APE6EVM (
ape6evm_defconfig) no longer boots. This appears to be the case using both reference DT (MACH_APE6EVM)It seems that the boot stops here:
...
smsc911x smsc911x eth0: MAC Address: 00:08:f7:00:02:4brcar_thermalrcar_thermal: Runtime PM disabled, clock forced on.rcar_thermalrcar_thermal: 3 sensor probedsh_mobile_sdhish_mobile_sdhi.0: Runtime PM disabled, clock forced on.sh_mobile_sdhish_mobile_sdhi.0: No vqmmc regulator foundI re-ran my bisection and this time the following showed up as the culprit.
I suspect that the initialisation of mmcif, which is usually the next device to be initialised, sleeps and never wakes up because the timer is disabled.
Quoted 8 lines
Quoted 5 lines
commit
c387f07e6205cc13f57c1def5f885bf0a20e1c2dAuthor: Sudeep Holla <[email protected]> Date: Mon Sep 29 01:50:05 2014 +0200clocksource:
arm_arch_timer: Discard unavailable timers correctlyApparently reported and fixed by Laurent and a few others, cfr.
http://www.spinics.net/lists/arm-kernel/msg371615.html
Great!
Quoted 26 lines · Simon Horman
Quoted 25 lines · Geert Uytterhoeven
Quoted 24 lines · Simon Horman
Quoted 7 lines · Simon Horman
Quoted 6 lines · Geert Uytterhoeven
Quoted 5 lines · Simon Horman
Quoted 4 lines · Geert Uytterhoeven
Quoted 3 lines · Simon Horman
I have noticed that there appears to be a regression between v3.17 and v3.18-rc1 such that non-multiplatform APE6EVM (
ape6evm_defconfig) no longer boots. This appears to be the case using both reference DT (MACH_APE6EVM)It seems that the boot stops here:
...
smsc911x smsc911x eth0: MAC Address: 00:08:f7:00:02:4brcar_thermalrcar_thermal: Runtime PM disabled, clock forced on.rcar_thermalrcar_thermal: 3 sensor probedsh_mobile_sdhish_mobile_sdhi.0: Runtime PM disabled, clock forced on.sh_mobile_sdhish_mobile_sdhi.0: No vqmmc regulator foundI re-ran my bisection and this time the following showed up as the culprit.
I suspect that the initialisation of mmcif, which is usually the next device to be initialised, sleeps and never wakes up because the timer is disabled.
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
commit
c387f07e6205cc13f57c1def5f885bf0a20e1c2dAuthor: Sudeep Holla <[email protected]> Date: Mon Sep 29 01:50:05 2014 +0200clocksource:
arm_arch_timer: Discard unavailable timers correctlyApparently reported and fixed by Laurent and a few others, cfr.
http://www.spinics.net/lists/arm-kernel/msg371615.html
I have temporarily cherry-picked the following, which is no present in linux-next, into the devel branch of the renesas tree. It appears to resolve the problem I reported.
b0ad5917960ca80f96bae ("ARM/ARM64: arch-timer: fix arch_timer_probed logic")
Quoted 33 lines · Simon Horman
Quoted 32 lines · Simon Horman
Quoted 31 lines · Geert Uytterhoeven
Quoted 29 lines · Simon Horman
Quoted 7 lines · Simon Horman
Quoted 6 lines · Geert Uytterhoeven
Quoted 5 lines · Simon Horman
Quoted 4 lines · Geert Uytterhoeven
Quoted 3 lines · Simon Horman
I have noticed that there appears to be a regression between v3.17 and v3.18-rc1 such that non-multiplatform APE6EVM (
ape6evm_defconfig) no longer boots. This appears to be the case using both reference DT (MACH_APE6EVM)It seems that the boot stops here:
...
smsc911x smsc911x eth0: MAC Address: 00:08:f7:00:02:4brcar_thermalrcar_thermal: Runtime PM disabled, clock forced on.rcar_thermalrcar_thermal: 3 sensor probedsh_mobile_sdhish_mobile_sdhi.0: Runtime PM disabled, clock forced on.sh_mobile_sdhish_mobile_sdhi.0: No vqmmc regulator foundI re-ran my bisection and this time the following showed up as the culprit.
I suspect that the initialisation of mmcif, which is usually the next device to be initialised, sleeps and never wakes up because the timer is disabled.
commit
c387f07e6205cc13f57c1def5f885bf0a20e1c2dAuthor: Sudeep Holla <[email protected]> Date: Mon Sep 29 01:50:05 2014 +0200clocksource:
arm_arch_timer: Discard unavailable timers correctly
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Apparently reported and fixed by Laurent and a few others, cfr.
http://www.spinics.net/lists/arm-kernel/msg371615.htmlI have temporarily cherry-picked the following, which is no present in linux-next, into the devel branch of the renesas tree. It appears to resolve the problem I reported.
b0ad5917960ca80f96bae("ARM/ARM64: arch-timer: fixarch_timer_probedlogic")
Yes, that is the right one.
This patch is now upstream and will be in -rc3.
Thanks
-- Daniel
Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
Quoted 41 lines · Daniel Lezcano
Quoted 40 lines · Simon Horman
Quoted 26 lines · Simon Horman
Quoted 25 lines · Geert Uytterhoeven
Quoted 24 lines · Simon Horman
Quoted 7 lines · Simon Horman
Quoted 6 lines · Geert Uytterhoeven
Quoted 5 lines · Simon Horman
Quoted 4 lines · Geert Uytterhoeven
Quoted 3 lines · Simon Horman
I have noticed that there appears to be a regression between v3.17 and v3.18-rc1 such that non-multiplatform APE6EVM (
ape6evm_defconfig) no longer boots. This appears to be the case using both reference DT (MACH_APE6EVM)It seems that the boot stops here:
...
smsc911x smsc911x eth0: MAC Address: 00:08:f7:00:02:4brcar_thermalrcar_thermal: Runtime PM disabled, clock forced on.rcar_thermalrcar_thermal: 3 sensor probedsh_mobile_sdhish_mobile_sdhi.0: Runtime PM disabled, clock forced on.sh_mobile_sdhish_mobile_sdhi.0: No vqmmc regulator foundI re-ran my bisection and this time the following showed up as the culprit.
I suspect that the initialisation of mmcif, which is usually the next device to be initialised, sleeps and never wakes up because the timer is disabled.
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
commit
c387f07e6205cc13f57c1def5f885bf0a20e1c2dAuthor: Sudeep Holla <[email protected]> Date: Mon Sep 29 01:50:05 2014 +0200clocksource:
arm_arch_timer: Discard unavailable timers correctlyApparently reported and fixed by Laurent and a few others, cfr.
http://www.spinics.net/lists/arm-kernel/msg371615.htmlI have temporarily cherry-picked the following, which is no present in linux-next, into the devel branch of the renesas tree. It appears to resolve the problem I reported.
Quoted 5 lines
Quoted 1 line
b0ad5917960ca80f96bae("ARM/ARM64: arch-timer: fixarch_timer_probedlogic")Yes, that is the right one.
This patch is now upstream and will be in -rc3.
Thanks, I see it in -rc3 now.
Hi Simon,
Quoted 3 lines · Simon Horman
rcar_thermalrcar_thermal: Runtime PM disabled, clock forced on.rcar_thermalrcar_thermal: 3 sensor probedsh_mobile_sdhish_mobile_sdhi.0: Runtime PM disabled, clock forced on.
BTW, any specific reason CONFIG_PM_RUNTIME is not enabled in ape6evm_defconfig?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Quoted 9 lines · Geert Uytterhoeven
Hi Simon,
Quoted 3 lines · Simon Horman
rcar_thermalrcar_thermal: Runtime PM disabled, clock forced on.rcar_thermalrcar_thermal: 3 sensor probedsh_mobile_sdhish_mobile_sdhi.0: Runtime PM disabled, clock forced on.BTW, any specific reason
CONFIG_PM_RUNTIMEis not enabled inape6evm_defconfig?
I noticed that too and I don't think there is a reason. I'll see about enabling it.