Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3561683ybk; Tue, 19 May 2020 07:39:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzP89QPyJeolEY6RNg4bR7hKZVveNId9gh7sBZYEnBGisOErYEIHbit5ssK1DdAi71pZgZH X-Received: by 2002:a17:906:bc4c:: with SMTP id s12mr19815715ejv.285.1589899175462; Tue, 19 May 2020 07:39:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589899175; cv=none; d=google.com; s=arc-20160816; b=h22pd5Xl/QwB/1ii33NnP6bGRlfGvNcroCkV/84EsBnGJ5eKVHEcxhIDLlq40L9+Me afFYKrixKskHYLpxxIGyCIBBb+lD2gsvuKt8Sfa2xci7aQMzQGmzvp/k78HfSReEdMop IkJXZwLi6at4iRhWgrUP9ltEf2ibuPG8q5PiNCoaSkO/XBSh6zFQqO2ZsrF9pi9Uy/OO VIzFkVorMvzquMippvm1YOQ7VS7ZN1dz+qkvaMj7TmH4JGwiblZN6nOLAvrOaDeuykxa CMwOYU96WtRPW11yFDL5g5eKdf+YfjiNEFG6k+EDhx7AFVkrks/9FEnu4YEzuh5p0RrZ TthA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=twuK9FOutlvpr0oeyyKn2zbbRVIKxRpKOBYNny/4rPY=; b=WmKlmm2I2rj1lgv5rY9wNnUzNUSi0DVc8vL9gVOI8DP2L+lnER934nKlxvT2FA+bX9 augUa57VIvywBjJcNOeksRJUqgntaEu4xrKpD9oqrv3XUbsIPBK4+iRsHGApDENQyASj a5I3kWpaUo2+sQc3+NH6T//mV8KYF+AAIt8eZavDKAsh50DdIX0pdCm5UeKoajSV7fMI yK5/f+5S+rvZ+oYJtW1ygQCRCQF0prn7JWb97Qqf9TqJ/cQxfLNZZkeQBmjXv0yK/q9U e0jvdvL0T8Yoxfk6bdS1xvJURyv549giQSG3hjMjKu2zUYKL75bn6JP48meP4U+oNb8J eDeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si8199675ejh.334.2020.05.19.07.39.10; Tue, 19 May 2020 07:39:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729237AbgESOgx (ORCPT + 99 others); Tue, 19 May 2020 10:36:53 -0400 Received: from out28-49.mail.aliyun.com ([115.124.28.49]:54535 "EHLO out28-49.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728737AbgESOgx (ORCPT ); Tue, 19 May 2020 10:36:53 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.09424746|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0516057-0.000741994-0.947652;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03296;MF=zhouyanjie@wanyeetech.com;NM=1;PH=DS;RN=20;RT=20;SR=0;TI=SMTPD_---.HalgxFh_1589898954; Received: from localhost.localdomain(mailfrom:zhouyanjie@wanyeetech.com fp:SMTPD_---.HalgxFh_1589898954) by smtp.aliyun-inc.com(10.147.42.198); Tue, 19 May 2020 22:36:19 +0800 From: =?UTF-8?q?=E5=91=A8=E7=90=B0=E6=9D=B0=20=28Zhou=20Yanjie=29?= To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, tsbogend@alpha.franken.de, paulburton@kernel.org, jiaxun.yang@flygoat.com, chenhc@lemote.com, tglx@linutronix.de, robh+dt@kernel.org, daniel.lezcano@linaro.org, keescook@chromium.org, paul@crapouillou.net, krzk@kernel.org, hns@goldelico.com, ebiederm@xmission.com, dongsheng.qiu@ingenic.com, yanfei.li@ingenic.com, rick.tyliu@ingenic.com, sernia.zhou@foxmail.com, zhenwenjin@gmail.com Subject: [PATCH v8 0/6] Introduce SMP support for CI20 (based on JZ4780). Date: Tue, 19 May 2020 22:35:17 +0800 Message-Id: <1589898923-60048-2-git-send-email-zhouyanjie@wanyeetech.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1589898923-60048-1-git-send-email-zhouyanjie@wanyeetech.com> References: <1589898923-60048-1-git-send-email-zhouyanjie@wanyeetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce SMP support for MIPS Creator CI20, which is based on Ingenic JZ4780 SoC. 周琰杰 (Zhou Yanjie) (6): MIPS: JZ4780: Introduce SMP support. MIPS: CI20: Modify DTS to support high resolution timer for SMP. clocksource: Ingenic: Add high resolution timer support for SMP. dt-bindings: MIPS: Document Ingenic SoCs binding. MIPS: Ingenic: Add 'cpus' node for Ingenic SoCs. MIPS: CI20: Update defconfig to support SMP. .../bindings/mips/ingenic/ingenic,cpu.yaml | 57 +++++ arch/mips/boot/dts/ingenic/ci20.dts | 11 +- arch/mips/boot/dts/ingenic/jz4740.dtsi | 14 ++ arch/mips/boot/dts/ingenic/jz4770.dtsi | 15 +- arch/mips/boot/dts/ingenic/jz4780.dtsi | 23 ++ arch/mips/boot/dts/ingenic/x1000.dtsi | 14 ++ arch/mips/configs/ci20_defconfig | 2 + arch/mips/include/asm/mach-jz4740/smp.h | 87 +++++++ arch/mips/jz4740/Kconfig | 2 + arch/mips/jz4740/Makefile | 5 + arch/mips/jz4740/prom.c | 4 + arch/mips/jz4740/smp-entry.S | 57 +++++ arch/mips/jz4740/smp.c | 258 +++++++++++++++++++++ arch/mips/kernel/idle.c | 35 ++- drivers/clocksource/ingenic-timer.c | 103 ++++++-- 15 files changed, 661 insertions(+), 26 deletions(-) create mode 100644 Documentation/devicetree/bindings/mips/ingenic/ingenic,cpu.yaml create mode 100644 arch/mips/include/asm/mach-jz4740/smp.h create mode 100644 arch/mips/jz4740/smp-entry.S create mode 100644 arch/mips/jz4740/smp.c -- 2.7.4