MIPS: Netlogic: XLR/XLS updates
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
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
@@ -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
Ralf Baechle
AppliedRe: [PATCH 1/4] MIPS: Netlogic: Change load address
Queued for 3.2. Thanks,
Ralf
PATCH 2/4 MIPS: Netlogic: add r4k_wait as the cpu_wait
In reply to Jayachandran CUse 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
@@ -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
Ralf Baechle
AppliedRe: [PATCH 2/4] MIPS: Netlogic: add r4k_wait as the cpu_wait
Queued for 3.2. Thanks,
Ralf
PATCH 3/4 MIPS: Netlogic: Avoid unnecessary cache flushes
In reply to Jayachandran CXLR 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
@@ -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
Ralf Baechle
AppliedRe: [PATCH 3/4] MIPS: Netlogic: Avoid unnecessary cache flushes
Queued for 3.2. Thanks,
Ralf
PATCH 4/4 MIPS: Netlogic: Add basic MSI support for XLR/XLS
In reply to Jayachandran CAdd 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
@@ -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
@@ -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)
Ralf Baechle
AppliedRe: [PATCH 4/4] MIPS: Netlogic: Add basic MSI support for XLR/XLS
Queued for 3.2. Thanks,
Ralf