From patchwork Thu Nov 15 05:50:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huacai Chen X-Patchwork-Id: 10683515 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 62C4213B5 for ; Thu, 15 Nov 2018 05:51:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CDD32C10E for ; Thu, 15 Nov 2018 05:51:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 390C32C13A; Thu, 15 Nov 2018 05:51:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 341D42C10E for ; Thu, 15 Nov 2018 05:51:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726958AbeKOP6O (ORCPT ); Thu, 15 Nov 2018 10:58:14 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:36083 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbeKOP6O (ORCPT ); Thu, 15 Nov 2018 10:58:14 -0500 Received: by mail-pg1-f196.google.com with SMTP id n2so1322204pgm.3 for ; Wed, 14 Nov 2018 21:51:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=Eo3m0AsPVwTqj/k7bTOlWtk09rdzjSF1BQEYBmygNUM=; b=Za5nW+z8uG8oEey2r5kUpYc4J/w6kadTPt0LJCKSKxZrnPVW0pAh+mFPcasGeCpwHJ zbCcSyqlLwv5cvKL7T8piIZzizsp63ikBk4O1QFB5mVBHJ6YPBxpjEnVi1nSFnlwMJeY DFEjy/O8e/Q8x4fyXhOtITo2z4vvCwn5FtBfU32IgD9ll1GPbLLH5tpHII/g8+q204SH frpLMzjAiAYd4hMiuwfpGZ1+XqcE66HTgpsa5juvwV7CzpgfA2ruOcx5NDEikDHZ9sIR nvBsyuJiRGHYQbXR5P2eIrhwBQK67rEFls4xbDh4N3KcqJwT1ycNrq/3efZ5w78e9DVm 0NWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=Eo3m0AsPVwTqj/k7bTOlWtk09rdzjSF1BQEYBmygNUM=; b=XimyLWGmKjoaQhV/mn+uTxuqEKtmKWCf73IVf96GvrdhXqtS3pytpbMNH4EWHYd/Ol pXlM3NSNzsLoXeTUPS9wOGG30YWY9C8fXbkiccpMhveNP3FraVlD9P2d/SQSjRy2l7mX rlptfvXgnyoVIh8QkcRozKhRJBT9/b40t+1b530F8HufgZaxFVQuQ1Up3y/bEDFeLEZy iWmKaq9zo05eTFN/EotkAvom712kGB0F7v9zKsPSPyggvOeO/VCl1IcPozOOuO1rM2rQ 5Rl0V9EOZ4SIgM161339vP49BZzqbION4o8gVv8f1Mi7d2AR+7FvCrMLxlACRL7N0ZxN lGYA== X-Gm-Message-State: AGRZ1gK+4bsjUCB3uT4IUuyIObEQppflsb57rURW5dSeDJY4crQiSPGU AFJDypw4u0iPotQoAW5Ogbg= X-Google-Smtp-Source: AJdET5dICvjQn5L3vPTq+rXDkQx+hv3hQIDdhIIfrR9nzZJ/WZWu1XZXdJcGNJfnBofzZF7/+q1ZQg== X-Received: by 2002:a62:5ac3:: with SMTP id o186-v6mr5203539pfb.40.1542261108860; Wed, 14 Nov 2018 21:51:48 -0800 (PST) Received: from software.domain.org ([222.92.8.142]) by smtp.gmail.com with ESMTPSA id o1sm34882306pgn.63.2018.11.14.21.51.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Nov 2018 21:51:48 -0800 (PST) From: Huacai Chen To: Jean Delvare Cc: Guenter Roeck , linux-hwmon@vger.kernel.org, Fuxin Zhang , Huacai Chen Subject: [PATCH V5 0/8] MIPS: Loongson: new features and improvements Date: Thu, 15 Nov 2018 13:50:49 +0800 Message-Id: <1542261057-6019-1-git-send-email-chenhc@lemote.com> X-Mailer: git-send-email 2.7.0 Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset is prepared for the next 4.21 release for Linux/MIPS. It add Loongson-3A R2.1 basic support, adds "model name" and "CPU MHz" knobs in /proc/cpuinfo which is needed by some userspace tools, adds Loongson-3 kexec/kdump support, and introduces WAR_LLSC_MB to improve stability. V1 -> V2: 1, Add Loongson-3A R3.1 basic support. 2, Fix CPU UART irq delivery problem. 3, Improve code and descriptions (Thank James Hogan). 4, Sync the code to upstream. V2 -> V3: 1, Remove merged patches. 2, Improve code and descriptions (Thank James Hogan). 3, Sync the code to upstream. V3 -> V4: 1, Remove merged patches. 2, Improve kdump support. 3, Sync the code to upstream. V4 -> V5: 1, Remove merged patches. 2, Add Loongson-3A R2.1 support. 3, Improve kexec/kdump support. 4, Sync the code to upstream. Huacai Chen(8): MIPS: Loongson: Add Loongson-3A R2.1 basic support. MIPS: c-r4k: Add r4k_blast_scache_node for Loongson-3. MIPS: Ensure pmd_present() returns false after pmd_mknotpresent(). MIPS: Add __cpu_full_name[] to make CPU names more human-readable. MIPS: Align kernel load address to 64KB. MIPS: Reserve extra memory for crash dump. MIPS: Loongson: Add kexec/kdump support. MIPS: Loongson: Introduce and use WAR_LLSC_MB. Signed-off-by: Huacai Chen --- arch/mips/boot/compressed/calc_vmlinuz_load_addr.c | 7 +- arch/mips/include/asm/atomic.h | 36 ++++++-- arch/mips/include/asm/barrier.h | 6 ++ arch/mips/include/asm/bitops.h | 15 ++++ arch/mips/include/asm/cmpxchg.h | 9 +- arch/mips/include/asm/cpu-info.h | 2 + arch/mips/include/asm/cpu.h | 3 +- arch/mips/include/asm/edac.h | 5 +- arch/mips/include/asm/futex.h | 18 ++-- arch/mips/include/asm/local.h | 10 ++- arch/mips/include/asm/mach-loongson64/boot_param.h | 1 + .../asm/mach-loongson64/kernel-entry-init.h | 4 +- arch/mips/include/asm/mach-loongson64/mmzone.h | 1 + arch/mips/include/asm/mmzone.h | 8 ++ arch/mips/include/asm/pgtable-64.h | 5 ++ arch/mips/include/asm/pgtable.h | 5 +- arch/mips/include/asm/r4kcache.h | 21 +++++ arch/mips/include/asm/time.h | 2 + arch/mips/kernel/cpu-probe.c | 28 +++++-- arch/mips/kernel/idle.c | 2 +- arch/mips/kernel/proc.c | 6 ++ arch/mips/kernel/relocate_kernel.S | 26 ++++++ arch/mips/kernel/setup.c | 51 ++++++++++++ arch/mips/kernel/syscall.c | 2 + arch/mips/kernel/time.c | 2 + arch/mips/loongson64/Platform | 3 + arch/mips/loongson64/common/env.c | 23 +++++- arch/mips/loongson64/common/reset.c | 95 ++++++++++++++++++++++ arch/mips/loongson64/loongson-3/smp.c | 9 +- arch/mips/loongson64/loongson-3/smp.h | 1 + arch/mips/mm/c-r4k.c | 46 +++++++++-- arch/mips/mm/tlbex.c | 11 +++ drivers/platform/mips/cpu_hwmon.c | 3 +- 33 files changed, 421 insertions(+), 45 deletions(-) -- 2.7.0