Received: by 10.223.185.116 with SMTP id b49csp3483303wrg; Mon, 19 Feb 2018 00:20:28 -0800 (PST) X-Google-Smtp-Source: AH8x2250oJnnsUETjemTxPbySSsfdRM6jebL/oiiDADZEskQkuzIw/0lpWABZbnuPJ4xmAJVNIzG X-Received: by 10.98.233.21 with SMTP id j21mr13901780pfh.123.1519028428800; Mon, 19 Feb 2018 00:20:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519028428; cv=none; d=google.com; s=arc-20160816; b=FsgSRRBrNfzDcAHOFmAshxRVt66/LKVnnEBMnVvIOlkAnOdXWz7IYG4phlPrLLHLOo oh/zXTpi3Pzvrf711rjTRWnWq545qCvHRt2rcmbXEv2bFTrjRWixIcxYI5y6i6VdUX6c zEAzehTsIZPBICik8mGXrgyUUnnDpHp3Zzc045pUkqolaeRESYwOAU3lPXSAZRgridWv 1uGT/PgzNuzQggwvBEfFwiAfFhGyC6/6/AenPmu0yr9M8xQl6gsX52qkfDL4Fz4OL0yb PwWzirmwOb7lcA0Tkf7OVhxmMUWrq60FC+x4b0HGZSZs3MgRKKiCutTDirOgJ0aRzyHs 9F6Q== 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 :arc-authentication-results; bh=27Vh8J5i0U77GktqnG3sez0Be1JXeQELvjszl6HCFVI=; b=p5+Jp1+NkyeYuRsEk6tXlRhe4I/LMRKTutgY81EBM3siGFQVo7sBtsVc1JLrDIJsXK z6u1pjONGepq4RObYN/i5o9qDCCbZxOsN5ThUo0KTbLreS+DoDtmVBVEN4bYDvupEslN aY2iNYGT6nFDAl+aPvqJOB+g/fiVn9mHUtn1J/s0FOf6hmKb0FOmOfT3Q4IESjyo5yzB 8VZ9H2yveo3NxfnDxl32NBT/vhCHGzMeXxMUrGltC5RdraXs8wl0NiLgz8ndIhWZtJBa eLEU6F4+yy4vx8M1w5JRsrz4K/+iTcsa6Gq7x3nPFDxlP+h0A/hSZb8NR8eXauWCVLGp pDOA== 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 r69si3244513pgr.678.2018.02.19.00.20.14; Mon, 19 Feb 2018 00:20:28 -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 S1752223AbeBSITJ (ORCPT + 99 others); Mon, 19 Feb 2018 03:19:09 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:54568 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751752AbeBSITG (ORCPT ); Mon, 19 Feb 2018 03:19:06 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 23E4120740; Mon, 19 Feb 2018 09:19:05 +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, URIBL_BLOCKED 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 C2DDF207B4; Mon, 19 Feb 2018 09:18:54 +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 6/7] arm: dts: sun8i: a83t: Fix undefined offset with virtual timer Date: Mon, 19 Feb 2018 09:18:36 +0100 Message-Id: <20180219081837.15482-7-mylene.josserand@bootlin.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180219081837.15482-1-mylene.josserand@bootlin.com> References: <20180219081837.15482-1-mylene.josserand@bootlin.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 The ARM architected timers use an offset between their physical and virtual counters. That offset should be configured by the bootloader in CNTVOFF. However, the A83t bootloader fails to do so, and we end up with an undefined offset (which in our case is random), meaning that each CPU will have a different time, which isn't working very well. Fix that by setting the arm,cpu-registers-not-fw-configured that will make Linux use the physical timers instead of the virtual ones. One possible side effect would be that the virtualization features would be disabled. However, due to the way the GIC has been integrated in the system, it is already unusable so we're effectively not losing any feature. Signed-off-by: Mylène Josserand --- arch/arm/boot/dts/sun8i-a83t.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index e97a6d17b8d0..b9bdb891cf2f 100644 --- a/arch/arm/boot/dts/sun8i-a83t.dtsi +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi @@ -123,6 +123,7 @@ , , ; + arm,cpu-registers-not-fw-configured; }; clocks { -- 2.11.0