Skip to contentSkip to conversation

Always enable SMP mode on MP capable CPUs

CFT Russell King - ARM Linux 6 participants 20 messages May 18, 2017 – May 31, 2017 Arm (32-bit)

lore
Share & tools
lore

Russell King - ARM Linux

author maintainer
#0 lore raw

As a result of a recent bug report, it has been found that certain CPUs must always have SMP mode enabled in order for the caches to work.

Remove the conditional on setting the SMP bit(s).

---
This needs to be tested on:

- Cortex A5MP
- Cortex A9MP
- Cortex R7MP
- Cortex A7MP
- Cortex A12MP
- Cortex A15MP
- Cortex A17MP
- Brahma B15

and any other CPU that mis-identifies itself with a MP-capable CPUID signature that might match one of those CPUs. I'm aware of a Cortex A9 CPU out there that does mis-identify itself as SMP capable but isn't:

@ Core indicates it is SMP. Check for Aegis SOC where a single @ Cortex-A9 CPU is present but SMP operations fault.

This will also need testing.

 arch/arm/mm/proc-v7.S | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
arch/arm/mm/proc-v7.S +2 -6
index 01d64c0b2563..4d48a4cf563b 100644
@@ -286,14 +286,10 @@ ENDPROC(cpu_pj4b_do_resume)
 	stmia	r12, {r1-r6, lr}		@ v7_invalidate_l1 touches r0-r6
 	bl      v7_invalidate_l1
 	ldmia	r12, {r1-r6, lr}
-#ifdef CONFIG_SMP
+	mrc	p15, 0, r0, c1, c0, 1
 	orr	r10, r10, #(1 << 6)		@ Enable SMP/nAMP mode
-	ALT_SMP(mrc	p15, 0, r0, c1, c0, 1)
-	ALT_UP(mov	r0, r10)		@ fake it for UP
 	orr	r10, r10, r0			@ Set required bits
-	teq	r10, r0				@ Were they already set?
-	mcrne	p15, 0, r10, c1, c0, 1		@ No, update register
-#endif
+	mcr	p15, 0, r10, c1, c0, 1		@ No, update register
 	b	__v7_setup_cont
 
 /*
Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: [email protected] down 400kbps up
according to speedtest.net.
Tested-by
#1 lore raw

Hi Russell,

Quoted 40 lines · Russell King - ARM Linux

As a result of a recent bug report, it has been found that certain CPUs must always have SMP mode enabled in order for the caches to work.

Remove the conditional on setting the SMP bit(s).

---
This needs to be tested on:

- Cortex A5MP
- Cortex A9MP
- Cortex R7MP
- Cortex A7MP
- Cortex A12MP
- Cortex A15MP
- Cortex A17MP
- Brahma B15

and any other CPU that mis-identifies itself with a MP-capable CPUID signature that might match one of those CPUs. I'm aware of a Cortex A9 CPU out there that does mis-identify itself as SMP capable but isn't:

@ Core indicates it is SMP. Check for Aegis SOC where a single @ Cortex-A9 CPU is present but SMP operations fault.

This will also need testing.

 arch/arm/mm/proc-v7.S | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
arch/arm/mm/proc-v7.S +0 -1
index 01d64c0b2563..4d48a4cf563b 100644
@@ -286,14 +286,10 @@ ENDPROC(cpu_pj4b_do_resume)
        stmia   r12, {r1-r6, lr}                @ v7_invalidate_l1 touches r0-r6
        bl      v7_invalidate_l1
        ldmia   r12, {r1-r6, lr}
-#ifdef CONFIG_SMP

arch/arm/mm/proc-v7.S ENDPROC(cpu_pj4b_do_resume) · line 293

Quoted 10 lines
arch/arm/mm/proc-v7.S +2 -5
+       mrc     p15, 0, r0, c1, c0, 1
        orr     r10, r10, #(1 << 6)             @ Enable SMP/nAMP mode
-       ALT_SMP(mrc     p15, 0, r0, c1, c0, 1)
-       ALT_UP(mov      r0, r10)                @ fake it for UP
        orr     r10, r10, r0                    @ Set required bits
-       teq     r10, r0                         @ Were they already set?
-       mcrne   p15, 0, r10, c1, c0, 1          @ No, update register
-#endif
+       mcr     p15, 0, r10, c1, c0, 1          @ No, update register
        b       __v7_setup_cont

I tested this patch on a mx6ul, which is CortexA7 UP using USB serial download mode.

In this boot mode the ROM code does not set the SMP bit and I can notice a very slow boot progress with CONFIG_SMP=n with an original 4.12-rc1.

With this patch applied it boots with the correct speed, so:

Adding Kevin on Cc in case kernelci.org could run some tests with this patch applied on other platforms.

Thanks

#2 lore raw
Quoted 8 lines · Fabio Estevam

I tested this patch on a mx6ul, which is CortexA7 UP using USB serial download mode.

In this boot mode the ROM code does not set the SMP bit and I can notice a very slow boot progress with CONFIG_SMP=n with an original 4.12-rc1.

With this patch applied it boots with the correct speed, so:

However the kernel still takes a long time to decompress when the bootloader or ROM does not set the SMP bit.

After it decompress, then it boots quickly.

Should the SMP bit be set inside arch/arm/boot/compressed/head.S?

Thanks

author maintainer
#3 lore raw
Quoted 9 lines · Fabio Estevam
Quoted 7 lines · Fabio Estevam

I tested this patch on a mx6ul, which is CortexA7 UP using USB serial download mode.

In this boot mode the ROM code does not set the SMP bit and I can notice a very slow boot progress with CONFIG_SMP=n with an original 4.12-rc1.

Quoted 8 lines
Quoted 1 line

With this patch applied it boots with the correct speed, so:

However the kernel still takes a long time to decompress when the bootloader or ROM does not set the SMP bit.

After it decompress, then it boots quickly.

Should the SMP bit be set inside arch/arm/boot/compressed/head.S?

We could expand the table to positively identify the SMP capable CPUs and enable the SMP bit there, but it's going to add a lot of entries there (one for each specific ARMv7 MP CPU) and is going to have to be endlessly added to each time a new SMP CPU comes out.

Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
#4 lore raw
Quoted 15 lines · Russell King - ARM Linux
Quoted 14 lines · Fabio Estevam
Quoted 8 lines · Fabio Estevam

I tested this patch on a mx6ul, which is CortexA7 UP using USB serial download mode.

In this boot mode the ROM code does not set the SMP bit and I can notice a very slow boot progress with CONFIG_SMP=n with an original 4.12-rc1.

With this patch applied it boots with the correct speed, so:

However the kernel still takes a long time to decompress when the bootloader or ROM does not set the SMP bit.

Quoted 8 lines
Quoted 3 lines

After it decompress, then it boots quickly.

Should the SMP bit be set inside arch/arm/boot/compressed/head.S?

We could expand the table to positively identify the SMP capable CPUs and enable the SMP bit there, but it's going to add a lot of entries there (one for each specific ARMv7 MP CPU) and is going to have to be endlessly added to each time a new SMP CPU comes out.

Looks like commit e414690faa81 ("ARM: always enable SMP mode on SMP cores") causes booting to fail early at least on omap4430 duovero. It's a bit of a mystery as it is SMP.. And pandboard es (4460) and droid 4 (4430) work without the conditional write..

Partial revert like below seems to make it boot again.

Regards,

Tony

8< -------------------

arch/arm/mm/proc-v7.S +2 -1
index 4d48a4cf563b..ad653ec0835e 100644
@@ -289,7 +289,8 @@ __v7_ca17mp_setup:
 	mrc	p15, 0, r0, c1, c0, 1
 	orr	r10, r10, #(1 << 6)		@ Enable SMP/nAMP mode
 	orr	r10, r10, r0			@ Set required bits
-	mcr	p15, 0, r10, c1, c0, 1		@ No, update register
+	teq	r10, r0				@ Were they already set?
+	mcrne	p15, 0, r10, c1, c0, 1		@ No, update register
 	b	__v7_setup_cont
 
 /*
author maintainer
#5 lore raw
Quoted 6 lines · Tony Lindgren
Quoted 4 lines · Russell King - ARM Linux

We could expand the table to positively identify the SMP capable CPUs and enable the SMP bit there, but it's going to add a lot of entries there (one for each specific ARMv7 MP CPU) and is going to have to be endlessly added to each time a new SMP CPU comes out.

Quoted 6 lines

Looks like commit e414690faa81 ("ARM: always enable SMP mode on SMP cores") causes booting to fail early at least on omap4430 duovero. It's a bit of a mystery as it is SMP.. And pandboard es (4460) and droid 4 (4430) work without the conditional write..

Partial revert like below seems to make it boot again.

Thanks for testing, I'll integrate your change, and it should be in tonight's linux-next.

Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
#6 lore raw
Quoted 12 lines · Russell King - ARM Linux
Quoted 11 lines · Tony Lindgren
Quoted 4 lines · Russell King - ARM Linux

We could expand the table to positively identify the SMP capable CPUs and enable the SMP bit there, but it's going to add a lot of entries there (one for each specific ARMv7 MP CPU) and is going to have to be endlessly added to each time a new SMP CPU comes out.

Looks like commit e414690faa81 ("ARM: always enable SMP mode on SMP cores") causes booting to fail early at least on omap4430 duovero. It's a bit of a mystery as it is SMP.. And pandboard es (4460) and droid 4 (4430) work without the conditional write..

Quoted 4 lines
Quoted 1 line

Partial revert like below seems to make it boot again.

Thanks for testing, I'll integrate your change, and it should be in tonight's linux-next.

OK. That may not work on am437x though as it's UP.

Afzal, did the change that I posted work for you?

Regards,

Tony

author maintainer
#7 lore raw
Quoted 13 lines · Tony Lindgren
Quoted 12 lines · Russell King - ARM Linux
Quoted 11 lines · Tony Lindgren
Quoted 4 lines · Russell King - ARM Linux

We could expand the table to positively identify the SMP capable CPUs and enable the SMP bit there, but it's going to add a lot of entries there (one for each specific ARMv7 MP CPU) and is going to have to be endlessly added to each time a new SMP CPU comes out.

Looks like commit e414690faa81 ("ARM: always enable SMP mode on SMP cores") causes booting to fail early at least on omap4430 duovero. It's a bit of a mystery as it is SMP.. And pandboard es (4460) and droid 4 (4430) work without the conditional write..

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Partial revert like below seems to make it boot again.

Thanks for testing, I'll integrate your change, and it should be in tonight's linux-next.

OK. That may not work on am437x though as it's UP.

Maybe this is just too complicated to grasp - in which case just test tonight's linux-next on *all* your boards irrespective of the CPU, and let me know if there's a regression due to this patch, giving me full details of your CPUs (CPU ID numbers, number of CPUs, etc.) If no one reports a regression that doesn't get fixed, I'll merge it during the next merge window.

(I can't believe that this is proving to be soo complicated...)

Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
#8 lore raw
Quoted 10 lines · Russell King - ARM Linux
Quoted 2 lines · Tony Lindgren

OK. That may not work on am437x though as it's UP.

Maybe this is just too complicated to grasp - in which case just test tonight's linux-next on *all* your boards irrespective of the CPU, and let me know if there's a regression due to this patch, giving me full details of your CPUs (CPU ID numbers, number of CPUs, etc.) If no one reports a regression that doesn't get fixed, I'll merge it during the next merge window.

OK so got my am437x-idk back up and running again. I'm kind of running out of space here..

And as suspected it won't boot with these changes. It's a UP core:

CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt: Machine model: TI AM437x Industrial Development Kit

Regards,

Tony

#9 lore raw

Hi,

Quoted 3 lines · Tony Lindgren

OK so got my am437x-idk back

And as suspected it won't boot with these changes.

Tested here too with your additional changes included & seeing same behavior here as well on AM437x.

As an aside, when Russell posted this patch a week back itself was suspecting this. i had a certain view on AM437x w.r.t SMP issue back while officially working on it & since now not officially involved with the issue at hand, i was uncomfortable dealing with this. But as Russell's patch was not noticed by others w.r.t AM437x, upon being able to confirm it yesterday, i at least wanted to bring it to notice & runaway from the scene.

Regards
afzal

author maintainer
#10 lore raw
Quoted 11 lines · afzal mohammed

Hi,

Quoted 3 lines · Tony Lindgren

OK so got my am437x-idk back

And as suspected it won't boot with these changes.

Tested here too with your additional changes included & seeing same behavior here as well on AM437x.

Quoted 7 lines

As an aside, when Russell posted this patch a week back itself was suspecting this. i had a certain view on AM437x w.r.t SMP issue back while officially working on it & since now not officially involved with the issue at hand, i was uncomfortable dealing with this. But as Russell's patch was not noticed by others w.r.t AM437x, upon being able to confirm it yesterday, i at least wanted to bring it to notice & runaway from the scene.

Right, so I think the summary is: the kernel can't set the SMP bit correctly - it doesn't have the information at this point in time to know definitively whether the bit needs to be set or not.

So, those who are suffering issues with their SMP cores in uniprocessor systems need to ensure that their boot loader correctly configures the CPU cores.

Thanks for testing.

Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
#11 lore raw
Quoted 20 lines · Russell King - ARM Linux
Quoted 11 lines · afzal mohammed

Hi,

Quoted 3 lines · Tony Lindgren

OK so got my am437x-idk back

And as suspected it won't boot with these changes.

Tested here too with your additional changes included & seeing same behavior here as well on AM437x.

Quoted 7 lines

As an aside, when Russell posted this patch a week back itself was suspecting this. i had a certain view on AM437x w.r.t SMP issue back while officially working on it & since now not officially involved with the issue at hand, i was uncomfortable dealing with this. But as Russell's patch was not noticed by others w.r.t AM437x, upon being able to confirm it yesterday, i at least wanted to bring it to notice & runaway from the scene.

Quoted 7 lines

Right, so I think the summary is: the kernel can't set the SMP bit correctly - it doesn't have the information at this point in time to know definitively whether the bit needs to be set or not.

So, those who are suffering issues with their SMP cores in uniprocessor systems need to ensure that their boot loader correctly configures the CPU cores.

Russell, current Linux next still has commit e7cf836e9757 ("ARM:
always enable SMP mode on SMP cores"). You're planning to drop it, right?

It causes a regression on am437x to not boot as we can't set the SMP bit on it.

Regards,

Tony

author maintainer
#12 lore raw
Quoted 25 lines · Tony Lindgren
Quoted 24 lines · Russell King - ARM Linux
Quoted 11 lines · afzal mohammed

Hi,

Quoted 3 lines · Tony Lindgren

OK so got my am437x-idk back

And as suspected it won't boot with these changes.

Tested here too with your additional changes included & seeing same behavior here as well on AM437x.

Quoted 7 lines

As an aside, when Russell posted this patch a week back itself was suspecting this. i had a certain view on AM437x w.r.t SMP issue back while officially working on it & since now not officially involved with the issue at hand, i was uncomfortable dealing with this. But as Russell's patch was not noticed by others w.r.t AM437x, upon being able to confirm it yesterday, i at least wanted to bring it to notice & runaway from the scene.

Right, so I think the summary is: the kernel can't set the SMP bit correctly - it doesn't have the information at this point in time to know definitively whether the bit needs to be set or not.

Quoted 7 lines
Quoted 3 lines

So, those who are suffering issues with their SMP cores in uniprocessor systems need to ensure that their boot loader correctly configures the CPU cores.

Russell, current Linux next still has commit e7cf836e9757 ("ARM:
always enable SMP mode on SMP cores"). You're planning to drop it, right?

Please have some patience.

Correct, it should be gone from tonight's linux-next.

The UK has two holidays in May, one of them was this Monday. I dropped the patch yesterday, which is the first opportunity since sending that mail, but due to other pressures yesterday, my tree was in no state to be pushed out for linux-next's grab last night.

Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
#13 lore raw
Quoted 34 lines · Russell King - ARM Linux
Quoted 25 lines · Tony Lindgren
Quoted 24 lines · Russell King - ARM Linux
Quoted 11 lines · afzal mohammed

Hi,

Quoted 3 lines · Tony Lindgren

OK so got my am437x-idk back

And as suspected it won't boot with these changes.

Tested here too with your additional changes included & seeing same behavior here as well on AM437x.

Quoted 7 lines

As an aside, when Russell posted this patch a week back itself was suspecting this. i had a certain view on AM437x w.r.t SMP issue back while officially working on it & since now not officially involved with the issue at hand, i was uncomfortable dealing with this. But as Russell's patch was not noticed by others w.r.t AM437x, upon being able to confirm it yesterday, i at least wanted to bring it to notice & runaway from the scene.

Right, so I think the summary is: the kernel can't set the SMP bit correctly - it doesn't have the information at this point in time to know definitively whether the bit needs to be set or not.

Quoted 7 lines
Quoted 3 lines

So, those who are suffering issues with their SMP cores in uniprocessor systems need to ensure that their boot loader correctly configures the CPU cores.

Russell, current Linux next still has commit e7cf836e9757 ("ARM:
always enable SMP mode on SMP cores"). You're planning to drop it, right?

Quoted 8 lines

Please have some patience.

Correct, it should be gone from tonight's linux-next.

The UK has two holidays in May, one of them was this Monday. I dropped the patch yesterday, which is the first opportunity since sending that mail, but due to other pressures yesterday, my tree was in no state to be pushed out for linux-next's grab last night.

OK thanks for confirming!

Tony

#14 lore raw
In reply to Russell King - ARM Linux

To make those handling AM43x aware, To'ing l-o

Hi,

Quoted 8 lines · Russell King - ARM Linux

As a result of a recent bug report, it has been found that certain CPUs must always have SMP mode enabled in order for the caches to work.

Remove the conditional on setting the SMP bit(s).

---

Quoted 8 lines

I'm aware of a Cortex
A9 CPU out there that does mis-identify itself as SMP capable but isn't:

@ Core indicates it is SMP. Check for Aegis SOC where a single @ Cortex-A9 CPU is present but SMP operations fault.

This will also need testing.

With this change, AM437x, i.e. the above mentioned SoC stops booting (multi_v7 config)

afzal

Quoted 35 lines
 arch/arm/mm/proc-v7.S | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
arch/arm/mm/proc-v7.S +2 -6
index 01d64c0b2563..4d48a4cf563b 100644
@@ -286,14 +286,10 @@ ENDPROC(cpu_pj4b_do_resume)
 	stmia	r12, {r1-r6, lr}		@ v7_invalidate_l1 touches r0-r6
 	bl      v7_invalidate_l1
 	ldmia	r12, {r1-r6, lr}
-#ifdef CONFIG_SMP
+	mrc	p15, 0, r0, c1, c0, 1
 	orr	r10, r10, #(1 << 6)		@ Enable SMP/nAMP mode
-	ALT_SMP(mrc	p15, 0, r0, c1, c0, 1)
-	ALT_UP(mov	r0, r10)		@ fake it for UP
 	orr	r10, r10, r0			@ Set required bits
-	teq	r10, r0				@ Were they already set?
-	mcrne	p15, 0, r10, c1, c0, 1		@ No, update register
-#endif
+	mcr	p15, 0, r10, c1, c0, 1		@ No, update register
 	b	__v7_setup_cont
 
 /*
Signature · 9 lines
-- 
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#15 lore raw
In reply to Russell King - ARM Linux
Quoted 9 lines · Russell King - ARM Linux

As a result of a recent bug report, it has been found that certain CPUs must always have SMP mode enabled in order for the caches to work.

Remove the conditional on setting the SMP bit(s).

---
This needs to be tested on:

Quoted 8 lines

- Cortex A5MP
- Cortex A9MP
- Cortex R7MP
- Cortex A7MP
- Cortex A12MP
- Cortex A15MP
- Cortex A17MP
- Brahma B15

Sorry just saw this, what kind of test do you want me to run on B15? Should I build a !SMP kernel, or force a SMP kernel with maxcpus=1?

Quoted 36 lines

and any other CPU that mis-identifies itself with a MP-capable CPUID signature that might match one of those CPUs. I'm aware of a Cortex A9 CPU out there that does mis-identify itself as SMP capable but isn't:

@ Core indicates it is SMP. Check for Aegis SOC where a single @ Cortex-A9 CPU is present but SMP operations fault.

This will also need testing.

 arch/arm/mm/proc-v7.S | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
arch/arm/mm/proc-v7.S +2 -6
index 01d64c0b2563..4d48a4cf563b 100644
@@ -286,14 +286,10 @@ ENDPROC(cpu_pj4b_do_resume)
 	stmia	r12, {r1-r6, lr}		@ v7_invalidate_l1 touches r0-r6
 	bl      v7_invalidate_l1
 	ldmia	r12, {r1-r6, lr}
-#ifdef CONFIG_SMP
+	mrc	p15, 0, r0, c1, c0, 1
 	orr	r10, r10, #(1 << 6)		@ Enable SMP/nAMP mode
-	ALT_SMP(mrc	p15, 0, r0, c1, c0, 1)
-	ALT_UP(mov	r0, r10)		@ fake it for UP
 	orr	r10, r10, r0			@ Set required bits
-	teq	r10, r0				@ Were they already set?
-	mcrne	p15, 0, r10, c1, c0, 1		@ No, update register
-#endif
+	mcr	p15, 0, r10, c1, c0, 1		@ No, update register
 	b	__v7_setup_cont
 
 /*
Signature · 1 line
Florian
author maintainer
#16 lore raw
Quoted 19 lines · Florian Fainelli
Quoted 9 lines · Russell King - ARM Linux

As a result of a recent bug report, it has been found that certain CPUs must always have SMP mode enabled in order for the caches to work.

Remove the conditional on setting the SMP bit(s).

---
This needs to be tested on:

Quoted 8 lines

- Cortex A5MP
- Cortex A9MP
- Cortex R7MP
- Cortex A7MP
- Cortex A12MP
- Cortex A15MP
- Cortex A17MP
- Brahma B15

Quoted 2 lines

Sorry just saw this, what kind of test do you want me to run on B15? Should I build a !SMP kernel, or force a SMP kernel with maxcpus=1?

What I'm after is testing on any single-core systems with these SMP capable cores. If the core never appears in a single-core configuration, then please let me know so it can be crossed off the list.

With the bug that crept in fixed (as pointed out by Tony) there is no difference for kernels built with SMP enabled and detected as a SMP capable CPU.

Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
#17 lore raw
Quoted 23 lines · Russell King - ARM Linux
Quoted 19 lines · Florian Fainelli
Quoted 9 lines · Russell King - ARM Linux

As a result of a recent bug report, it has been found that certain CPUs must always have SMP mode enabled in order for the caches to work.

Remove the conditional on setting the SMP bit(s).

---
This needs to be tested on:

Quoted 8 lines

- Cortex A5MP
- Cortex A9MP
- Cortex R7MP
- Cortex A7MP
- Cortex A12MP
- Cortex A15MP
- Cortex A17MP
- Brahma B15

Quoted 2 lines

Sorry just saw this, what kind of test do you want me to run on B15? Should I build a !SMP kernel, or force a SMP kernel with maxcpus=1?

Quoted 7 lines

What I'm after is testing on any single-core systems with these SMP capable cores. If the core never appears in a single-core configuration, then please let me know so it can be crossed off the list.

With the bug that crept in fixed (as pointed out by Tony) there is no difference for kernels built with SMP enabled and detected as a SMP capable CPU.

At least am437x needs to be tested as it's UP with some quirks.

Regards,

Tony

#18 lore raw
In reply to Russell King - ARM Linux
Quoted 20 lines · Russell King - ARM Linux
Quoted 19 lines · Florian Fainelli
Quoted 17 lines · Russell King - ARM Linux

As a result of a recent bug report, it has been found that certain CPUs must always have SMP mode enabled in order for the caches to work.

Remove the conditional on setting the SMP bit(s).

---
This needs to be tested on:

- Cortex A5MP
- Cortex A9MP
- Cortex R7MP
- Cortex A7MP
- Cortex A12MP
- Cortex A15MP
- Cortex A17MP
- Brahma B15

Quoted 6 lines
Quoted 2 lines

Sorry just saw this, what kind of test do you want me to run on B15? Should I build a !SMP kernel, or force a SMP kernel with maxcpus=1?

What I'm after is testing on any single-core systems with these SMP capable cores. If the core never appears in a single-core configuration, then please let me know so it can be crossed off the list.

We have chips like the 7250 that are single core, and we do run a CONFIG_SMP kernel on this guy as well. Feel free to add:

on 7250 (single core), 7445 (core core) and 7278 (quad core Brahma B53 in 32-bit mode) as well. If you are curious about what we report, B15 report:

7250, 7445: CPU: ARMv7 Processor [420f00f3] revision 3 (ARMv7), cr=30c5387d 7278: CPU: ARMv7 Processor [420f1000] revision 0 (ARMv7), cr=30c5383d

Quoted 5 lines

With the bug that crept in fixed (as pointed out by Tony) there is no difference for kernels built with SMP enabled and detected as a SMP capable CPU.

Got it, thanks!

Signature · 1 line
Florian