Received: by 10.223.185.116 with SMTP id b49csp3482950wrg; Mon, 19 Feb 2018 00:19:58 -0800 (PST) X-Google-Smtp-Source: AH8x225lR4MELhiGROOPRQWIQUBPkT4gGBMpZAXftUP7/Zsgk0CKv4LuqnXfy7isqw2cjYk2T2JL X-Received: by 10.101.69.13 with SMTP id n13mr11734487pgq.62.1519028398356; Mon, 19 Feb 2018 00:19:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519028398; cv=none; d=google.com; s=arc-20160816; b=IkuS+C9hakrXGr7Np4ACjWxSykWEidCx27BmkGyAGNWIEYeX+XKKkUC+LTdT0N7AOi NuvLybKsI6m+AigocilLksncJOeio6gUGzmre4yUpYlXfHsHJETY4+uVL4B4jlVkyh8W XomeRKF2fid/JUyIsnqKAsUbWsKemrkB8+dyQ5LNg/TcS+bQfruZonyu9pVrrd3RYqkZ k1V5oESVPn94cvMlrY0Z/HcEic+iPU6Qt18Ao1/9JC7NGY/FnJeRQaTDI/bg3ygPuCsX wwanpEXeUFYbRhgeV+OnSFY9J1uS61ota6ZGj6Y3Nf3xFDGPPn6vPh+5vi3YMN8gAPq5 1nFA== 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 :message-id:date:subject:cc:to:from:arc-authentication-results; bh=6Bq3ef1ulDCJVtLN5TUZDSMM6XY4Y6GF/r7tleWnCuM=; b=daBxEkR49vQHNVMwh9gTLBMTMW95ceJKLkUOR6JjJnqWjqC3Xnt4K56PN9DE6FAJBW 2wwHoj8Jx5JqeMeD7ZyOf8Y5SpjjU7FLsJ9s+TV9SMv/Gb7l6bpIqkJx3U141pHtiG4C T2qSRO6Pb127I9MaMHxOnV9OD5vs2jzPJNFS66WNELMv6joY1GJSJ3h9g1/fYYav1RB0 obPdbsCdCbYpOZDgLuypbN+tBh4zAI/iuDZqQOap8v100zggRm9XbLIR5MugB5b6Td2U pdBg+SyiHxJX/m6TDrUVAigJ453pchoAtDimLyW/K412qegJJpKjF9zIbjvIxXGOwL+w y5OQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5-v6si5404990plt.642.2018.02.19.00.19.43; Mon, 19 Feb 2018 00:19:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752035AbeBSIS6 (ORCPT + 99 others); Mon, 19 Feb 2018 03:18:58 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:54542 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751752AbeBSIS4 (ORCPT ); Mon, 19 Feb 2018 03:18:56 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id E1B74207CB; Mon, 19 Feb 2018 09:18:54 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from dell-desktop.lan (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 8CF732046F; Mon, 19 Feb 2018 09:18:44 +0100 (CET) From: =?UTF-8?q?Myl=C3=A8ne=20Josserand?= To: maxime.ripard@bootlin.com, wens@csie.org, linux@armlinux.org.uk, robh+dt@kernel.org, mark.rutland@arm.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, clabbe.montjoie@gmail.com, thomas.petazzoni@bootlin.com, mylene.josserand@bootlin.com, quentin.schulz@bootlin.com Subject: [PATCH v3 0/7] Add SMP support on sun8i-a83t Date: Mon, 19 Feb 2018 09:18:30 +0100 Message-Id: <20180219081837.15482-1-mylene.josserand@bootlin.com> X-Mailer: git-send-email 2.11.0 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 Hello everyone, This is a V3 of my series that adds SMP support for Allwinner sun8i-a83t. Based on sunxi's tree, sunxi/for-next branch. Changes since v2: - Rebased my modifications according to new Chen-Yu Tsai's patch series that adds SMP support for sun9i-a80 (without MCPM). - Split the device-tree patches into 3 patches for CPUCFG, R_CPUCFG and PRCM registers. - The hotplug of CPU0 is currently not working (even after trying what Allwinner's code is doing) so remove the possibility of disabling this CPU. Created a new patch for it. Changes since v1: - Add Chen Yu's patch in my series (see path 01) - Add new compatibles for prcm and cpucfg registers for sun8i-a83t. Create two functions to separate the DT parsing of sun9i-a80 and sun8i-a83t. - Thanks to Maxime's review: order device tree's nodes according to physical addresses, remove unused label and fix registers' sizes. Update the commit log and commit title of my last patch (see patch 05). Patch 01: Convert the sunxi SMP driver to add support for A83T. This SoC has a bit flip that needs to be handled. Patch 02-03-04: Add registers nodes (prcm, cpucfg and r_cpucfg) needed for SMP bringup. Patch 05: Add CCI-400 node for a83t. Patch 06: Fix the use of virtual timers that hangs the kernel in case of SMP support. Patch 07: Remove the possibility to disable the CPU0 because it is currently not working for sun8i-a83t. If you have any remarks/questions, let me know. Thank you in advance, Mylène Mylène Josserand (7): ARM: sun8i: smp: Add support for A83T ARM: dts: sun8i: Add CPUCFG device node for A83T dtsi ARM: dts: sun8i: Add PRCM device node for the A83T dtsi ARM: dts: sun8i: Add R_CPUCFG device node for the A83T dtsi arm: dts: sun8i: a83t: Add CCI-400 node arm: dts: sun8i: a83t: Fix undefined offset with virtual timer ARM: sun8i: smp: Remove the disabling of CPU0 arch/arm/boot/dts/sun8i-a83t.dtsi | 57 +++++++++ arch/arm/mach-sunxi/Kconfig | 2 +- arch/arm/mach-sunxi/mc_smp.c | 245 +++++++++++++++++++++++++++++++------- 3 files changed, 260 insertions(+), 44 deletions(-) -- 2.11.0