exynos5422-odroid-xu3: MCPM: only 6 of 8 CPUs coming online
Hi Kevin,
I had noticed a similar issue where only 6 cores would come up during development on 5420. This was because there was a check in our u-boot secondary boot-up path which would put a core into WFI if a flag was not present and hence fail to boot. I wonder if it is the same situation in your case too. Is the u-boot for odroid-xu3 publically available or can you check if there is any such code present in your secondary bring-up path.
Regards,
Abhilash
------- Original Message -------
Sender : Kevin Hilman<[email protected]>
Date : Oct 09, 2014 00:28 (GMT+05:30)
Title : exynos5422-odroid-xu3: MCPM: only 6 of 8 CPUs coming online
Hi Chander, Abhilash,
I'm using the exynos5422 odroid-xu3 and only 6 of 8 cores are coming online when using MCPM[1]. All the A15s are booting but only 2 of the A7s, one of which is the primary CPU.
After booting, if I try to manually bring one of the CPUs online via /sys/devices/.../cpuX/online, I hit the BUG() in mcpm-exynos.c:exynos_power_up().
Any ideas why 2 of the A7s aren't booting up?
Kevin
[1]
[ 0.001719] CPU: Testing write buffer coherency: ok [ 0.002171] CPU0: update cpu_capacity 448 [ 0.002187] CPU0: thread -1, cpu 0, socket 1, mpidr 80000100 [ 0.002429] Setting up static identity map for 0x4046df70 - 0x4046dfc8 [ 0.002732] ARM CCI driver probed [ 0.002815] exynos_mcpm_usage_count_init: cpu 0 cluster 1 [ 0.003010] Exynos MCPM support installed [ 0.030310] mcpm_boot_secondary: logical CPU 1 is physical CPU 0 cluster 0 [ 0.030326] exynos_power_up: cpu 0 cluster 0 [ 0.030626] CPU1: Booted secondary processor [ 0.030686] CPU1: update cpu_capacity 1535 [ 0.030693] CPU1: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.040314] mcpm_boot_secondary: logical CPU 2 is physical CPU 1 cluster 0 [ 0.040340] exynos_power_up: cpu 1 cluster 0 [ 0.040629] CPU2: Booted secondary processor [ 0.040672] CPU2: update cpu_capacity 1535 [ 0.040679] CPU2: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.050321] mcpm_boot_secondary: logical CPU 3 is physical CPU 2 cluster 0 [ 0.050347] exynos_power_up: cpu 2 cluster 0 [ 0.050659] CPU3: Booted secondary processor [ 0.050703] CPU3: update cpu_capacity 1535 [ 0.050710] CPU3: thread -1, cpu 2, socket 0, mpidr 80000002 [ 0.060316] mcpm_boot_secondary: logical CPU 4 is physical CPU 3 cluster 0 [ 0.060343] exynos_power_up: cpu 3 cluster 0 [ 0.060631] CPU4: Booted secondary processor [ 0.060675] CPU4: update cpu_capacity 1535 [ 0.060682] CPU4: thread -1, cpu 3, socket 0, mpidr 80000003 [ 0.070316] mcpm_boot_secondary: logical CPU 5 is physical CPU 1 cluster 1 [ 0.070343] exynos_power_up: cpu 1 cluster 1 [ 1.070007] CPU5: failed to come online [ 1.080322] mcpm_boot_secondary: logical CPU 6 is physical CPU 2 cluster 1 [ 1.080337] exynos_power_up: cpu 2 cluster 1 [ 1.080625] CPU6: Booted secondary processor [ 1.080691] CPU6: update cpu_capacity 448 [ 1.080699] CPU6: thread -1, cpu 2, socket 1, mpidr 80000102 [ 1.090331] mcpm_boot_secondary: logical CPU 7 is physical CPU 3 cluster 1 [ 1.090356] exynos_power_up: cpu 3 cluster 1 [ 2.090023] CPU7: failed to come online [ 2.090055] Brought up 6 CPUs [ 2.090067] SMP: Total of 6 processors activated. [ 2.090079] CPU: WARNING: CPU(s) started in wrong/inconsistent modes (primary CPU mode 0x13) [ 2.090089] CPU: This may indicate a broken bootloader or firmware.
Hi Abhilash,
Quoted 6 lines · Abhilash Kesavan
I had noticed a similar issue where only 6 cores would come up during
development on 5420. This was because there was a check in our u-boot
secondary boot-up path which would put a core into WFI if a flag was
not present and hence fail to boot. I wonder if it is the same
situation in your case too.
Is the u-boot for odroid-xu3 publically available or can you check if there is any such code present in your secondary bring-up path.
I'm using the hardkernel u-boot[1], branch: odroidxu3-v2012.07. I'm currently using the pre-built binaries that are in the sd_fuse/hardkernel directory of that branch, but I can rebuild u-boot if needed.
I'm not very familiar with u-boot, but if f you have some pointers where to start looking in that code, that would be helpful.
Kevin
Hi,
Quoted 11 lines · Kevin Hilman <khilman <at> kernel.org> writes:
Hi Abhilash,
Quoted 6 lines · Abhilash Kesavan <a.kesavan <at> samsung.com> writes:
I had noticed a similar issue where only 6 cores would come up during development on 5420. This was because there was a check in our u-boot secondary boot-up path which would put a core into WFI if a flag was not present and hence fail to boot. I wonder if it is the same situation in your case too.
Is the u-boot for odroid-xu3 publically available or can you check if
there is any such code present in your
Quoted 7 lines
secondary bring-up path.
I'm using the hardkernel u-boot[1], branch: odroidxu3-v2012.07. I'm currently using the pre-built binaries that are in the sd_fuse/hardkernel directory of that branch, but I can rebuild u-boot if needed.
Quoted 8 lines
I'm not very familiar with u-boot, but if f you have some pointers where to start looking in that code, that would be helpful.
Kevin
It seems to need magic code.
Please refer
https://github.com/abhijeet-dev/linux-samsung/commit
/553b7f40465ab4fad6c270f289cd4780942f7fae
Thanks.
Quoted 28 lines · Joonyoung Shim
Hi,
Quoted 11 lines · Kevin Hilman <khilman <at> kernel.org> writes:
Hi Abhilash,
Quoted 6 lines · Abhilash Kesavan <a.kesavan <at> samsung.com> writes:
I had noticed a similar issue where only 6 cores would come up during development on 5420. This was because there was a check in our u-boot secondary boot-up path which would put a core into WFI if a flag was not present and hence fail to boot. I wonder if it is the same situation in your case too.
Is the u-boot for odroid-xu3 publically available or can you check ifthere is any such code present in your
Quoted 12 lines
secondary bring-up path.
I'm using the hardkernel u-boot[1], branch: odroidxu3-v2012.07. I'm currently using the pre-built binaries that are in the sd_fuse/hardkernel directory of that branch, but I can rebuild u-boot if needed.
I'm not very familiar with u-boot, but if f you have some pointers where to start looking in that code, that would be helpful.
Kevin
Quoted 8 lines
Quoted 3 lines
It seems to need magic code.
Please refer
https://github.com/abhijeet-dev/linux-samsung/commit/553b7f40465ab4fad6c270f289cd4780942f7fae
Thanks, Abhilash had pointed me to the same code, and it works. But...
Can someone explain this "magic", ideally in the form of a changelog and patch submitted upstream?
Kevin
Hi,
Quoted 35 lines · Kevin Hilman
Quoted 34 lines · Joonyoung Shim
Hi,
Quoted 11 lines · Kevin Hilman <khilman <at> kernel.org> writes:
Hi
hdmi_resources_init,Quoted 6 lines · Abhilash Kesavan <a.kesavan <at> samsung.com> writes:
I had noticed a similar issue where only 6 cores would come up during development on 5420. This was because there was a check in our u-boot secondary boot-up path which would put a core into WFI if a flag was not present and hence fail to boot. I wonder if it is the same situation in your case too.
Is the u-boot for odroid-xu3 publically available or can you check ifthere is any such code present in your
Quoted 7 lines
secondary bring-up path.
I'm using the hardkernel u-boot[1], branch: odroidxu3-v2012.07. I'm currently using the pre-built binaries that are in the sd_fuse/hardkernel directory of that branch, but I can rebuild u-boot if needed.
Quoted 8 lines
I'm not very familiar with u-boot, but if f you have some pointers where to start looking in that code, that would be helpful.
Kevin
It seems to need magic code.
Quoted 8 lines
Quoted 2 lines
Please refer
https://github.com/abhijeet-dev/linux-samsung/commit/553b7f40465ab4fad6c270f289cd4780942f7faeThanks, Abhilash had pointed me to the same code, and it works. But...
Can someone explain this "magic", ideally in the form of a changelog and patch submitted upstream?
I also really wonder.
One more problem, cpu0 doesn't boot after offline and system is halted.
# echo 0 > /sys/devices/system/cpu/cpu0/online [ 28.027852] IRQ152 no longer affine to CPU0 [ 28.028087] IRQ256 no longer affine to CPU0 [ 28.028344] CPU0: shutdown # # echo 1 > /sys/devices/system/cpu/cpu0/online
So, it's failed script[1] to test MCPM functionalities
Thanks.
Add Cc the patch author and committer from github.
Quoted 64 lines · Joonyoung Shim
Hi,
Quoted 35 lines · Kevin Hilman
Quoted 34 lines · Joonyoung Shim
Hi,
Quoted 11 lines · Kevin Hilman <khilman <at> kernel.org> writes:
Hi
hdmi_resources_init,Quoted 6 lines · Abhilash Kesavan <a.kesavan <at> samsung.com> writes:
I had noticed a similar issue where only 6 cores would come up during development on 5420. This was because there was a check in our u-boot secondary boot-up path which would put a core into WFI if a flag was not present and hence fail to boot. I wonder if it is the same situation in your case too.
Is the u-boot for odroid-xu3 publically available or can you check ifthere is any such code present in your
Quoted 7 lines
secondary bring-up path.
I'm using the hardkernel u-boot[1], branch: odroidxu3-v2012.07. I'm currently using the pre-built binaries that are in the sd_fuse/hardkernel directory of that branch, but I can rebuild u-boot if needed.
Quoted 8 lines
I'm not very familiar with u-boot, but if f you have some pointers where to start looking in that code, that would be helpful.
Kevin
It seems to need magic code.
Quoted 8 lines
Quoted 2 lines
Please refer
https://github.com/abhijeet-dev/linux-samsung/commit/553b7f40465ab4fad6c270f289cd4780942f7faeThanks, Abhilash had pointed me to the same code, and it works. But...
Can someone explain this "magic", ideally in the form of a changelog and patch submitted upstream?
I also really wonder.
One more problem, cpu0 doesn't boot after offline and system is halted.
# echo 0 > /sys/devices/system/cpu/cpu0/online [ 28.027852] IRQ152 no longer affine to CPU0 [ 28.028087] IRQ256 no longer affine to CPU0 [ 28.028344] CPU0: shutdown # # echo 1 > /sys/devices/system/cpu/cpu0/onlineSo, it's failed script[1] to test MCPM functionalities
Thanks.
Joonyoung,
This patch was provided by Samsung and if someone can explain is you guys from Samsung.
I have no idea of the logics behind this or what it would take to fix it. Keep in mind that our u-boot and kernel (downstream 3.10) is part of Samsung provided BSP.
Would be nice if you guys could explain this.
Quoted 72 lines · Joonyoung Shim
Add Cc the patch author and committer from github.
Quoted 58 lines · Joonyoung Shim
Hi,
Quoted 35 lines · Kevin Hilman
Quoted 34 lines · Joonyoung Shim
Hi,
Quoted 11 lines · Kevin Hilman <khilman <at> kernel.org> writes:
Hi
hdmi_resources_init,Quoted 6 lines · Abhilash Kesavan <a.kesavan <at> samsung.com> writes:
I had noticed a similar issue where only 6 cores would come up during development on 5420. This was because there was a check in our u-boot secondary boot-up path which would put a core into WFI if a flag was not present and hence fail to boot. I wonder if it is the same situation in your case too.
Is the u-boot for odroid-xu3 publically available or can you check ifthere is any such code present in your
Quoted 7 lines
secondary bring-up path.
I'm using the hardkernel u-boot[1], branch: odroidxu3-v2012.07. I'm currently using the pre-built binaries that are in the sd_fuse/hardkernel directory of that branch, but I can rebuild u-boot if needed.
Quoted 8 lines
I'm not very familiar with u-boot, but if f you have some pointers where to start looking in that code, that would be helpful.
Kevin
It seems to need magic code.
Quoted 8 lines
Quoted 2 lines
Please refer
https://github.com/abhijeet-dev/linux-samsung/commit/553b7f40465ab4fad6c270f289cd4780942f7faeThanks, Abhilash had pointed me to the same code, and it works. But...
Can someone explain this "magic", ideally in the form of a changelog and patch submitted upstream?
I also really wonder.
One more problem, cpu0 doesn't boot after offline and system is halted.
# echo 0 > /sys/devices/system/cpu/cpu0/online [ 28.027852] IRQ152 no longer affine to CPU0 [ 28.028087] IRQ256 no longer affine to CPU0 [ 28.028344] CPU0: shutdown # # echo 1 > /sys/devices/system/cpu/cpu0/onlineQuoted 6 lines
So, it's failed script[1] to test MCPM functionalities
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 9 lines · Mauro Ribeiro
Joonyoung,
This patch was provided by Samsung and if someone can explain is you guys from Samsung.
I have no idea of the logics behind this or what it would take to fix it. Keep in mind that our u-boot and kernel (downstream 3.10) is part of Samsung provided BSP.
Would be nice if you guys could explain this.
Mauro,
Thanks to reply, do you know author of this patch written by Samsung?
To Kukjin,
The patch[1] seems to come from S.LSI guys, could you contact about this?
[1]: https://github.com/abhijeet-dev/linux-samsung/commit/553b7f40465ab4fad6c270f289cd4780942f7fae
Quoted 77 lines
Quoted 72 lines · Joonyoung Shim
Add Cc the patch author and committer from github.
Quoted 58 lines · Joonyoung Shim
Hi,
Quoted 35 lines · Kevin Hilman
Quoted 34 lines · Joonyoung Shim
Hi,
Quoted 11 lines · Kevin Hilman <khilman <at> kernel.org> writes:
Hi
hdmi_resources_init,Quoted 6 lines · Abhilash Kesavan <a.kesavan <at> samsung.com> writes:
I had noticed a similar issue where only 6 cores would come up during development on 5420. This was because there was a check in our u-boot secondary boot-up path which would put a core into WFI if a flag was not present and hence fail to boot. I wonder if it is the same situation in your case too.
Is the u-boot for odroid-xu3 publically available or can you check ifthere is any such code present in your
Quoted 7 lines
secondary bring-up path.
I'm using the hardkernel u-boot[1], branch: odroidxu3-v2012.07. I'm currently using the pre-built binaries that are in the sd_fuse/hardkernel directory of that branch, but I can rebuild u-boot if needed.
Quoted 8 lines
I'm not very familiar with u-boot, but if f you have some pointers where to start looking in that code, that would be helpful.
Kevin
It seems to need magic code.
Quoted 8 lines
Quoted 2 lines
Please refer
https://github.com/abhijeet-dev/linux-samsung/commit/553b7f40465ab4fad6c270f289cd4780942f7faeThanks, Abhilash had pointed me to the same code, and it works. But...
Can someone explain this "magic", ideally in the form of a changelog and patch submitted upstream?
I also really wonder.
One more problem, cpu0 doesn't boot after offline and system is halted.
# echo 0 > /sys/devices/system/cpu/cpu0/online [ 28.027852] IRQ152 no longer affine to CPU0 [ 28.028087] IRQ256 no longer affine to CPU0 [ 28.028344] CPU0: shutdown # # echo 1 > /sys/devices/system/cpu/cpu0/onlineQuoted 6 lines
So, it's failed script[1] to test MCPM functionalities
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Joonyoung,
Abhilash looks to be the father of it...
Also I have no idea why I'm appearing as a commiter of that.. as me or anyone from Hardkernel doesn't have access to that github account or contributed to it.
I do have a 3.17 branch here locally on my computer but its not public anywhere.
Quoted 100 lines · Joonyoung Shim
Quoted 9 lines · Mauro Ribeiro
Joonyoung,
This patch was provided by Samsung and if someone can explain is you guys from Samsung.
I have no idea of the logics behind this or what it would take to fix it. Keep in mind that our u-boot and kernel (downstream 3.10) is part of Samsung provided BSP.
Would be nice if you guys could explain this.Mauro,
Thanks to reply, do you know author of this patch written by Samsung?
To Kukjin,
The patch[1] seems to come from S.LSI guys, could you contact about this?
[1]: https://github.com/abhijeet-dev/linux-samsung/commit/553b7f40465ab4fad6c270f289cd4780942f7fae
Quoted 77 lines
Quoted 72 lines · Joonyoung Shim
Add Cc the patch author and committer from github.
Quoted 58 lines · Joonyoung Shim
Hi,
Quoted 35 lines · Kevin Hilman
Quoted 34 lines · Joonyoung Shim
Hi,
Quoted 11 lines · Kevin Hilman <khilman <at> kernel.org> writes:
Hi
hdmi_resources_init,Quoted 6 lines · Abhilash Kesavan <a.kesavan <at> samsung.com> writes:
I had noticed a similar issue where only 6 cores would come up during development on 5420. This was because there was a check in our u-boot secondary boot-up path which would put a core into WFI if a flag was not present and hence fail to boot. I wonder if it is the same situation in your case too.
Is the u-boot for odroid-xu3 publically available or can you check ifthere is any such code present in your
Quoted 7 lines
secondary bring-up path.
I'm using the hardkernel u-boot[1], branch: odroidxu3-v2012.07. I'm currently using the pre-built binaries that are in the sd_fuse/hardkernel directory of that branch, but I can rebuild u-boot if needed.
Quoted 8 lines
I'm not very familiar with u-boot, but if f you have some pointers where to start looking in that code, that would be helpful.
Kevin
It seems to need magic code.
Quoted 8 lines
Quoted 2 lines
Please refer
https://github.com/abhijeet-dev/linux-samsung/commit/553b7f40465ab4fad6c270f289cd4780942f7faeThanks, Abhilash had pointed me to the same code, and it works. But...
Can someone explain this "magic", ideally in the form of a changelog and patch submitted upstream?
I also really wonder.
One more problem, cpu0 doesn't boot after offline and system is halted.
# echo 0 > /sys/devices/system/cpu/cpu0/online [ 28.027852] IRQ152 no longer affine to CPU0 [ 28.028087] IRQ256 no longer affine to CPU0 [ 28.028344] CPU0: shutdown # # echo 1 > /sys/devices/system/cpu/cpu0/onlineQuoted 6 lines
So, it's failed script[1] to test MCPM functionalities
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi,
Quoted 7 lines · Mauro Ribeiro
Joonyoung,
Abhilash looks to be the father of it...
Also I have no idea why I'm appearing as a commiter of that.. as me or anyone from Hardkernel doesn't have access to that github account or contributed to it.
I do have a 3.17 branch here locally on my computer but its not public anywhere.
You are just author of the patch on github and it was committed to github by Abhilash.
Thanks.
Quoted 108 lines
Quoted 13 lines · Joonyoung Shim
Quoted 9 lines · Mauro Ribeiro
Joonyoung,
This patch was provided by Samsung and if someone can explain is you guys from Samsung.
I have no idea of the logics behind this or what it would take to fix it. Keep in mind that our u-boot and kernel (downstream 3.10) is part of Samsung provided BSP.
Would be nice if you guys could explain this.Mauro,
Quoted 87 lines
Thanks to reply, do you know author of this patch written by Samsung?
To Kukjin,
The patch[1] seems to come from S.LSI guys, could you contact about this?
[1]: https://github.com/abhijeet-dev/linux-samsung/commit/553b7f40465ab4fad6c270f289cd4780942f7fae
Quoted 77 lines
Quoted 72 lines · Joonyoung Shim
Add Cc the patch author and committer from github.
Quoted 58 lines · Joonyoung Shim
Hi,
Quoted 35 lines · Kevin Hilman
Quoted 34 lines · Joonyoung Shim
Hi,
Quoted 11 lines · Kevin Hilman <khilman <at> kernel.org> writes:
Hi
hdmi_resources_init,Quoted 6 lines · Abhilash Kesavan <a.kesavan <at> samsung.com> writes:
I had noticed a similar issue where only 6 cores would come up during development on 5420. This was because there was a check in our u-boot secondary boot-up path which would put a core into WFI if a flag was not present and hence fail to boot. I wonder if it is the same situation in your case too.
Is the u-boot for odroid-xu3 publically available or can you check ifthere is any such code present in your
Quoted 7 lines
secondary bring-up path.
I'm using the hardkernel u-boot[1], branch: odroidxu3-v2012.07. I'm currently using the pre-built binaries that are in the sd_fuse/hardkernel directory of that branch, but I can rebuild u-boot if needed.
Quoted 8 lines
I'm not very familiar with u-boot, but if f you have some pointers where to start looking in that code, that would be helpful.
Kevin
It seems to need magic code.
Quoted 8 lines
Quoted 2 lines
Please refer
https://github.com/abhijeet-dev/linux-samsung/commit/553b7f40465ab4fad6c270f289cd4780942f7faeThanks, Abhilash had pointed me to the same code, and it works. But...
Can someone explain this "magic", ideally in the form of a changelog and patch submitted upstream?
I also really wonder.
One more problem, cpu0 doesn't boot after offline and system is halted.
# echo 0 > /sys/devices/system/cpu/cpu0/online [ 28.027852] IRQ152 no longer affine to CPU0 [ 28.028087] IRQ256 no longer affine to CPU0 [ 28.028344] CPU0: shutdown # # echo 1 > /sys/devices/system/cpu/cpu0/onlineQuoted 6 lines
So, it's failed script[1] to test MCPM functionalities
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · Joonyoung Shim
Hi,
Quoted 2 lines · Mauro Ribeiro
Joonyoung,
Quoted 7 lines
Quoted 5 lines
Abhilash looks to be the father of it...
Also I have no idea why I'm appearing as a commiter of that.. as me or anyone from Hardkernel doesn't have access to that github account or contributed to it.
I do have a 3.17 branch here locally on my computer but its not public anywhere.You are just author of the patch on github and it was committed to github by Abhilash.
Sorry, not Abhilash, by Abhijeet Dev <[email protected]>, i don't know who he is.
Quoted 117 lines
Thanks.
Quoted 103 lines
Quoted 13 lines · Joonyoung Shim
Quoted 9 lines · Mauro Ribeiro
Joonyoung,
This patch was provided by Samsung and if someone can explain is you guys from Samsung.
I have no idea of the logics behind this or what it would take to fix it. Keep in mind that our u-boot and kernel (downstream 3.10) is part of Samsung provided BSP.
Would be nice if you guys could explain this.Mauro,
Quoted 87 lines
Thanks to reply, do you know author of this patch written by Samsung?
To Kukjin,
The patch[1] seems to come from S.LSI guys, could you contact about this?
[1]: https://github.com/abhijeet-dev/linux-samsung/commit/553b7f40465ab4fad6c270f289cd4780942f7fae
Quoted 77 lines
Quoted 72 lines · Joonyoung Shim
Add Cc the patch author and committer from github.
Quoted 58 lines · Joonyoung Shim
Hi,
Quoted 35 lines · Kevin Hilman
Quoted 34 lines · Joonyoung Shim
Hi,
Quoted 11 lines · Kevin Hilman <khilman <at> kernel.org> writes:
Hi
hdmi_resources_init,Quoted 6 lines · Abhilash Kesavan <a.kesavan <at> samsung.com> writes:
I had noticed a similar issue where only 6 cores would come up during development on 5420. This was because there was a check in our u-boot secondary boot-up path which would put a core into WFI if a flag was not present and hence fail to boot. I wonder if it is the same situation in your case too.
Is the u-boot for odroid-xu3 publically available or can you check ifthere is any such code present in your
Quoted 7 lines
secondary bring-up path.
I'm using the hardkernel u-boot[1], branch: odroidxu3-v2012.07. I'm currently using the pre-built binaries that are in the sd_fuse/hardkernel directory of that branch, but I can rebuild u-boot if needed.
Quoted 8 lines
I'm not very familiar with u-boot, but if f you have some pointers where to start looking in that code, that would be helpful.
Kevin
It seems to need magic code.
Quoted 8 lines
Quoted 2 lines
Please refer
https://github.com/abhijeet-dev/linux-samsung/commit/553b7f40465ab4fad6c270f289cd4780942f7faeThanks, Abhilash had pointed me to the same code, and it works. But...
Can someone explain this "magic", ideally in the form of a changelog and patch submitted upstream?
I also really wonder.
One more problem, cpu0 doesn't boot after offline and system is halted.
# echo 0 > /sys/devices/system/cpu/cpu0/online [ 28.027852] IRQ152 no longer affine to CPU0 [ 28.028087] IRQ256 no longer affine to CPU0 [ 28.028344] CPU0: shutdown # # echo 1 > /sys/devices/system/cpu/cpu0/onlineQuoted 6 lines
So, it's failed script[1] to test MCPM functionalities
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlQuoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 4 lines · Joonyoung Shim <jy0922.shim <at> samsung.com> writes:
Quoted 2 lines · Joonyoung Shim
Hi,
Quoted 8 lines
Quoted 8 lines · Mauro Ribeiro
Quoted 7 lines
Joonyoung,
Abhilash looks to be the father of it...
Also I have no idea why I'm appearing as a commiter of that.. as me or anyone from Hardkernel doesn't have access to that github account or contributed to it.
I do have a 3.17 branch here locally on my computer but its not public
anywhere.
Quoted 2 lines
Quoted 2 lines
You are just author of the patch on github and it was committed to github
by Abhilash.
Quoted 2 lines
Sorry, not Abhilash, by Abhijeet Dev <abhijeet <at> abhijeet-dev.net>, i
don't know who he is.
Quoted 1 line
I had received it from Mauro. As Mauro mentioned, Abhilash seems to be the father of it - and the patch has to have Samsung origin - one can't dream of such magic :)
At the moment we can trace it as far as Abhilash - he looks like the person who actually knows this magic:
Abhilash(Samsung) -> Kevin -> Mauro -> Abhijeet (Me)
As I could only trace as far as Mauro earlier, I marked him as the author of this patch. I will change it in the next one. As for the tree on my github account, I maintain it to support various boards on Kukjin's for-next branch on kernel.org.
Quoted 10 lines · Abhilash Kesavan
The change was based on my reading of the platsmp file of the Odroid-xu3 3.10 kernel and issues experienced previously. From what I understand, the platsmp code in 3.10 kernel is trying to reset the A7s and my change just bypasses the check (no magic here ). The change was only suggested as a workaround to get 8 cores up using MCPM and not an actual fix. I had explained this in my mail to Kevin. So, if this were to be mainlined we would probably need to use something like
exynos_core_restartin mcpm along with the workaround. But, this is all guesswork on my part and someone with knowledge of the 3.10 kernel/bootloader needs to comment.
Unfortunately, the harkernel tree git repo doesn't help understand where the change came from because an entire v3.10.y based Samsung BSP is checked into the tree on top of a v3.8.y kernel in a single commit !!!
Abhilash, in the absence of the original author, could write up a patch with your change?
Or, if you can help me with a detailed changelog, I can work on the patch. I don't have any exynos docs, so it would be good to have a description of what reading/writing to that register are actually doing.
Also, can you explain what you meant by using exynos_core_restart? I don't see that function in mainline.
Kevin
Joonyoung Shim <[email protected]> writes:
[...]
Quoted 9 lines
Quoted 9 lines
One more problem, cpu0 doesn't boot after offline and system is halted.
# echo 0 > /sys/devices/system/cpu/cpu0/online [ 28.027852] IRQ152 no longer affine to CPU0 [ 28.028087] IRQ256 no longer affine to CPU0 [ 28.028344] CPU0: shutdown # # echo 1 > /sys/devices/system/cpu/cpu0/online
Quoted 5 lines
Quoted 5 lines
So, it's failed script[1] to test MCPM functionalities
Thanks.
FYI... this hotplug problem happens with or without the patch to bring all 8 CPUs online, so it's not related to that fix.
Also, it only happens with the bL switcher enabled, and not with the switcher disabled. Since the bL switcher is built on top of hotplug, I'm not sure if the switcher deals well with CPUs being hotplugged without it knowing.
Kevin
Hello Kevin,
Quoted 17 lines · Kevin Hilman
Quoted 10 lines · Abhilash Kesavan
The change was based on my reading of the platsmp file of the Odroid-xu3 3.10 kernel and issues experienced previously. From what I understand, the platsmp code in 3.10 kernel is trying to reset the A7s and my change just bypasses the check (no magic here ). The change was only suggested as a workaround to get 8 cores up using MCPM and not an actual fix. I had explained this in my mail to Kevin. So, if this were to be mainlined we would probably need to use something like
exynos_core_restartin mcpm along with the workaround. But, this is all guesswork on my part and someone with knowledge of the 3.10 kernel/bootloader needs to comment.Unfortunately, the harkernel tree git repo doesn't help understand where the change came from because an entire v3.10.y based Samsung BSP is checked into the tree on top of a v3.8.y kernel in a single commit !!!
Quoted 6 lines
Abhilash, in the absence of the original author, could write up a patch with your change?
Or, if you can help me with a detailed changelog, I can work on the patch. I don't have any exynos docs, so it would be good to have a description of what reading/writing to that register are actually doing.
I could post a patch with an explanation of how I think the workaround works, but there are a few issues:
- I am not completely confident that this is the best/right change.
- We are adding code to the exynos mcpm back-end to work-around a bootloader setting for Odroid-xu3. We would have to make it specific to odroid somehow as we do not require it for 5420/5800 chromebooks.
- This might solve the 8 core boot-up issue but other scenarios might still fail like the one Joonyoung has already reported.
Quoted 3 lines
Also, can you explain what you meant by using
exynos_core_restart? I don't see that function in mainline.
It is present in linux-next and kgene's for-next branch as part of this commit "ARM: EXYNOS: SWRESET is needed to boot secondary CPU on exynos3250".
Regards,
Abhilash
Quoted 21 lines · Abhilash Kesavan
Quoted 20 lines · Kevin Hilman
Quoted 10 lines · Abhilash Kesavan
The change was based on my reading of the platsmp file of the Odroid-xu3 3.10 kernel and issues experienced previously. From what I understand, the platsmp code in 3.10 kernel is trying to reset the A7s and my change just bypasses the check (no magic here ). The change was only suggested as a workaround to get 8 cores up using MCPM and not an actual fix. I had explained this in my mail to Kevin. So, if this were to be mainlined we would probably need to use something like
exynos_core_restartin mcpm along with the workaround. But, this is all guesswork on my part and someone with knowledge of the 3.10 kernel/bootloader needs to comment.Unfortunately, the harkernel tree git repo doesn't help understand where the change came from because an entire v3.10.y based Samsung BSP is checked into the tree on top of a v3.8.y kernel in a single commit !!!
Abhilash, in the absence of the original author, could write up a patch with your change?
Quoted 7 lines
Quoted 3 lines
Or, if you can help me with a detailed changelog, I can work on the patch. I don't have any exynos docs, so it would be good to have a description of what reading/writing to that register are actually doing.
I could post a patch with an explanation of how I think the workaround works, but there are a few issues:
- I am not completely confident that this is the best/right change.
Maybe post as RFC.
Quoted 3 lines
- We are adding code to the exynos mcpm back-end to work-around a bootloader setting for Odroid-xu3. We would have to make it specific to odroid somehow as we do not require it for 5420/5800 chromebooks.
Hmm, if you have an idea how/where to fix it in u-boot, I'd be glad to give that a try. I'm using the hardkernel u-boot repo:
https://github.com/hardkernel/u-boot.git, branch odroidxu3-v2012.07, and would be happy to test any fixes there.
Quoted 2 lines
- This might solve the 8 core boot-up issue but other scenarios might still fail like the one Joonyoung has already reported.
I replied yesterday to that report, and the one Joonyoung reported exists with or without your proposed fix, so I don't think they're directly related.
Quoted 7 lines
Quoted 3 lines
Also, can you explain what you meant by using
exynos_core_restart? I don't see that function in mainline.It is present in linux-next and kgene's for-next branch as part of this commit "ARM: EXYNOS: SWRESET is needed to boot secondary CPU on exynos3250".
OK, I see it now.
Kevin
Kevin,
As I wrote you previously outside the list this is the commit "ARM:
EXYNOS: SWRESET is needed to boot secondary CPU on exynos3250" that I was expecting it to fix XU3 as well and apparently it is..
Next week if everything goes as I plan I'll check if I can use the same code to enable the A7's on XU3 as well.
If its possible to use the same code I'll try to upstream this next week.
It would be nice if Samsung could tell what in our u-boot (provided by LSI) is needed to be changed as I can just push any changes to our u-boot.
BR,
Mauro
Quoted 60 lines · Kevin Hilman
Quoted 21 lines · Abhilash Kesavan
Quoted 20 lines · Kevin Hilman
Quoted 10 lines · Abhilash Kesavan
The change was based on my reading of the platsmp file of the Odroid-xu3 3.10 kernel and issues experienced previously. From what I understand, the platsmp code in 3.10 kernel is trying to reset the A7s and my change just bypasses the check (no magic here ). The change was only suggested as a workaround to get 8 cores up using MCPM and not an actual fix. I had explained this in my mail to Kevin. So, if this were to be mainlined we would probably need to use something like
exynos_core_restartin mcpm along with the workaround. But, this is all guesswork on my part and someone with knowledge of the 3.10 kernel/bootloader needs to comment.Unfortunately, the harkernel tree git repo doesn't help understand where the change came from because an entire v3.10.y based Samsung BSP is checked into the tree on top of a v3.8.y kernel in a single commit !!!
Abhilash, in the absence of the original author, could write up a patch with your change?
Quoted 7 lines
Quoted 3 lines
Or, if you can help me with a detailed changelog, I can work on the patch. I don't have any exynos docs, so it would be good to have a description of what reading/writing to that register are actually doing.
I could post a patch with an explanation of how I think the workaround works, but there are a few issues:
- I am not completely confident that this is the best/right change.Maybe post as RFC.
Quoted 3 lines
- We are adding code to the exynos mcpm back-end to work-around a bootloader setting for Odroid-xu3. We would have to make it specific to odroid somehow as we do not require it for 5420/5800 chromebooks.
Hmm, if you have an idea how/where to fix it in u-boot, I'd be glad to give that a try. I'm using the hardkernel u-boot repo:
https://github.com/hardkernel/u-boot.git, branch odroidxu3-v2012.07, and would be happy to test any fixes there.Quoted 2 lines
- This might solve the 8 core boot-up issue but other scenarios might still fail like the one Joonyoung has already reported.
I replied yesterday to that report, and the one Joonyoung reported exists with or without your proposed fix, so I don't think they're directly related.
Quoted 7 lines
Quoted 3 lines
Also, can you explain what you meant by using
exynos_core_restart? I don't see that function in mainline.It is present in linux-next and kgene's for-next branch as part of this commit "ARM: EXYNOS: SWRESET is needed to boot secondary CPU on exynos3250".
OK, I see it now.
Kevin
Quoted 3 lines · Mauro Ribeiro
As I wrote you previously outside the list this is the commit "ARM:
EXYNOS: SWRESET is needed to boot secondary CPU on exynos3250" that I was expecting it to fix XU3 as well and apparently it is..
I'm not sure about that, since I haven't been able to get that to work.
Quoted 3 lines
Next week if everything goes as I plan I'll check if I can use the same code to enable the A7's on XU3 as well.
If its possible to use the same code I'll try to upstream this next week.
Excellent. I'd love to see a patch against mainline that using that function that works on the XU3. Note that mainline is using MCPM and that patch solves the problem for the older platsmp method.
Quoted 3 lines
It would be nice if Samsung could tell what in our u-boot (provided by LSI) is needed to be changed as I can just push any changes to our u-boot.
Yes, I completely agree. This seems to me like a bootloader bug and the best solution here would be to have a bootloader fix.
Kevin