Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4008320ybg; Tue, 29 Oct 2019 00:21:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKUggaVkOgfU2sGtRS2iSzkoYx/XtLARiK+5zVlBDcZGKiG5uKiNAwhxTWbwV7hz+LPG0K X-Received: by 2002:a17:906:50d:: with SMTP id j13mr1775791eja.146.1572333674197; Tue, 29 Oct 2019 00:21:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572333674; cv=none; d=google.com; s=arc-20160816; b=RmdM0sk9Rw0xoU8HtzEuwafqTdwK6egvR+jfIor6p3asLZUqQrE2oVfoBwCv1Br9nr OcgX706jm0WYHBZ+5oG/QpR8npFPuO2bqakWvgl5r0JDpTQxGtfXNUBNJCu0F13GXhfQ pH0yJqv7hvZr22GvTEr1X2bleYjpoAVV3TEdPkVpUBFgnu6W0xZ197BDwvs3Uajaf0LX 4S7RdExSi+bE4XSKy/DPe4lDYzRGXuOXT68xDhI/6w2G7F9Gv8pClJx0t8KSCH5ZgBmt VtpRGn6gmk7q9BwlbpUsPilNaVbzeT7zX+9DVYdP7N9rUlpXpxc9EiKUAdmYw51oXskz k46A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature; bh=jpoZwuibvtGD9/+lKFt7trcL7NBS/AV3IlefdjyYSaw=; b=mEiw/WXXwA4YvBe4tic8LFzl4c0D2w+XMqtwBZu4Ew9CdgV5CitvNluC8O5YMYRHWd GaDwfofiQBuaXtrzFvdMdwZwiKGZazNm+uUQXTB5Jo5qFkJ4oDBpAopkZZhf1HReBTO4 SYuBNrEztiOYsfGGh1qXje8n5W8CMbyH32azQixkSqFO6LbFllx5S5UJQnwmhjbovi/a N2We7Q2hQ+Z2IQabNhptvKa0MjKUMErtgsq8u8u/LoaXJMZJV8VR3ASxmh4Cf1VGYpQP WxnqE/rszOe0AGGGD3OULZvLHBUE4vp/zFFq64s1jQfAtP3ARfMCrzWBndRgn1OTfiQO teqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=A9YyLgNh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si5352382ejt.404.2019.10.29.00.20.50; Tue, 29 Oct 2019 00:21:14 -0700 (PDT) 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; dkim=pass header.i=@megous.com header.s=mail header.b=A9YyLgNh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728758AbfJ2BZU (ORCPT + 99 others); Mon, 28 Oct 2019 21:25:20 -0400 Received: from vps.xff.cz ([195.181.215.36]:51970 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728275AbfJ2BZT (ORCPT ); Mon, 28 Oct 2019 21:25:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1572312318; bh=yZJ2tr1txca9SLDOy4OtsLu+iAa2f0cZDLnWQ7+OML8=; h=Date:From:To:Cc:Subject:References:X-My-GPG-KeyId:From; b=A9YyLgNhvrxlUztIuCRhuPElEulYpYKTMOb3Hdyf6b5wAYii97AeXsS/rGMCkEskW C0mY/yPIhHdiJKF25+6vtI21q6NsMXjfK/3/CxdTMg40ZTSycRT5LkucjHFQUkMiKD jKO8p4ACl0Huenevm29Hl1sHst+Z8pOKmICnXozU= Date: Tue, 29 Oct 2019 02:25:17 +0100 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Chen-Yu Tsai Cc: linux-sunxi , stable , Maxime Ripard , Russell King , "moderated list:ARM/Allwinner sunXi SoC support" , open list Subject: Re: [linux-sunxi] [PATCH] ARM: sunxi: Fix CPU powerdown on A83T Message-ID: <20191029012517.eddekmphtxyslevx@core.my.home> Mail-Followup-To: Chen-Yu Tsai , linux-sunxi , stable , Maxime Ripard , Russell King , "moderated list:ARM/Allwinner sunXi SoC support" , open list References: <20191028214914.3465156-1-megous@megous.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 29, 2019 at 09:09:40AM +0800, Chen-Yu Tsai wrote: > On Tue, Oct 29, 2019 at 5:49 AM Ondrej Jirman wrote: > > > > PRCM_PWROFF_GATING_REG has CPU0 at bit 4 on A83T. So without this > > patch, instead of gating the CPU0, the whole cluster was power gated, > > when shutting down first CPU in the cluster. > > > > Fixes: 6961275e72a8c1 ("ARM: sun8i: smp: Add support for A83T") > > Signed-off-by: Ondrej Jirman > > Cc: stable@vger.kernel.org > > Acked-by: Chen-Yu Tsai > > Though I distinctly remember the BSP had some code dealing with chip > revisions in which the two bits were reversed. :( Actually, it's a bit more complicated. There's a special check in BSP code (grep for SUN8IW6P1_REV_A) that instead of power gating, just holds the core in reset for that revision. regards, o.