Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 15 Jun 2017 04:16:40 +0200 (CEST) Received: from smtpbgau2.qq.com ([54.206.34.216]:50184 "EHLO smtpbgau2.qq.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23992028AbdFOCQc128-e (ORCPT ); Thu, 15 Jun 2017 04:16:32 +0200 X-QQ-mid: bizesmtp9t1497492947tewg02cw5 Received: from software.domain.org (unknown [222.92.8.142]) by esmtp4.qq.com (ESMTP) with id ; Thu, 15 Jun 2017 10:15:27 +0800 (CST) X-QQ-SSF: 01100000002000F0FL92B00A0000000 X-QQ-FEAT: 7NEolFwWs8WLHorM5wUX287RFNy0nzX85rHkmiNkT0wHMX8yIryWjUnxIHqRJ YP0ZY20Oo5clw5jWQi1DcDR9Zw4/SRax94QN2x53+Bq+/pL0kFsQs4Z89RTj/1/TpFktIet KfefFjhSFzaV8H2SuAb/qQKl1b2WIGNHbnvIXMef34VJ51ztTenLkFIdyxDYH2vV++Q/HH8 BiNQxMaYPqFbSJFD+U9ZshZa9UXhYbcNEqSSSR3b8Mqctx+STCReyG2gjxje8utmH1mLF/H QPbeVYo28jDf9JYzLFJ6zQBqFAp1uXiSinEg== X-QQ-GoodBg: 0 From: Huacai Chen To: Ralf Baechle Cc: John Crispin , "Steven J . Hill" , linux-mips@linux-mips.org, Fuxin Zhang , Zhangjin Wu , Huacai Chen Subject: [PATCH V5 0/9] MIPS: Loongson: feature and performance improvements Date: Thu, 15 Jun 2017 10:15:43 +0800 Message-Id: <1497492952-23877-1-git-send-email-chenhc@lemote.com> X-Mailer: git-send-email 2.7.0 X-QQ-SENDSIZE: 520 X-QQ-Bgrelay: 1 Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 58456 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: chenhc@lemote.com Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips This patchset is is prepared for the next 4.13 release for Linux/MIPS. It adds Loongson-3A R3 and Loongson's NMI handler support, adds a "model name" knob in /proc/cpuinfo which is needed by some userspace tools, improves I/O performance by IRQ balancing and IRQ affinity setting, fixes indexed scache flushing for Loongson-3, and introduces LOONGSON_LLSC_WAR to improve stability. V1 -> V2: 1, Add Loongson-3A R3 basic support. 2, Sync the code to upstream. V2 -> V3: 1, Add r4k_blast_scache_node for Loongson-3. 2, Update the last patch to avoid miscompilation. 3, Sync the code to upstream. V3 -> V4: 1, Support 4 packages in CPU Hwmon driver. 2, ICT is dropped in cpu name, and cpu name can be overwritten by BIOS. 3, Sync the code to upstream. V4 -> V5: 1, Drop some #ifdefs in the 2nd patch. 2, Improve maintainability of the 45h patch. 3, Sync the code to upstream. Huacai Chen(9): MIPS: Loongson: Add Loongson-3A R3 basic support. MIPS: c-r4k: Add r4k_blast_scache_node for Loongson-3. MIPS: Loongson: Add NMI handler support. MIPS: Loongson-3: Support 4 packages in CPU Hwmon driver. MIPS: Loongson-3: IRQ balancing for PCI devices. MIPS: Loongson-3: support irq_set_affinity() in i8259 chip. MIPS: Loogson: Make enum loongson_cpu_type more clear. MIPS: Add __cpu_full_name[] to make CPU names more human-readable. MIPS: Loongson: Introduce and use LOONGSON_LLSC_WAR. Signed-off-by: Huacai Chen --- arch/mips/include/asm/atomic.h | 107 ++++++++ arch/mips/include/asm/bitops.h | 273 ++++++++++++++++----- arch/mips/include/asm/cmpxchg.h | 54 ++++ arch/mips/include/asm/cpu-info.h | 2 + arch/mips/include/asm/cpu.h | 1 + arch/mips/include/asm/edac.h | 33 ++- arch/mips/include/asm/futex.h | 62 +++++ arch/mips/include/asm/irq.h | 3 + arch/mips/include/asm/local.h | 34 +++ arch/mips/include/asm/mach-cavium-octeon/war.h | 1 + arch/mips/include/asm/mach-generic/war.h | 1 + arch/mips/include/asm/mach-ip22/war.h | 1 + arch/mips/include/asm/mach-ip27/war.h | 1 + arch/mips/include/asm/mach-ip28/war.h | 1 + arch/mips/include/asm/mach-ip32/war.h | 1 + arch/mips/include/asm/mach-loongson64/boot_param.h | 23 +- arch/mips/include/asm/mach-loongson64/war.h | 26 ++ arch/mips/include/asm/mach-malta/war.h | 1 + arch/mips/include/asm/mach-pmcs-msp71xx/war.h | 1 + arch/mips/include/asm/mach-rc32434/war.h | 1 + arch/mips/include/asm/mach-rm/war.h | 1 + arch/mips/include/asm/mach-sibyte/war.h | 1 + arch/mips/include/asm/mach-tx49xx/war.h | 1 + arch/mips/include/asm/pgtable.h | 19 ++ arch/mips/include/asm/r4kcache.h | 30 +++ arch/mips/include/asm/spinlock.h | 142 +++++++++++ arch/mips/include/asm/war.h | 8 + arch/mips/kernel/cpu-probe.c | 29 ++- arch/mips/kernel/proc.c | 4 + arch/mips/kernel/syscall.c | 34 +++ arch/mips/loongson64/Platform | 3 + arch/mips/loongson64/common/env.c | 30 ++- arch/mips/loongson64/common/init.c | 13 + arch/mips/loongson64/loongson-3/irq.c | 53 +++- arch/mips/loongson64/loongson-3/smp.c | 23 +- arch/mips/mm/c-r4k.c | 42 +++- arch/mips/mm/tlbex.c | 17 ++ drivers/irqchip/irq-i8259.c | 3 + drivers/platform/mips/cpu_hwmon.c | 136 +++++----- 39 files changed, 1059 insertions(+), 157 deletions(-) create mode 100644 arch/mips/include/asm/mach-loongson64/war.h -- 2.7.0