Received: by 10.213.65.68 with SMTP id h4csp1527632imn; Mon, 19 Mar 2018 06:41:28 -0700 (PDT) X-Google-Smtp-Source: AG47ELskMmNWvroSKxFjfCEBU4ZLWfNsYbotnlHALreSPiYy76Bx4ZJOk1ZB6oR4kd9ubUUHXzT0 X-Received: by 2002:a17:902:444:: with SMTP id 62-v6mr12821828ple.127.1521466888115; Mon, 19 Mar 2018 06:41:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521466888; cv=none; d=google.com; s=arc-20160816; b=u+kLFcHV1ji1lVNgDd2m5Ib0JbCegL+3/unjJpnymYpZKKW1rdUb4aplj/ohEzvHjZ kWpb72D9sboKGDBVALpF9e7F+DXmjv588MM7zNeYcdOpcxmUv6YyQLsVIw9FxD8vZYGJ nVpvDZRext/UgEzQgNtQ/ooqzuRmnGu7fGIBnvSPWCuvz3yS6Ib/YDQE9USAqGzujGMT vAgais4lVNKLJFscSMHLioZuymY2tPvq8nmEFMVSIwoXhyiWHbuQjy8Hh3qWDvSSo3CG PpapVniWd1V48Yr2iWKXluvcEiSABQmekfLCWyXhse848wbLyblNqSSpsvjybfkD+q3h QCLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=klBZzdJJNHfiz2FW8V7oCYUMwZYJUsPgeAdnsGL4N2k=; b=URRIwSNfiVhBbmlVNO1o/ABvoBa6rXe/Nr2pUiu2yWCnZAjSwipU6yyDzcbf5iFTLi 4eo8qVLzbNlS+CR4tx/te2FG/+HdayWslRK4erzzViJwYyLDpzc3l2tuibBaBmVYxL3J JnXQmQxSIsNzsauqU1F7WWZS9q/R2wptNKWp6XWMS3u4jbXSv8fHzDhPqtd6H45zVu+p f9ty1+OaC/eGTGrfo1UmOscZ9hmgF0Z1Yy/fJYHZXRYo/lUy8WgAjuilaXm4Y/ZXi+Cz m0eigcsJykLqf1PJOFWf3LFMJ/ib5lSBX2OiW8m3V0VZRc8FIXXZn5dt2K5xO1K3/EqB UEQg== 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 e4si26640pga.1.2018.03.19.06.41.12; Mon, 19 Mar 2018 06:41:28 -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; 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 S933326AbeCSNkH convert rfc822-to-8bit (ORCPT + 99 others); Mon, 19 Mar 2018 09:40:07 -0400 Received: from mail.bootlin.com ([62.4.15.54]:59630 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932528AbeCSNkF (ORCPT ); Mon, 19 Mar 2018 09:40:05 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 4FADF207E5; Mon, 19 Mar 2018 14:40:01 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.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 localhost (unknown [185.94.189.188]) by mail.bootlin.com (Postfix) with ESMTPSA id DEA292036E; Mon, 19 Mar 2018 14:40:00 +0100 (CET) Date: Mon, 19 Mar 2018 11:59:11 +0100 From: Maxime Ripard To: =?utf-8?Q?Myl=C3=A8ne?= Josserand Cc: Marc Zyngier , linux@armlinux.org.uk, wens@csie.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, quentin.schulz@bootlin.com, linux-kernel@vger.kernel.org, clabbe.montjoie@gmail.com, thomas.petazzoni@bootlin.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 10/10] ARM: sunxi: smp: Add initialization of CNTVOFF Message-ID: <20180319105911.o63otbbhld54br4r@flea> References: <20180223133742.26044-1-mylene.josserand@bootlin.com> <20180223133742.26044-11-mylene.josserand@bootlin.com> <6329fbb6-13a1-41fe-f6cf-f2f0d4b2e5f9@arm.com> <20180318200715.363f3135@dell-desktop.home> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <20180318200715.363f3135@dell-desktop.home> User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 18, 2018 at 08:07:15PM +0100, Myl?ne Josserand wrote: > Hello Mark, > > Please, excuse me for this late answer and thank you for the review! > > On Wed, 7 Mar 2018 12:18:33 +0000 > Marc Zyngier wrote: > > > On 23/02/18 13:37, Myl?ne Josserand wrote: > > > On Cortex-A7, the CNTVOFF register from arch timer is uninitialized. > > > > Only on A7? Is that specific to your platform? > > I do not really know other Allwinner's platforms about this subject. At > least, the sun9i-a80 which is a Cortex-a15/a7 does not need that but it > is necessary for sun8i-a83t which is a cortex-a7. Maybe, Chen-Yu or > Maxime could help us on it. This is not related to the CPU. On all the other SoCs but the A80 and the A83t, U-Boot will boot the system in HYP, and while switching to non-secure will setup CNTVOFF on the boot CPU. On the A80 and A83t, U-Boot will execute the kernel in secure, it will not switch to non-secure, and CNTVOFF will not be set on the boot CPU. Maxime -- Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com