From patchwork Mon Oct 12 17:41:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Haslam X-Patchwork-Id: 7378111 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5493D9F1D5 for ; Mon, 12 Oct 2015 17:41:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8266B206F6 for ; Mon, 12 Oct 2015 17:41:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DB67C208D3 for ; Mon, 12 Oct 2015 17:41:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751449AbbJLRla (ORCPT ); Mon, 12 Oct 2015 13:41:30 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:35760 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751401AbbJLRla (ORCPT ); Mon, 12 Oct 2015 13:41:30 -0400 Received: by wicge5 with SMTP id ge5so159674828wic.0 for ; Mon, 12 Oct 2015 10:41:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bWvj2rjlPh96JDCJq1bmNfHTuB8OpRq1206ukqobgRY=; b=NvU8kaBXwD0k0VHf9ZWmlg9wD1DQYvkw4tmqvjvJ5Q6GDJKut8rLWD5hYOENrzUbQj MeGwvYsHL7NpAB8J4LAnFx+2AoF10LWsryTvuygpJhve0hB1v3N4iinhHp9wkPlsWQsM t6WO5s5QKpHo2XTitDWTLy0ES9AzHXFHsPf0k1VrpcZGWyXfw0Jrrv0S0Al9QVzPlf6e UhV9kG5SCuTs1rMcr6+CuW17FWatG/PPgagsE5S951E9JRYmXYshE0v96KbfhmcJvxE0 Y5Cpyl4Bkwaa3ngSFXE1UCe+hyOLWMKLitbQfZDGI0IjMy3pZr6ynYbJ0XRnrEGGrLgR 45IA== X-Gm-Message-State: ALoCoQmV018ftW3ZdWhhxXhI7usAIFmlrbwIcjjA8tmKoc0it6opyGCg3WE9yEMvHddG+QmfkrZA X-Received: by 10.180.8.68 with SMTP id p4mr16218913wia.16.1444671689005; Mon, 12 Oct 2015 10:41:29 -0700 (PDT) Received: from localhost.localdomain (LPoitiers-656-1-62-228.w90-63.abo.wanadoo.fr. [90.63.143.228]) by smtp.gmail.com with ESMTPSA id gw8sm50686wib.15.2015.10.12.10.41.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Oct 2015 10:41:28 -0700 (PDT) From: ahaslam@baylibre.com To: magnus.damm@gmail.com, horms@verge.net.au, geert@glider.be Cc: bcousson@baylibre.com, linux-sh@vger.kernel.org, Axel Haslam Subject: [RFC/RFT 1/6] ARM: shmobile: r8a7790: configure arch timer at boot Date: Mon, 12 Oct 2015 19:41:09 +0200 Message-Id: <1444671674-19275-2-git-send-email-ahaslam@baylibre.com> X-Mailer: git-send-email 2.4.5 In-Reply-To: <1444671674-19275-1-git-send-email-ahaslam@baylibre.com> References: <1444671674-19275-1-git-send-email-ahaslam@baylibre.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Axel Haslam it seems that the A7 arch timer is incorrectly configured and gives wrong random timestamps at boot. This can be seen by enabling kernel timestamps for dmesg. By adding the cpu-registers-not-fw-configured property on the device tree for the arch timer, only the physical arch timer is used and configured giving coherent timestamps for all cpu's. Signed-off-by: Axel Haslam --- arch/arm/boot/dts/r8a7790.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index a0b2a79..91b0eb0 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -212,6 +212,7 @@ timer { compatible = "arm,armv7-timer"; + arm,cpu-registers-not-fw-configured; interrupts = <1 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, <1 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, <1 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,