Message ID | 1409903205-2762-2-git-send-email-rric@kernel.org |
---|---|
State | New |
Headers | show |
On Fri, Sep 05, 2014 at 08:46:42AM +0100, Robert Richter wrote: > From: Radha Mohan Chintakuntla <rchintakuntla@cavium.com> > > Increase maximum numbers of cpus to 32. This relates to current > maximal possible cpu number. Increasing this to 64 cpus will be a > separate patch not part of this enablement patches. Just out of interest, does raising the current maximum limit actually break any existing code? If not, then doing this as two patches doesn't seem worth it. Will -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
On 05.09.14 09:39:32, Will Deacon wrote: > On Fri, Sep 05, 2014 at 08:46:42AM +0100, Robert Richter wrote: > > From: Radha Mohan Chintakuntla <rchintakuntla@cavium.com> > > > > Increase maximum numbers of cpus to 32. This relates to current > > maximal possible cpu number. Increasing this to 64 cpus will be a > > separate patch not part of this enablement patches. > > Just out of interest, does raising the current maximum limit actually break > any existing code? If not, then doing this as two patches doesn't seem worth > it. Increasing to 64 should be fine from the perspective of cpu mask implementation. Memory foot print should be the same already as this uses long which is 64 bit. So this wouldn't hurt. However, I felt a bit uncomfortable having a dependency here to enabling 64 cpus and getting this patch set upstream. Support for more than 32 cpus is not well tested yet and there still might be problems with e.g. interrupt delivery or topology. If increasing to 32 cpus as an intermediate step isn't the best approach here, we can live with the current defaults too. I would then just remove that change from the patch. For follow on driver patch sets it would be good to have ARCH_THUNDER upstream as this option will be shared between all drivers. -Robert -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
On Fri, Sep 05, 2014 at 10:21:35AM +0100, Robert Richter wrote: > On 05.09.14 09:39:32, Will Deacon wrote: > > On Fri, Sep 05, 2014 at 08:46:42AM +0100, Robert Richter wrote: > > > From: Radha Mohan Chintakuntla <rchintakuntla@cavium.com> > > > > > > Increase maximum numbers of cpus to 32. This relates to current > > > maximal possible cpu number. Increasing this to 64 cpus will be a > > > separate patch not part of this enablement patches. > > > > Just out of interest, does raising the current maximum limit actually break > > any existing code? If not, then doing this as two patches doesn't seem worth > > it. > > Increasing to 64 should be fine from the perspective of cpu mask > implementation. Memory foot print should be the same already as this > uses long which is 64 bit. So this wouldn't hurt. > > However, I felt a bit uncomfortable having a dependency here to > enabling 64 cpus and getting this patch set upstream. Support for more > than 32 cpus is not well tested yet and there still might be problems > with e.g. interrupt delivery or topology. All I mean is, if the kernel doesn't explode on existing systems by changing the upper limit to 64, then we should do that. If you're not comfortable that the Thunder code can handle that, then leave the thunder default as 32, like you do in the current patch. It just seems odd not to change the maximum number, since it's an arbitrary limit from my perspective. Will -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
On Fri, Sep 05, 2014 at 10:25:08AM +0100, Will Deacon wrote: > On Fri, Sep 05, 2014 at 10:21:35AM +0100, Robert Richter wrote: > > On 05.09.14 09:39:32, Will Deacon wrote: > > > On Fri, Sep 05, 2014 at 08:46:42AM +0100, Robert Richter wrote: > > > > From: Radha Mohan Chintakuntla <rchintakuntla@cavium.com> > > > > > > > > Increase maximum numbers of cpus to 32. This relates to current > > > > maximal possible cpu number. Increasing this to 64 cpus will be a > > > > separate patch not part of this enablement patches. > > > > > > Just out of interest, does raising the current maximum limit actually break > > > any existing code? If not, then doing this as two patches doesn't seem worth > > > it. > > > > Increasing to 64 should be fine from the perspective of cpu mask > > implementation. Memory foot print should be the same already as this > > uses long which is 64 bit. So this wouldn't hurt. > > > > However, I felt a bit uncomfortable having a dependency here to > > enabling 64 cpus and getting this patch set upstream. Support for more > > than 32 cpus is not well tested yet and there still might be problems > > with e.g. interrupt delivery or topology. > > All I mean is, if the kernel doesn't explode on existing systems by changing > the upper limit to 64, then we should do that. If you're not comfortable > that the Thunder code can handle that, then leave the thunder default as 32, > like you do in the current patch. It just seems odd not to change the > maximum number, since it's an arbitrary limit from my perspective. FWIW my Juno happily boots with a NR_CPUS=64 kernel. Mark. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
On 05.09.14 10:36:47, Mark Rutland wrote: > On Fri, Sep 05, 2014 at 10:25:08AM +0100, Will Deacon wrote: > > All I mean is, if the kernel doesn't explode on existing systems by changing > > the upper limit to 64, then we should do that. If you're not comfortable > > that the Thunder code can handle that, then leave the thunder default as 32, > > like you do in the current patch. It just seems odd not to change the > > maximum number, since it's an arbitrary limit from my perspective. > > FWIW my Juno happily boots with a NR_CPUS=64 kernel. It looks like if it's fine to set the general default to NR_CPUS=64 even if the kernel might not yet boot more than 32 cpus. Will make this change separately and drop it in this patch. See also my other reply to Russell in this thread. -Robert -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index fd4e81a4e1ce..77fb82b0f684 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -134,6 +134,11 @@ source "kernel/Kconfig.freezer" menu "Platform selection" +config ARCH_THUNDER + bool "Cavium Inc. Thunder SoC Family" + help + This enables support for Cavium's Thunder Family of SoCs. + config ARCH_VEXPRESS bool "ARMv8 software model (Versatile Express)" select ARCH_REQUIRE_GPIOLIB @@ -256,6 +261,7 @@ config NR_CPUS range 2 32 depends on SMP # These have to remain sorted largest to smallest + default "32" if ARCH_THUNDER default "8" config HOTPLUG_CPU