MSM fix
Subsystems (2)
I seem to have missed this fix when it was sent out in April.
The following changes since commit 620917de59eeb934b9f8cf35cc2d95c1ac8ed0fc:
Linux 3.0-rc7 (2011-07-11 16:51:52 -0700)
are available in the git repository at:
git://codeaurora.org/quic/kernel/davidb/linux-msm.git msm-fix
Jeff Ohlstein (1):
msm: platsmp: actually read core count in get_core_count
arch/arm/mach-msm/platsmp.c | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-)
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Quoted 4 lines · On Wednesday 20 July 2011 13:37:03 David Brown wrote:
I seem to have missed this fix when it was sent out in April.
The following changes since commit
620917de59eeb934b9f8cf35cc2d95c1ac8ed0fc:
Quoted 8 lines
Linux 3.0-rc7 (2011-07-11 16:51:52 -0700)
are available in the git repository at:
git://codeaurora.org/quic/kernel/davidb/linux-msm.gitmsm-fixJeff Ohlstein (1):
msm: platsmp: actually read core count inget_core_count
Hmm, this one seems like it really applies to older kernels as well, so we can just as well add a cc:stable at kernel.org tag and put it into the arm-soc/next/fixes branch, right?
Linus has just pulled the 'last arm-soc fixes for 3.0' branch, and I don't really want to follow up with 'last fix, this time for real' pull request unless it's for a serious regression.
On a related topic, what's the deal with the msm-core and msm-move-gpio branches in the same tree? I have the impression that they should be in arm-soc.git, but I never received a pull request.
The msm-move-gpio branch looks like it wasn't merged into the gpio tree either, which would be the other logical place, and the msm-core branch is currently in linux-next but hasn't been updated since April.
Arnd
Quoted 10 lines · Arnd Bergmann
Quoted 9 lines · On Wednesday 20 July 2011 13:37:03 David Brown wrote:
I seem to have missed this fix when it was sent out in April.
The following changes since commit
620917de59eeb934b9f8cf35cc2d95c1ac8ed0fc:Linux 3.0-rc7 (2011-07-11 16:51:52 -0700)
are available in the git repository at:
git://codeaurora.org/quic/kernel/davidb/linux-msm.gitmsm-fix
Quoted 7 lines
Quoted 3 lines
Jeff Ohlstein (1):
msm: platsmp: actually read core count inget_core_countHmm, this one seems like it really applies to older kernels as well, so we can just as well add a cc:stable at kernel.org tag and put it into the arm-soc/next/fixes branch, right?
It looks like it would apply to 2.6.38 and 39 as well. I'm not sure it qualifies under the "It must fix a real bug that bothers people". It would only apply if someone had set NR_CPUS to more than 2.
Quoted 3 lines
Linus has just pulled the 'last arm-soc fixes for 3.0' branch, and I don't really want to follow up with 'last fix, this time for real' pull request unless it's for a serious regression.
It's not serious, so 3.1 is fine.
Quoted 3 lines
On a related topic, what's the deal with the msm-core and msm-move-gpio branches in the same tree? I have the impression that they should be in arm-soc.git, but I never received a pull request.
I had sent a pull request for msm-move-gpio to Grant, but apparently that didn't happen. If more appropriate, I can send one to you for it, or resend to Grant.
The msm-core stuff happened before the snafu about ARM, and I was holding off on these things. The authors of these patches say they are working on cleaned up versions.
I'm not sure we want the dummy clocks code in the kernel. It's intended as a placeholder. Stephen Boyd has a 26-series patch that adds better clock support. Given the size (13047 insertions), this may need some cleanup or even device-tree work to include.
Unfortunately, a lot of the Qualcomm development seems to have moved back to private trees.
BTW, I am planning on being at the Linaro Connect in August.
David
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Quoted 15 lines · David Brown
Quoted 14 lines · Arnd Bergmann
Quoted 12 lines · On Wednesday 20 July 2011 13:37:03 David Brown wrote:
I seem to have missed this fix when it was sent out in April.
The following changes since commit
620917de59eeb934b9f8cf35cc2d95c1ac8ed0fc:Linux 3.0-rc7 (2011-07-11 16:51:52 -0700)
are available in the git repository at:
git://codeaurora.org/quic/kernel/davidb/linux-msm.gitmsm-fixJeff Ohlstein (1):
msm: platsmp: actually read core count inget_core_count
Quoted 7 lines
Quoted 3 lines
Hmm, this one seems like it really applies to older kernels as well, so we can just as well add a cc:stable at kernel.org tag and put it into the arm-soc/next/fixes branch, right?
It looks like it would apply to 2.6.38 and 39 as well. I'm not sure it qualifies under the "It must fix a real bug that bothers people". It would only apply if someone had set
NR_CPUSto more than 2.
Err, this makes no sense. MSM doesn't have a get_core_count function and as far as I can see never has done in mainline.
And where is the patch?
We shouldn't be pulling git requests into arm-soc without having seen the patches on LAKML.
Quoted 24 lines · Russell King - ARM Linux
Quoted 15 lines · David Brown
Quoted 14 lines · Arnd Bergmann
Quoted 12 lines · On Wednesday 20 July 2011 13:37:03 David Brown wrote:
I seem to have missed this fix when it was sent out in April.
The following changes since commit
620917de59eeb934b9f8cf35cc2d95c1ac8ed0fc:Linux 3.0-rc7 (2011-07-11 16:51:52 -0700)
are available in the git repository at:
git://codeaurora.org/quic/kernel/davidb/linux-msm.gitmsm-fixJeff Ohlstein (1):
msm: platsmp: actually read core count inget_core_countQuoted 7 lines
Quoted 3 lines
Hmm, this one seems like it really applies to older kernels as well, so we can just as well add a cc:stable at kernel.org tag and put it into the arm-soc/next/fixes branch, right?
It looks like it would apply to 2.6.38 and 39 as well. I'm not sure it qualifies under the "It must fix a real bug that bothers people". It would only apply if someone had set
NR_CPUSto more than 2.
Quoted 7 lines
Err, this makes no sense. MSM doesn't have a
get_core_countfunction and as far as I can see never has done in mainline.And where is the patch?
We shouldn't be pulling git requests into arm-soc without having seen the patches on LAKML.
It was sent back in April.
https://patchwork.kernel.org/patch/693881/
David
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Quoted 6 lines · Russell King - ARM Linux
Quoted 3 lines
It looks like it would apply to 2.6.38 and 39 as well. I'm not sure it qualifies under the "It must fix a real bug that bothers people". It would only apply if someone had set
NR_CPUSto more than 2.Err, this makes no sense. MSM doesn't have a
get_core_countfunction and as far as I can see never has done in mainline.
I've committed the version below now, with a clarified title. The patch looks reasonable to me, but there may be some issue I'm missing of course. The other platforms that used to have a get_core_count function no longer have that because you changed them to use scu_get_core_count, but that doesn't seem to apply to mach-msm.
I did not add a stable tag though.
Arnd
8<---
Subject: [PATCH] ARM: msm: platsmp: determine number of CPU cores at boot time
Previously we just assumed there were CONFIG_NR_CPUS cpus present in the system. Instead, figure out the number of cpus from the MIDR register.
arch/arm/mach-msm/platsmp.c +9 -2
@@ -18,6 +18,7 @@#include <asm/hardware/gic.h> #include <asm/cacheflush.h> +#include <asm/cputype.h> #include <asm/mach-types.h> #include <mach/msm_iomap.h>
@@ -40,6 +41,12 @@ volatile int pen_release = -1;static DEFINE_SPINLOCK (boot_lock); +static inline int get_core_count (void ) +{ +/* 1 + the PART[1:0] field of MIDR */ +return ((read_cpuid_id () >>4 ) &3 ) +1 ; +} +void __cpuinit platform_secondary_init (unsigned int cpu) {/* Configure edge-triggered PPIs */
@@ -147,9 +154,9 @@ int __cpuinit boot_secondary(unsigned int cpu, struct task_struct *idle)*/ void __init smp_init_cpus (void ) { -unsigned int i; +unsigned int i, ncores =get_core_count (); -for (i =0 ; i <NR_CPUS ; i++) +for (i =0 ; i < ncores; i++)set_cpu_possible (i, true);set_smp_cross_call (gic_raise_softirq);
Quoted 8 lines · Arnd Bergmann
Quoted 6 lines · Russell King - ARM Linux
Quoted 3 lines
It looks like it would apply to 2.6.38 and 39 as well. I'm not sure it qualifies under the "It must fix a real bug that bothers people". It would only apply if someone had set
NR_CPUSto more than 2.Err, this makes no sense. MSM doesn't have a
get_core_countfunction and as far as I can see never has done in mainline.
Quoted 6 lines
I've committed the version below now, with a clarified title. The patch looks reasonable to me, but there may be some issue I'm missing of course. The other platforms that used to have a
get_core_countfunction no longer have that because you changed them to usescu_get_core_count, but that doesn't seem to apply to mach-msm.
That patch description helps a lot to clarify what's going on.