diff options
| -rw-r--r-- | arch/mips/bcm47xx/Kconfig | 3 | ||||
| -rw-r--r-- | arch/mips/cavium-octeon/executive/cvmx-l2c.c | 9 | ||||
| -rw-r--r-- | arch/mips/include/asm/dsp.h | 2 | ||||
| -rw-r--r-- | arch/mips/include/asm/inst.h | 1 | ||||
| -rw-r--r-- | arch/mips/include/asm/mach-pnx833x/war.h | 2 | ||||
| -rw-r--r-- | arch/mips/include/asm/pgtable-64.h | 1 | ||||
| -rw-r--r-- | arch/mips/include/uapi/asm/Kbuild | 1 | ||||
| -rw-r--r-- | arch/mips/include/uapi/asm/break.h (renamed from arch/mips/include/asm/break.h) | 0 | ||||
| -rw-r--r-- | arch/mips/kernel/ftrace.c | 36 | ||||
| -rw-r--r-- | arch/mips/kernel/mcount.S | 7 | ||||
| -rw-r--r-- | arch/mips/kernel/vpe.c | 2 | ||||
| -rw-r--r-- | arch/mips/lantiq/irq.c | 2 | ||||
| -rw-r--r-- | arch/mips/lib/delay.c | 2 | ||||
| -rw-r--r-- | arch/mips/mm/ioremap.c | 6 | ||||
| -rw-r--r-- | arch/mips/mm/mmap.c | 6 | ||||
| -rw-r--r-- | arch/mips/netlogic/xlr/setup.c | 5 | ||||
| -rw-r--r-- | arch/mips/pci/pci-ar71xx.c | 2 | ||||
| -rw-r--r-- | arch/mips/pci/pci-ar724x.c | 2 |
18 files changed, 67 insertions, 22 deletions
diff --git a/arch/mips/bcm47xx/Kconfig b/arch/mips/bcm47xx/Kconfig index d7af29f1fcf0..ba611927749b 100644 --- a/arch/mips/bcm47xx/Kconfig +++ b/arch/mips/bcm47xx/Kconfig | |||
| @@ -8,8 +8,10 @@ config BCM47XX_SSB | |||
| 8 | select SSB_DRIVER_EXTIF | 8 | select SSB_DRIVER_EXTIF |
| 9 | select SSB_EMBEDDED | 9 | select SSB_EMBEDDED |
| 10 | select SSB_B43_PCI_BRIDGE if PCI | 10 | select SSB_B43_PCI_BRIDGE if PCI |
| 11 | select SSB_DRIVER_PCICORE if PCI | ||
| 11 | select SSB_PCICORE_HOSTMODE if PCI | 12 | select SSB_PCICORE_HOSTMODE if PCI |
| 12 | select SSB_DRIVER_GPIO | 13 | select SSB_DRIVER_GPIO |
| 14 | select GPIOLIB | ||
| 13 | default y | 15 | default y |
| 14 | help | 16 | help |
| 15 | Add support for old Broadcom BCM47xx boards with Sonics Silicon Backplane support. | 17 | Add support for old Broadcom BCM47xx boards with Sonics Silicon Backplane support. |
| @@ -25,6 +27,7 @@ config BCM47XX_BCMA | |||
| 25 | select BCMA_HOST_PCI if PCI | 27 | select BCMA_HOST_PCI if PCI |
| 26 | select BCMA_DRIVER_PCI_HOSTMODE if PCI | 28 | select BCMA_DRIVER_PCI_HOSTMODE if PCI |
| 27 | select BCMA_DRIVER_GPIO | 29 | select BCMA_DRIVER_GPIO |
| 30 | select GPIOLIB | ||
| 28 | default y | 31 | default y |
| 29 | help | 32 | help |
| 30 | Add support for new Broadcom BCM47xx boards with Broadcom specific Advanced Microcontroller Bus. | 33 | Add support for new Broadcom BCM47xx boards with Broadcom specific Advanced Microcontroller Bus. |
diff --git a/arch/mips/cavium-octeon/executive/cvmx-l2c.c b/arch/mips/cavium-octeon/executive/cvmx-l2c.c index 9f883bf76953..33b72144db31 100644 --- a/arch/mips/cavium-octeon/executive/cvmx-l2c.c +++ b/arch/mips/cavium-octeon/executive/cvmx-l2c.c | |||
| @@ -30,6 +30,7 @@ | |||
| 30 | * measurement, and debugging facilities. | 30 | * measurement, and debugging facilities. |
| 31 | */ | 31 | */ |
| 32 | 32 | ||
| 33 | #include <linux/compiler.h> | ||
| 33 | #include <linux/irqflags.h> | 34 | #include <linux/irqflags.h> |
| 34 | #include <asm/octeon/cvmx.h> | 35 | #include <asm/octeon/cvmx.h> |
| 35 | #include <asm/octeon/cvmx-l2c.h> | 36 | #include <asm/octeon/cvmx-l2c.h> |
| @@ -285,22 +286,22 @@ uint64_t cvmx_l2c_read_perf(uint32_t counter) | |||
| 285 | */ | 286 | */ |
| 286 | static void fault_in(uint64_t addr, int len) | 287 | static void fault_in(uint64_t addr, int len) |
| 287 | { | 288 | { |
| 288 | volatile char *ptr; | 289 | char *ptr; |
| 289 | volatile char dummy; | 290 | |
| 290 | /* | 291 | /* |
| 291 | * Adjust addr and length so we get all cache lines even for | 292 | * Adjust addr and length so we get all cache lines even for |
| 292 | * small ranges spanning two cache lines. | 293 | * small ranges spanning two cache lines. |
| 293 | */ | 294 | */ |
| 294 | len += addr & CVMX_CACHE_LINE_MASK; | 295 | len += addr & CVMX_CACHE_LINE_MASK; |
| 295 | addr &= ~CVMX_CACHE_LINE_MASK; | 296 | addr &= ~CVMX_CACHE_LINE_MASK; |
| 296 | ptr = (volatile char *)cvmx_phys_to_ptr(addr); | 297 | ptr = cvmx_phys_to_ptr(addr); |
| 297 | /* | 298 | /* |
| 298 | * Invalidate L1 cache to make sure all loads result in data | 299 | * Invalidate L1 cache to make sure all loads result in data |
| 299 | * being in L2. | 300 | * being in L2. |
| 300 | */ | 301 | */ |
| 301 | CVMX_DCACHE_INVALIDATE; | 302 | CVMX_DCACHE_INVALIDATE; |
| 302 | while (len > 0) { | 303 | while (len > 0) { |
| 303 | dummy += *ptr; | 304 | ACCESS_ONCE(*ptr); |
| 304 | len -= CVMX_CACHE_LINE_SIZE; | 305 | len -= CVMX_CACHE_LINE_SIZE; |
| 305 | ptr += CVMX_CACHE_LINE_SIZE; | 306 | ptr += CVMX_CACHE_LINE_SIZE; |
| 306 | } | 307 | } |
diff --git a/arch/mips/include/asm/dsp.h b/arch/mips/include/asm/dsp.h index e9bfc0813c72..7bfad0520e25 100644 --- a/arch/mips/include/asm/dsp.h +++ b/arch/mips/include/asm/dsp.h | |||
| @@ -16,7 +16,7 @@ | |||
| 16 | #include <asm/mipsregs.h> | 16 | #include <asm/mipsregs.h> |
| 17 | 17 | ||
| 18 | #define DSP_DEFAULT 0x00000000 | 18 | #define DSP_DEFAULT 0x00000000 |
| 19 | #define DSP_MASK 0x3ff | 19 | #define DSP_MASK 0x3f |
| 20 | 20 | ||
| 21 | #define __enable_dsp_hazard() \ | 21 | #define __enable_dsp_hazard() \ |
| 22 | do { \ | 22 | do { \ |
diff --git a/arch/mips/include/asm/inst.h b/arch/mips/include/asm/inst.h index ab84064283db..33c34adbecfa 100644 --- a/arch/mips/include/asm/inst.h +++ b/arch/mips/include/asm/inst.h | |||
| @@ -353,6 +353,7 @@ union mips_instruction { | |||
| 353 | struct u_format u_format; | 353 | struct u_format u_format; |
| 354 | struct c_format c_format; | 354 | struct c_format c_format; |
| 355 | struct r_format r_format; | 355 | struct r_format r_format; |
| 356 | struct p_format p_format; | ||
| 356 | struct f_format f_format; | 357 | struct f_format f_format; |
| 357 | struct ma_format ma_format; | 358 | struct ma_format ma_format; |
| 358 | struct b_format b_format; | 359 | struct b_format b_format; |
diff --git a/arch/mips/include/asm/mach-pnx833x/war.h b/arch/mips/include/asm/mach-pnx833x/war.h index edaa06d9d492..e410df4e1b3a 100644 --- a/arch/mips/include/asm/mach-pnx833x/war.h +++ b/arch/mips/include/asm/mach-pnx833x/war.h | |||
| @@ -21,4 +21,4 @@ | |||
| 21 | #define R10000_LLSC_WAR 0 | 21 | #define R10000_LLSC_WAR 0 |
| 22 | #define MIPS34K_MISSED_ITLB_WAR 0 | 22 | #define MIPS34K_MISSED_ITLB_WAR 0 |
| 23 | 23 | ||
| 24 | #endif /* __ASM_MIPS_MACH_PNX8550_WAR_H */ | 24 | #endif /* __ASM_MIPS_MACH_PNX833X_WAR_H */ |
diff --git a/arch/mips/include/asm/pgtable-64.h b/arch/mips/include/asm/pgtable-64.h index c63191055e69..013d5f781263 100644 --- a/arch/mips/include/asm/pgtable-64.h +++ b/arch/mips/include/asm/pgtable-64.h | |||
| @@ -230,6 +230,7 @@ static inline void pud_clear(pud_t *pudp) | |||
| 230 | #else | 230 | #else |
| 231 | #define pte_pfn(x) ((unsigned long)((x).pte >> _PFN_SHIFT)) | 231 | #define pte_pfn(x) ((unsigned long)((x).pte >> _PFN_SHIFT)) |
| 232 | #define pfn_pte(pfn, prot) __pte(((pfn) << _PFN_SHIFT) | pgprot_val(prot)) | 232 | #define pfn_pte(pfn, prot) __pte(((pfn) << _PFN_SHIFT) | pgprot_val(prot)) |
| 233 | #define pfn_pmd(pfn, prot) __pmd(((pfn) << _PFN_SHIFT) | pgprot_val(prot)) | ||
| 233 | #endif | 234 | #endif |
| 234 | 235 | ||
| 235 | #define __pgd_offset(address) pgd_index(address) | 236 | #define __pgd_offset(address) pgd_index(address) |
diff --git a/arch/mips/include/uapi/asm/Kbuild b/arch/mips/include/uapi/asm/Kbuild index a1a0452ac185..77d4fb33f75a 100644 --- a/arch/mips/include/uapi/asm/Kbuild +++ b/arch/mips/include/uapi/asm/Kbuild | |||
| @@ -3,6 +3,7 @@ include include/uapi/asm-generic/Kbuild.asm | |||
| 3 | 3 | ||
| 4 | header-y += auxvec.h | 4 | header-y += auxvec.h |
| 5 | header-y += bitsperlong.h | 5 | header-y += bitsperlong.h |
| 6 | header-y += break.h | ||
| 6 | header-y += byteorder.h | 7 | header-y += byteorder.h |
| 7 | header-y += cachectl.h | 8 | header-y += cachectl.h |
| 8 | header-y += errno.h | 9 | header-y += errno.h |
diff --git a/arch/mips/include/asm/break.h b/arch/mips/include/uapi/asm/break.h index 9161e684cb4c..9161e684cb4c 100644 --- a/arch/mips/include/asm/break.h +++ b/arch/mips/include/uapi/asm/break.h | |||
diff --git a/arch/mips/kernel/ftrace.c b/arch/mips/kernel/ftrace.c index 6a2d758dd8e9..83fa1460e294 100644 --- a/arch/mips/kernel/ftrace.c +++ b/arch/mips/kernel/ftrace.c | |||
| @@ -25,6 +25,12 @@ | |||
| 25 | #define MCOUNT_OFFSET_INSNS 4 | 25 | #define MCOUNT_OFFSET_INSNS 4 |
| 26 | #endif | 26 | #endif |
| 27 | 27 | ||
| 28 | /* Arch override because MIPS doesn't need to run this from stop_machine() */ | ||
| 29 | void arch_ftrace_update_code(int command) | ||
| 30 | { | ||
| 31 | ftrace_modify_all_code(command); | ||
| 32 | } | ||
| 33 | |||
| 28 | /* | 34 | /* |
| 29 | * Check if the address is in kernel space | 35 | * Check if the address is in kernel space |
| 30 | * | 36 | * |
| @@ -89,6 +95,24 @@ static int ftrace_modify_code(unsigned long ip, unsigned int new_code) | |||
| 89 | return 0; | 95 | return 0; |
| 90 | } | 96 | } |
| 91 | 97 | ||
| 98 | #ifndef CONFIG_64BIT | ||
| 99 | static int ftrace_modify_code_2(unsigned long ip, unsigned int new_code1, | ||
| 100 | unsigned int new_code2) | ||
| 101 | { | ||
| 102 | int faulted; | ||
| 103 | |||
| 104 | safe_store_code(new_code1, ip, faulted); | ||
| 105 | if (unlikely(faulted)) | ||
| 106 | return -EFAULT; | ||
| 107 | ip += 4; | ||
