Skip to contentSkip to conversation

MIPS: Netlogic: XLR/XLS updates

PATCH Applied Jayachandran C 3 participants 9 messages Aug 23, 2011 MIPS

lore
Share & tools
lore
#0 lore raw

cover MIPS: Netlogic: XLR/XLS updates

I had posted 3 of these changes as a single patch earlier, but here I have split them up to different patches.

There is also a new patch to add very basic PCI MSI support on XLR and XLS.

Ganesan Ramalingam (1):
MIPS: Netlogic: Add basic MSI support for XLR/XLS

Jayachandran C (3):
MIPS: Netlogic: Change load address
MIPS: Netlogic: add r4k_wait as the cpu_wait
MIPS: Netlogic: Avoid unnecessary cache flushes

 arch/mips/Kconfig                                  |    1 +
 .../asm/mach-netlogic/cpu-feature-overrides.h      |    5 +-
 arch/mips/include/asm/netlogic/xlr/msidef.h        |   84 ++++++++++++++++++++
 arch/mips/kernel/cpu-probe.c                       |    1 +
 arch/mips/netlogic/Platform                        |    2 +-
 arch/mips/netlogic/xlr/irq.c                       |    5 +
 arch/mips/pci/pci-xlr.c                            |   51 ++++++++++++-
 7 files changed, 144 insertions(+), 5 deletions(-)
 create mode 100644 arch/mips/include/asm/netlogic/xlr/msidef.h
Signature · 1 line
1.7.4.1
#1 lore raw

PATCH 1/4 MIPS: Netlogic: Change load address

Move load address from 0x84000000 to 0x80100000 to avoid wasting memory.

---
 arch/mips/netlogic/Platform |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/mips/netlogic/Platform +1 -1
index b648b48..502d912 100644
@@ -13,4 +13,4 @@ cflags-$(CONFIG_NLM_XLR)	+= $(call cc-option,-march=xlr,-march=mips64)
 # NETLOGIC XLR/XLS SoC, Simulator and boards
 #
 core-$(CONFIG_NLM_XLR)	      += arch/mips/netlogic/xlr/
-load-$(CONFIG_NLM_XLR_BOARD)  += 0xffffffff84000000
+load-$(CONFIG_NLM_XLR_BOARD)  += 0xffffffff80100000
Signature · 1 line
1.7.4.1
Applied
#2 lore raw

Re: [PATCH 1/4] MIPS: Netlogic: Change load address

Queued for 3.2. Thanks,

Ralf

#3 lore raw

PATCH 2/4 MIPS: Netlogic: add r4k_wait as the cpu_wait

In reply to Jayachandran C

Use r4k_wait as the CPU wait function for XLR/XLS processors.

---
 arch/mips/kernel/cpu-probe.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/mips/kernel/cpu-probe.c +1 -0
index ebc0cd2..664bc13 100644
@@ -190,6 +190,7 @@ void __init check_wait(void)
 	case CPU_CAVIUM_OCTEON_PLUS:
 	case CPU_CAVIUM_OCTEON2:
 	case CPU_JZRISC:
+	case CPU_XLR:
 		cpu_wait = r4k_wait;
 		break;
 
Signature · 1 line
1.7.4.1
Applied
#4 lore raw

Re: [PATCH 2/4] MIPS: Netlogic: add r4k_wait as the cpu_wait

Queued for 3.2. Thanks,

Ralf

#5 lore raw

PATCH 3/4 MIPS: Netlogic: Avoid unnecessary cache flushes

In reply to Jayachandran C

XLR dcache is fully coherent across CPUs, so avoid unnecessary dcache flushes.

---
 .../asm/mach-netlogic/cpu-feature-overrides.h      |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
arch/mips/include/asm/mach-netlogic/cpu-feature-overrides.h +2 -3
index 3b72827..3780743 100644
@@ -25,13 +25,12 @@
 #define cpu_has_llsc		1
 #define cpu_has_vtag_icache	0
 #define cpu_has_dc_aliases	0
-#define cpu_has_ic_fills_f_dc	0
+#define cpu_has_ic_fills_f_dc	1
 #define cpu_has_dsp		0
 #define cpu_has_mipsmt		0
 #define cpu_has_userlocal	0
-#define cpu_icache_snoops_remote_store	0
+#define cpu_icache_snoops_remote_store	1
 
-#define cpu_has_nofpuex		0
 #define cpu_has_64bits		1
 
 #define cpu_has_mips32r1	1
Signature · 1 line
1.7.4.1
Applied
#6 lore raw

Re: [PATCH 3/4] MIPS: Netlogic: Avoid unnecessary cache flushes

Queued for 3.2. Thanks,

Ralf

#7 lore raw

PATCH 4/4 MIPS: Netlogic: Add basic MSI support for XLR/XLS

In reply to Jayachandran C

Add basic support for MSI.

---
 arch/mips/Kconfig                           |    1 +
 arch/mips/include/asm/netlogic/xlr/msidef.h |   84 +++++++++++++++++++++++++++
 arch/mips/netlogic/xlr/irq.c                |    5 ++
 arch/mips/pci/pci-xlr.c                     |   51 ++++++++++++++++-
 4 files changed, 140 insertions(+), 1 deletions(-)
 create mode 100644 arch/mips/include/asm/netlogic/xlr/msidef.h
arch/mips/Kconfig +1 -0
index b122adc..2bb1c85 100644
@@ -780,6 +780,7 @@ config NLM_XLR_BOARD
 	select CEVT_R4K
 	select CSRC_R4K
 	select IRQ_CPU
+	select ARCH_SUPPORTS_MSI
 	select ZONE_DMA if 64BIT
 	select SYNC_R4K
 	select SYS_HAS_EARLY_PRINTK
arch/mips/include/asm/netlogic/xlr/msidef.h new file +84 -0

84 lines not on this page · raw message

arch/mips/netlogic/xlr/irq.c +5 -0
index 521bb73..fc822c8 100644
@@ -38,9 +38,14 @@
 #include <linux/interrupt.h>
 #include <linux/spinlock.h>
 #include <linux/mm.h>
+#include <linux/msi.h>
+#include <linux/irq.h>
+#include <linux/irqdesc.h>
+#include <linux/pci.h>
 
 #include <asm/mipsregs.h>
 
+#include <asm/netlogic/xlr/msidef.h>
 #include <asm/netlogic/xlr/iomap.h>
 #include <asm/netlogic/xlr/pic.h>
 #include <asm/netlogic/xlr/xlr.h>
arch/mips/pci/pci-xlr.c +50 -1

75 lines not on this page · raw message

Signature · 7 lines
1.7.4.1


-- 
Jayachandran C.
[email protected]                  (Netlogic Microsystems)
[email protected]                               (The FreeBSD Project)
Applied
#8 lore raw

Re: [PATCH 4/4] MIPS: Netlogic: Add basic MSI support for XLR/XLS

Queued for 3.2. Thanks,

Ralf