Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus

Pull MIPS updates from Ralf Baechle:
"Eight fixes across arch/mips. Nothing stands particuarly out nor is
complicated but fixes keep coming in at a higher than comfortable
rate"

* 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus:
MIPS: KVM: Do not sign extend on unsigned MMIO load
MIPS: BPF: Fix stack pointer allocation
MIPS: Loongson-3: Fix a cpu-hotplug issue in loongson3_ipi_interrupt()
MIPS: Fix enabling of DEBUG_STACKOVERFLOW
MIPS: c-r4k: Fix typo in probe_scache()
MIPS: Avoid an FPE exception in FCSR mask probing
MIPS: ath79: Add a missing new line in log message
MIPS: ralink: Fix clearing the illegal access interrupt

Changed files
+8 -13
arch
mips
ath79
kernel
kvm
loongson
loongson-3
mm
net
ralink
+1 -1
arch/mips/ath79/setup.c
··· 225 225 ddr_clk_rate = ath79_get_sys_clk_rate("ddr"); 226 226 ref_clk_rate = ath79_get_sys_clk_rate("ref"); 227 227 228 - pr_info("Clocks: CPU:%lu.%03luMHz, DDR:%lu.%03luMHz, AHB:%lu.%03luMHz, Ref:%lu.%03luMHz", 228 + pr_info("Clocks: CPU:%lu.%03luMHz, DDR:%lu.%03luMHz, AHB:%lu.%03luMHz, Ref:%lu.%03luMHz\n", 229 229 cpu_clk_rate / 1000000, (cpu_clk_rate / 1000) % 1000, 230 230 ddr_clk_rate / 1000000, (ddr_clk_rate / 1000) % 1000, 231 231 ahb_clk_rate / 1000000, (ahb_clk_rate / 1000) % 1000,
+1 -2
arch/mips/kernel/cpu-probe.c
··· 74 74 { 75 75 unsigned long sr, mask, fcsr, fcsr0, fcsr1; 76 76 77 + fcsr = c->fpu_csr31; 77 78 mask = FPU_CSR_ALL_X | FPU_CSR_ALL_E | FPU_CSR_ALL_S | FPU_CSR_RM; 78 79 79 80 sr = read_c0_status(); 80 81 __enable_fpu(FPU_AS_IS); 81 - 82 - fcsr = read_32bit_cp1_register(CP1_STATUS); 83 82 84 83 fcsr0 = fcsr & mask; 85 84 write_32bit_cp1_register(CP1_STATUS, fcsr0);
+1 -1
arch/mips/kernel/irq.c
··· 109 109 #endif 110 110 } 111 111 112 - #ifdef DEBUG_STACKOVERFLOW 112 + #ifdef CONFIG_DEBUG_STACKOVERFLOW 113 113 static inline void check_stack_overflow(void) 114 114 { 115 115 unsigned long sp;
+1 -1
arch/mips/kvm/emulate.c
··· 2409 2409 if (vcpu->mmio_needed == 2) 2410 2410 *gpr = *(int16_t *) run->mmio.data; 2411 2411 else 2412 - *gpr = *(int16_t *) run->mmio.data; 2412 + *gpr = *(uint16_t *)run->mmio.data; 2413 2413 2414 2414 break; 2415 2415 case 1:
+1 -1
arch/mips/loongson/loongson-3/smp.c
··· 272 272 if (action & SMP_ASK_C0COUNT) { 273 273 BUG_ON(cpu != 0); 274 274 c0count = read_c0_count(); 275 - for (i = 1; i < loongson_sysconf.nr_cpus; i++) 275 + for (i = 1; i < num_possible_cpus(); i++) 276 276 per_cpu(core0_c0count, i) = c0count; 277 277 } 278 278 }
+1 -1
arch/mips/mm/c-r4k.c
··· 1372 1372 scache_size = addr; 1373 1373 c->scache.linesz = 16 << ((config & R4K_CONF_SB) >> 22); 1374 1374 c->scache.ways = 1; 1375 - c->dcache.waybit = 0; /* does not matter */ 1375 + c->scache.waybit = 0; /* does not matter */ 1376 1376 1377 1377 return 1; 1378 1378 }
+1 -5
arch/mips/net/bpf_jit.c
··· 681 681 sp_off += config_enabled(CONFIG_64BIT) ? 682 682 (ARGS_USED_BY_JIT + 1) * RSIZE : RSIZE; 683 683 684 - /* 685 - * Subtract the bytes for the last registers since we only care about 686 - * the location on the stack pointer. 687 - */ 688 - return sp_off - RSIZE; 684 + return sp_off; 689 685 } 690 686 691 687 static void build_prologue(struct jit_ctx *ctx)
+1 -1
arch/mips/ralink/ill_acc.c
··· 41 41 addr, (type >> ILL_ACC_OFF_S) & ILL_ACC_OFF_M, 42 42 type & ILL_ACC_LEN_M); 43 43 44 - rt_memc_w32(REG_ILL_ACC_TYPE, REG_ILL_ACC_TYPE); 44 + rt_memc_w32(ILL_INT_STATUS, REG_ILL_ACC_TYPE); 45 45 46 46 return IRQ_HANDLED; 47 47 }