All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] MIPS: Netlogic: Fixes for 3.6
@ 2012-08-14 13:26 Jayachandran C
  2012-08-14 13:26 ` [PATCH 1/2] MIPS: Netlogic: define cpu_has_fpu macro Jayachandran C
  2012-08-14 13:26 ` [PATCH 2/2] MIPS: Synchronize MIPS count one CPU at a time Jayachandran C
  0 siblings, 2 replies; 8+ messages in thread
From: Jayachandran C @ 2012-08-14 13:26 UTC (permalink / raw)
  To: linux-mips, ralf; +Cc: Jayachandran C

Two patches for Netlogic processors for 3.6, the second patch is critical
and fixes a hang on boot in 3.6, and the first patch is optional and fixes
a BUG() when preempt is enabled.

I had send these two separately earlier today, but the patches had a
mixture of netlogic and broadcom mail addresses.

JC.

Jayachandran C (2):
  MIPS: Netlogic: define cpu_has_fpu macro
  MIPS: Synchronize MIPS count one CPU at a time

 .../asm/mach-netlogic/cpu-feature-overrides.h      |    2 ++
 arch/mips/include/asm/r4k-timer.h                  |    8 +++---
 arch/mips/kernel/smp.c                             |    4 +--
 arch/mips/kernel/sync-r4k.c                        |   26 +++++++++-----------
 4 files changed, 19 insertions(+), 21 deletions(-)

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH 1/2] MIPS: Netlogic: define cpu_has_fpu macro
@ 2012-08-14 11:30 Jayachandran C
  2012-08-14 11:30 ` [PATCH 2/2] MIPS: Synchronize MIPS count one CPU at a time Jayachandran C
  0 siblings, 1 reply; 8+ messages in thread
From: Jayachandran C @ 2012-08-14 11:30 UTC (permalink / raw)
  To: linux-mips, ralf; +Cc: Jayachandran C, Jayachandran C

From: Jayachandran C <jayachandranc@netlogicmicro.com>

The default implementation of 'cpu_has_fpu' macro uses calls
smp_processor_id() which causes this warning when preemption
is enabled:

[    4.664000] Algorithmics/MIPS FPU Emulator v1.5
[    4.676000] BUG: using smp_processor_id() in preemptible [00000000] code: init/1
[    4.700000] caller is fpu_emulator_cop1Handler+0x434/0x27b8

Work around this by defining cpu_has_fpu for XLR and XLP in
mach-netlogic/cpu-feature-overrides.h

Signed-off-by: Jayachandran C <jchandra@broadcom.com>
---
 .../asm/mach-netlogic/cpu-feature-overrides.h      |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/mips/include/asm/mach-netlogic/cpu-feature-overrides.h b/arch/mips/include/asm/mach-netlogic/cpu-feature-overrides.h
index 966db4b..4f5907f 100644
--- a/arch/mips/include/asm/mach-netlogic/cpu-feature-overrides.h
+++ b/arch/mips/include/asm/mach-netlogic/cpu-feature-overrides.h
@@ -44,10 +44,12 @@
 #define cpu_has_dc_aliases	0
 #define cpu_has_mips32r2	0
 #define cpu_has_mips64r2	0
+#define cpu_has_fpu		0
 #elif defined(CONFIG_CPU_XLP)
 #define cpu_has_userlocal	1
 #define cpu_has_mips32r2	1
 #define cpu_has_mips64r2	1
+#define cpu_has_fpu		1
 #else
 #error "Unknown Netlogic CPU"
 #endif
-- 
1.7.9.5

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

end of thread, other threads:[~2012-08-15 17:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-14 13:26 [PATCH 0/2] MIPS: Netlogic: Fixes for 3.6 Jayachandran C
2012-08-14 13:26 ` [PATCH 1/2] MIPS: Netlogic: define cpu_has_fpu macro Jayachandran C
2012-08-14 13:38   ` Ralf Baechle
2012-08-14 16:03     ` [PATCH] MIPS: Fix for warning from FPU emulation code Jayachandran C
2012-08-15 17:42       ` Ralf Baechle
2012-08-14 13:26 ` [PATCH 2/2] MIPS: Synchronize MIPS count one CPU at a time Jayachandran C
2012-08-15 10:41   ` Ralf Baechle
  -- strict thread matches above, loose matches on Subject: below --
2012-08-14 11:30 [PATCH 1/2] MIPS: Netlogic: define cpu_has_fpu macro Jayachandran C
2012-08-14 11:30 ` [PATCH 2/2] MIPS: Synchronize MIPS count one CPU at a time Jayachandran C

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.