mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] MIPS: smp-mt: enable all hardware interrupts on second VPE
@ 2021-06-06 18:15 Aleksander Jan Bajkowski
  2021-06-06 18:15 ` [RFC PATCH 1/1] " Aleksander Jan Bajkowski
  0 siblings, 1 reply; 2+ messages in thread
From: Aleksander Jan Bajkowski @ 2021-06-06 18:15 UTC (permalink / raw)
  To: tsbogend, olek2, linux-mips, linux-kernel; +Cc: Aleksander Jan Bajkowski

From: Aleksander Jan Bajkowski <A.Bajkowski@stud.elka.pw.edu.pl>

This patch is marked as RFC because I'm not sure if it's a good place
to put this code.

This patch is needed to handle interrupts by the second VPE on Lantiq.
It seems the Lantiq SoC is using all the hardware interrupt lines.
Currently changing smp_affinity to the second VPE hangs interrupts.

Tested on lantiq xRX200 and xRX330 (MIPS 34Kc core).

Aleksander Jan Bajkowski (1):
  MIPS: smp-mt: enable all hardware interrupts on second VPE

 arch/mips/kernel/smp-mt.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

-- 
2.30.2


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

* [RFC PATCH 1/1] MIPS: smp-mt: enable all hardware interrupts on second VPE
  2021-06-06 18:15 [RFC PATCH 0/1] MIPS: smp-mt: enable all hardware interrupts on second VPE Aleksander Jan Bajkowski
@ 2021-06-06 18:15 ` Aleksander Jan Bajkowski
  0 siblings, 0 replies; 2+ messages in thread
From: Aleksander Jan Bajkowski @ 2021-06-06 18:15 UTC (permalink / raw)
  To: tsbogend, olek2, linux-mips, linux-kernel

This patch is needed to handle interrupts by the second VPE on Lantiq.
It seems the Lantiq SoC is using all the hardware interrupt lines.
Currently changing smp_affinity to the second VPE hangs interrupts.

Tested on lantiq xRX200 and xRX330 (MIPS 34Kc core).

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
---
 arch/mips/kernel/smp-mt.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/mips/kernel/smp-mt.c b/arch/mips/kernel/smp-mt.c
index 5f04a0141068..f21cd0eb1fa7 100644
--- a/arch/mips/kernel/smp-mt.c
+++ b/arch/mips/kernel/smp-mt.c
@@ -113,8 +113,7 @@ static void vsmp_init_secondary(void)
 					 STATUSF_IP4 | STATUSF_IP5 |
 					 STATUSF_IP6 | STATUSF_IP7);
 	else
-		change_c0_status(ST0_IM, STATUSF_IP0 | STATUSF_IP1 |
-					 STATUSF_IP6 | STATUSF_IP7);
+		set_c0_status(ST0_IM);
 }
 
 static void vsmp_smp_finish(void)
-- 
2.30.2


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

end of thread, other threads:[~2021-06-06 18:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-06 18:15 [RFC PATCH 0/1] MIPS: smp-mt: enable all hardware interrupts on second VPE Aleksander Jan Bajkowski
2021-06-06 18:15 ` [RFC PATCH 1/1] " Aleksander Jan Bajkowski

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

all inboxes | Powered by JetHome®