public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] ARM: mach-orion5x: fix legacy get_irqnr_and_base
@ 2015-11-23  3:44 Nicolas Pitre
  2015-11-25 14:45 ` Jason Cooper
  0 siblings, 1 reply; 9+ messages in thread
From: Nicolas Pitre @ 2015-11-23  3:44 UTC (permalink / raw)
  To: linux-arm-kernel

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.

Signed-off-by: Nicolas Pitre <nico@linaro.org>

diff --git a/arch/arm/mach-orion5x/include/mach/entry-macro.S b/arch/arm/mach-orion5x/include/mach/entry-macro.S
index 79eb502a1e..73919a36b5 100644
--- a/arch/arm/mach-orion5x/include/mach/entry-macro.S
+++ b/arch/arm/mach-orion5x/include/mach/entry-macro.S
@@ -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

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH] ARM: mach-orion5x: fix legacy get_irqnr_and_base
  2015-11-23  3:44 [PATCH] ARM: mach-orion5x: fix legacy get_irqnr_and_base Nicolas Pitre
@ 2015-11-25 14:45 ` Jason Cooper
  2015-11-25 14:54   ` Nicolas Pitre
  0 siblings, 1 reply; 9+ messages in thread
From: Jason Cooper @ 2015-11-25 14:45 UTC (permalink / raw)
  To: linux-arm-kernel

On Sun, Nov 22, 2015 at 10:44:19PM -0500, Nicolas Pitre wrote:
> 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.
> 
> Signed-off-by: Nicolas Pitre <nico@linaro.org>

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

thx,

Jason.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] ARM: mach-orion5x: fix legacy get_irqnr_and_base
  2015-11-25 14:45 ` Jason Cooper
@ 2015-11-25 14:54   ` Nicolas Pitre
  2015-11-25 14:55     ` Jason Cooper
  0 siblings, 1 reply; 9+ messages in thread
From: Nicolas Pitre @ 2015-11-25 14:54 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, 25 Nov 2015, Jason Cooper wrote:

> On Sun, Nov 22, 2015 at 10:44:19PM -0500, Nicolas Pitre wrote:
> > 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.
> > 
> > Signed-off-by: Nicolas Pitre <nico@linaro.org>
> 
> 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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] ARM: mach-orion5x: fix legacy get_irqnr_and_base
  2015-11-25 14:54   ` Nicolas Pitre
@ 2015-11-25 14:55     ` Jason Cooper
  2015-11-25 15:38       ` Nicolas Pitre
  0 siblings, 1 reply; 9+ messages in thread
From: Jason Cooper @ 2015-11-25 14:55 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Nov 25, 2015 at 09:54:05AM -0500, Nicolas Pitre wrote:
> On Wed, 25 Nov 2015, Jason Cooper wrote:
> 
> > On Sun, Nov 22, 2015 at 10:44:19PM -0500, Nicolas Pitre wrote:
> > > 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.
> > > 
> > > Signed-off-by: Nicolas Pitre <nico@linaro.org>
> > 
> > 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.

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

thx,

Jason.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] ARM: mach-orion5x: fix legacy get_irqnr_and_base
  2015-11-25 14:55     ` Jason Cooper
@ 2015-11-25 15:38       ` Nicolas Pitre
  2015-11-25 15:43         ` Andrew Lunn
  2015-11-25 15:45         ` Jason Cooper
  0 siblings, 2 replies; 9+ messages in thread
From: Nicolas Pitre @ 2015-11-25 15:38 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, 25 Nov 2015, Jason Cooper wrote:

> On Wed, Nov 25, 2015 at 09:54:05AM -0500, Nicolas Pitre wrote:
> > On Wed, 25 Nov 2015, Jason Cooper wrote:
> > 
> > > On Sun, Nov 22, 2015 at 10:44:19PM -0500, Nicolas Pitre wrote:
> > > > 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.
> > > > 
> > > > Signed-off-by: Nicolas Pitre <nico@linaro.org>
> > > 
> > > 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.
> 
> 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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] ARM: mach-orion5x: fix legacy get_irqnr_and_base
  2015-11-25 15:38       ` Nicolas Pitre
@ 2015-11-25 15:43         ` Andrew Lunn
  2015-11-25 15:58           ` Nicolas Pitre
  2015-11-25 15:45         ` Jason Cooper
  1 sibling, 1 reply; 9+ messages in thread
From: Andrew Lunn @ 2015-11-25 15:43 UTC (permalink / raw)
  To: linux-arm-kernel

> 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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] ARM: mach-orion5x: fix legacy get_irqnr_and_base
  2015-11-25 15:38       ` Nicolas Pitre
  2015-11-25 15:43         ` Andrew Lunn
@ 2015-11-25 15:45         ` Jason Cooper
  2015-11-25 15:51           ` Nicolas Pitre
  1 sibling, 1 reply; 9+ messages in thread
From: Jason Cooper @ 2015-11-25 15:45 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Nov 25, 2015 at 10:38:03AM -0500, Nicolas Pitre wrote:
...
> 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.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] ARM: mach-orion5x: fix legacy get_irqnr_and_base
  2015-11-25 15:45         ` Jason Cooper
@ 2015-11-25 15:51           ` Nicolas Pitre
  0 siblings, 0 replies; 9+ messages in thread
From: Nicolas Pitre @ 2015-11-25 15:51 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, 25 Nov 2015, Jason Cooper wrote:

> On Wed, Nov 25, 2015 at 10:38:03AM -0500, Nicolas Pitre wrote:
> ...
> > 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.  :-)

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


Nicolas

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] ARM: mach-orion5x: fix legacy get_irqnr_and_base
  2015-11-25 15:43         ` Andrew Lunn
@ 2015-11-25 15:58           ` Nicolas Pitre
  0 siblings, 0 replies; 9+ messages in thread
From: Nicolas Pitre @ 2015-11-25 15:58 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, 25 Nov 2015, Andrew Lunn wrote:

> > 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.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-11-25 15:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-23  3:44 [PATCH] ARM: mach-orion5x: fix legacy get_irqnr_and_base Nicolas Pitre
2015-11-25 14:45 ` Jason Cooper
2015-11-25 14:54   ` Nicolas Pitre
2015-11-25 14:55     ` Jason Cooper
2015-11-25 15:38       ` Nicolas Pitre
2015-11-25 15:43         ` Andrew Lunn
2015-11-25 15:58           ` Nicolas Pitre
2015-11-25 15:45         ` Jason Cooper
2015-11-25 15:51           ` Nicolas Pitre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox