Received: by 10.223.185.116 with SMTP id b49csp3599789wrg; Mon, 19 Feb 2018 02:52:12 -0800 (PST) X-Google-Smtp-Source: AH8x224WQGBvuGaZB/5tOqOrJkiFXk73y3SJJ4XnyAgr6h/GK9Hv3PD3v/EOdHtywV2mGXyH3Vhi X-Received: by 10.98.200.131 with SMTP id i3mr2435263pfk.40.1519037532042; Mon, 19 Feb 2018 02:52:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519037532; cv=none; d=google.com; s=arc-20160816; b=tCY60WWm7aLst6NXpnuFEjfmxLPoKO+owPxC8dQU7BW//gygssIen+a0m2/dEh7a53 yDzolOqb9x6w4cSyzsYrOEY9A7zmZrlzSH7e/TY1U5+lPMz/BfTSW7MHVBTD0mDIrJ8l YHJM1YYPHTzvUC2duzNHFB0hJZLThT3wRm081ZAwtJK6k2uUyZAu6ahLCe8+Ij9EPFrc xbxaXEPg8DQ0NK8KjaXTpTzRZCyz8Wm7r/KXm4+FPTptqxCzifd09ho2+UxhpLVCXvIk HQuYm8tCpbY9Tn8aKR3X9LVxNMRiDnsOrx4PkVRTCIM1PBIqceqrmqFBWO92nSV75U2i F1GA== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=WDA/7nF1KqahkqjN4X/Qa+iMty11wramDZSiijlPiH8=; b=c8U/xP1m3ZNUYdwOPQZvOFeFeKgAvOIG0wBtALA999LYbD4gLCX8L3ccq+q1p9lgPy MV7BlXChRrUnawcZ8/uHT8qtsykPHNy7jNNkRwRXPtvwwwZ+JcNyltVvFwm/wUHmO+Rg OwGhAQ1qVE21pbf3hAv9Mvj3SZyO/hbR3tc1I8hL4PhPT4Tmcera3OhnQlh2KKP9fP/g QAexA61Z1SsRoPax3k+uFlY2orJcdxE9npN9G9Fd4NrTBSylp4Lv2IVPKTwFqSduE3Q1 YExSBRy+/KnYu1SJJPDRobvFJJW3sojez112Jacal0JpHb764yqkX1E3Bi4zc51jRUH4 6UJg== 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 e18si7445647pfi.130.2018.02.19.02.51.58; Mon, 19 Feb 2018 02:52:11 -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 S1752536AbeBSKup convert rfc822-to-8bit (ORCPT + 99 others); Mon, 19 Feb 2018 05:50:45 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:58943 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752392AbeBSKuo (ORCPT ); Mon, 19 Feb 2018 05:50:44 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 4161E20715; Mon, 19 Feb 2018 11:50:42 +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.home (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id D4DCA20715; Mon, 19 Feb 2018 11:50:31 +0100 (CET) Date: Mon, 19 Feb 2018 11:50:31 +0100 From: =?UTF-8?B?TXlsw6huZQ==?= Josserand To: Maxime Ripard Cc: wens@csie.org, linux@armlinux.org.uk, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, clabbe.montjoie@gmail.com, thomas.petazzoni@bootlin.com, quentin.schulz@bootlin.com Subject: Re: [PATCH v3 7/7] ARM: sun8i: smp: Remove the disabling of CPU0 Message-ID: <20180219115031.77a0a1ca@dell-desktop.home> In-Reply-To: <20180219085408.5to43p7jbtijx4q3@flea.lan> References: <20180219081837.15482-1-mylene.josserand@bootlin.com> <20180219081837.15482-8-mylene.josserand@bootlin.com> <20180219085408.5to43p7jbtijx4q3@flea.lan> Organization: Bootlin X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) 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 Hi, On Mon, 19 Feb 2018 09:54:08 +0100 Maxime Ripard wrote: > On Mon, Feb 19, 2018 at 09:18:37AM +0100, Mylène Josserand wrote: > > On sun8i-a63t, hotplug CPU for CPU0 is currently not working. > > Remove the possibility to disable CPU0 only for sun8i-a83t. > > > > Signed-off-by: Mylène Josserand > > --- > > arch/arm/mach-sunxi/mc_smp.c | 6 +++++- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > > diff --git a/arch/arm/mach-sunxi/mc_smp.c b/arch/arm/mach-sunxi/mc_smp.c > > index fec592bf68b4..69d5ae5b3d72 100644 > > --- a/arch/arm/mach-sunxi/mc_smp.c > > +++ b/arch/arm/mach-sunxi/mc_smp.c > > @@ -661,8 +661,12 @@ static int sunxi_mc_smp_cpu_kill(unsigned int l_cpu) > > return !ret; > > } > > > > -static bool sunxi_mc_smp_cpu_can_disable(unsigned int __unused) > > +static bool sunxi_mc_smp_cpu_can_disable(unsigned int cpu) > > { > > + /* CPU0 hotplug handled only for sun9i */ > > + if (of_machine_is_compatible("allwinner,sun8i-a83t")) > > + if (cpu == 0) > > + return false; > > This also means that you have a window in your patch sequence where > you can disable the CPU0 on the A83t. This patch should be earlier. It is true. With your comment in my first patch, it will be done earlier. Thanks, Mylène -- Mylène Josserand, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com