Skip to contentSkip to conversation

ARM: mach-orion5x: fix legacy get_irqnr_and_base

PATCH New Nicolas Pitre 3 participants 9 messages Nov 23, 2015 – Nov 25, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: mach-orion5x: fix legacy get_irqnr_and_base

Commit 5be9fc23cd ("ARM: orion5x: fix legacy orion5x IRQ numbers") shifted IRQ numbers by one but didn't update the get_irqnr_and_base macro accordingly. This macro is involved when CONFIG_MULTI_IRQ_HANDLER is not defined.

arch/arm/mach-orion5x/include/mach/entry-macro.S +1 -1
index 79eb502a1e..73919a36b5 100644
@@ -21,5 +21,5 @@
 	@ find cause bits that are unmasked
 	ands	\irqstat, \irqstat, \tmp	@ clear Z flag if any
 	clzne	\irqnr,	\irqstat		@ calc irqnr
-	rsbne	\irqnr, \irqnr, #31
+	rsbne	\irqnr, \irqnr, #32
 	.endm
Applied
#1 lore raw

PATCH 1/1 ARM: mach-orion5x: fix legacy get_irqnr_and_base

Quoted 6 lines · Nicolas Pitre

Commit 5be9fc23cd ("ARM: orion5x: fix legacy orion5x IRQ numbers") shifted IRQ numbers by one but didn't update the get_irqnr_and_base macro accordingly. This macro is involved when CONFIG_MULTI_IRQ_HANDLER is not defined.

Applied to mvebu/fixes with minor tweak to the subject line and Cc's to stable back to v4.2.

thx,

Jason.

#2 lore raw

PATCH 1/1 ARM: mach-orion5x: fix legacy get_irqnr_and_base

Quoted 10 lines · Jason Cooper
Quoted 6 lines · Nicolas Pitre

Commit 5be9fc23cd ("ARM: orion5x: fix legacy orion5x IRQ numbers") shifted IRQ numbers by one but didn't update the get_irqnr_and_base macro accordingly. This macro is involved when CONFIG_MULTI_IRQ_HANDLER is not defined.

Applied to mvebu/fixes with minor tweak to the subject line and Cc's to stable back to v4.2.

Note that the patch this provides a fix for was introduced in v4.2, but it itself was marked for stable. So if commit 5be9fc23cd was backported back to v3.18 then this patch should also be backported to the same stable versions.

Same thing for the Dove variant.

Nicolas

#3 lore raw

PATCH 1/1 ARM: mach-orion5x: fix legacy get_irqnr_and_base

Quoted 13 lines · Nicolas Pitre
Quoted 10 lines · Jason Cooper
Quoted 6 lines · Nicolas Pitre

Commit 5be9fc23cd ("ARM: orion5x: fix legacy orion5x IRQ numbers") shifted IRQ numbers by one but didn't update the get_irqnr_and_base macro accordingly. This macro is involved when CONFIG_MULTI_IRQ_HANDLER is not defined.

Applied to mvebu/fixes with minor tweak to the subject line and Cc's to stable back to v4.2.

Quoted 6 lines

Note that the patch this provides a fix for was introduced in v4.2, but it itself was marked for stable. So if commit 5be9fc23cd was backported back to v3.18 then this patch should also be backported to the same stable versions.

Same thing for the Dove variant.

Crap. Nice catch. I'll update *before* pushing. :)

thx,

Jason.

#4 lore raw

PATCH 1/1 ARM: mach-orion5x: fix legacy get_irqnr_and_base

Quoted 14 lines · Jason Cooper
Quoted 13 lines · Nicolas Pitre
Quoted 10 lines · Jason Cooper
Quoted 6 lines · Nicolas Pitre

Commit 5be9fc23cd ("ARM: orion5x: fix legacy orion5x IRQ numbers") shifted IRQ numbers by one but didn't update the get_irqnr_and_base macro accordingly. This macro is involved when CONFIG_MULTI_IRQ_HANDLER is not defined.

Applied to mvebu/fixes with minor tweak to the subject line and Cc's to stable back to v4.2.

Quoted 8 lines
Quoted 6 lines

Note that the patch this provides a fix for was introduced in v4.2, but it itself was marked for stable. So if commit 5be9fc23cd was backported back to v3.18 then this patch should also be backported to the same stable versions.

Same thing for the Dove variant.

Crap. Nice catch. I'll update *before* pushing. :)

BTW, mv78xx0 is still broken wrt this IRQ #0 usage. Is it possible that no one uses it? It is a weird not-completely-SMP architecture that lacks cache coherency support between CPU cores. To fully use both cores, we'd need to have two independent Linux instances with memory partitioning and this was never implemented. I'm unaware of any product using Linux on that SOC either. My own mv78xx0 dev board took the way of the recycling facility a while ago given the lack of interest.

Should we "fix" it by removing it outright?

Nicolas

maintainer
#5 lore raw

PATCH 1/1 ARM: mach-orion5x: fix legacy get_irqnr_and_base

Quoted 9 lines

BTW, mv78xx0 is still broken wrt this IRQ #0 usage. Is it possible that no one uses it? It is a weird not-completely-SMP architecture that lacks cache coherency support between CPU cores. To fully use both cores, we'd need to have two independent Linux instances with memory partitioning and this was never implemented. I'm unaware of any product using Linux on that SOC either. My own mv78xx0 dev board took the way of the recycling facility a while ago given the lack of interest.

Should we "fix" it by removing it outright?

I think it was at the Edinburgh kernel summit/ELCE i met somebody still using it. If i remember correctly, Linux on one core, and something else on the other. That was two years ago. I've not heard anything since.

Andrew

#6 lore raw

PATCH 1/1 ARM: mach-orion5x: fix legacy get_irqnr_and_base

Quoted 8 lines · Andrew Lunn
Quoted 8 lines

BTW, mv78xx0 is still broken wrt this IRQ #0 usage. Is it possible that no one uses it? It is a weird not-completely-SMP architecture that lacks cache coherency support between CPU cores. To fully use both cores, we'd need to have two independent Linux instances with memory partitioning and this was never implemented. I'm unaware of any product using Linux on that SOC either. My own mv78xx0 dev board took the way of the recycling facility a while ago given the lack of interest.

Quoted 6 lines
Quoted 1 line

Should we "fix" it by removing it outright?

I think it was at the Edinburgh kernel summit/ELCE i met somebody still using it. If i remember correctly, Linux on one core, and something else on the other. That was two years ago. I've not heard anything since.

Any chance that somebody would still be interested in running latest mainline on it?

The alternative is to remove it and see if someone complains. Bringing it back would be just one git revert away.

Nicolas

#7 lore raw

PATCH 1/1 ARM: mach-orion5x: fix legacy get_irqnr_and_base

In reply to Nicolas Pitre

On Wed, Nov 25, 2015 at 10:38:03AM -0500, Nicolas Pitre wrote:
...

Quoted 9 lines

BTW, mv78xx0 is still broken wrt this IRQ #0 usage. Is it possible that no one uses it? It is a weird not-completely-SMP architecture that lacks cache coherency support between CPU cores. To fully use both cores, we'd need to have two independent Linux instances with memory partitioning and this was never implemented. I'm unaware of any product using Linux on that SOC either. My own mv78xx0 dev board took the way of the recycling facility a while ago given the lack of interest.

Should we "fix" it by removing it outright?

The only users I know of were Debian. They had their ARM build servers running on some. They have since been upgraded thanks to kind donations. :-)

thx,

Jason.

#8 lore raw

PATCH 1/1 ARM: mach-orion5x: fix legacy get_irqnr_and_base

Quoted 10 lines · Jason Cooper

On Wed, Nov 25, 2015 at 10:38:03AM -0500, Nicolas Pitre wrote:
...

Quoted 8 lines

BTW, mv78xx0 is still broken wrt this IRQ #0 usage. Is it possible that no one uses it? It is a weird not-completely-SMP architecture that lacks cache coherency support between CPU cores. To fully use both cores, we'd need to have two independent Linux instances with memory partitioning and this was never implemented. I'm unaware of any product using Linux on that SOC either. My own mv78xx0 dev board took the way of the recycling facility a while ago given the lack of interest.

Quoted 5 lines
Quoted 1 line

Should we "fix" it by removing it outright?

The only users I know of were Debian. They had their ARM build servers running on some. They have since been upgraded thanks to kind donations. :-)

I can tell you that those mv78xx0 build servers were also donations. The same type of board I retired from my desk.

Nicolas