Received: by 10.192.165.156 with SMTP id m28csp1019334imm; Wed, 18 Apr 2018 02:33:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+3ZZvSnB/iHqr8xXvv/UnZnZVEe3Zzq6wViAyCkXf2RNm4GPBCi5+sLxXAZMNuMyNXikI+ X-Received: by 2002:a17:902:be18:: with SMTP id r24-v6mr1383173pls.275.1524044000880; Wed, 18 Apr 2018 02:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524044000; cv=none; d=google.com; s=arc-20160816; b=xvzHknYOJrLsgC3DL0uIybOcwE3oeSFRF8YurU1J+VD/XQC8+uVeWG9Qk/XFYUk42i /CFEFoVE/hwl4TYPvYtIK+aDqgJuy4s9/jT9H274LMgmq8A3AAQYzxdNYEVHGfD0k8uK JHclXrjbkryBa/Zyu9lm8TJM4k+eLAMyrFsL0e5g0J3h7+CFI7oduPOO8GVTqgAPA/dV GTQGLa3Oy3D0F/1n6zKPbnq8LME6vHdhp6DYdgRmrSkVzVqhoGJ/hPM5bhb55sffrZPy pCQKdu4xKObvmsaegSLdh+WdinnK7QjVFzUu9v1HrtRB6Hv7XB672hbdJq16a4cUxfWJ sWhQ== 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:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=H8URVGqIRHGEACQ/v4MVNQ6xhxRUVSE7JQJ1+EcHV58=; b=Pqnq2KamhUjWc8hzNpmOsNNt0utG3plLjZwKZ0ZFDnJrTKU260KB1Z5+KKlL5J+0AT lXmTjxSTtLeezBQvVvFXpCr4fa/OYueXvBuog2n3Cc43EKwP6h4eKt7bf5ihzFaiJrW0 Gx85Bi8mDobRkxB7m+DNQwcwofL3fA2s34eEe2GgPJklOcl5crGjWPlnjpm9grQCySH+ PDy85hD7/h/GOqFiCPMAttjQRPU4PmTitPnA8/mOfieQ1uYeyWmAueoFAJqIYtTrVs79 IHNgxl8HicmFMZ/7s/ICIREIzOKRLtp+xUk9T+Cb46KaeCezzZliQHUut9dmO0YHzj4t qikA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ENIX5S11; 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 g28-v6si1032543plj.529.2018.04.18.02.33.07; Wed, 18 Apr 2018 02:33:20 -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=fail header.i=@gmail.com header.s=20161025 header.b=ENIX5S11; 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 S1752166AbeDRJav (ORCPT + 99 others); Wed, 18 Apr 2018 05:30:51 -0400 Received: from mail-vk0-f68.google.com ([209.85.213.68]:45662 "EHLO mail-vk0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750983AbeDRJat (ORCPT ); Wed, 18 Apr 2018 05:30:49 -0400 Received: by mail-vk0-f68.google.com with SMTP id 203so620046vka.12; Wed, 18 Apr 2018 02:30:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=H8URVGqIRHGEACQ/v4MVNQ6xhxRUVSE7JQJ1+EcHV58=; b=ENIX5S11JYSc9x7zB+MNdtcNLJDHkyoXUt/8D22hO8Va2uAzWLfZRs75tCYJEqipQI oaN/6Y8Kc9qC/yovbu5gqn1FpSuG1XXstrp5yiKFy4nGdjg7Sw99aFjCdUJiY2v4wlxL lX1W2QffKG0m8iSJfWlH9/9gGv/3Mo6RnH1KbDPjTLE5zaOyPUkjwqXXBgX1yUsiNN4a qPLf7wCARJbJYI1uTWlaTfekRqrgwNVBA4z3gu4LBUCIh3ESTMitGLHrhb7jJrvmAmgx ltnWOUBVGuKKzzZBi7Vd0yi1AZZ0RMYWuOrneKHdGkaszs7yqe2FxJklhJpUD4U8KYWA 0hVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=H8URVGqIRHGEACQ/v4MVNQ6xhxRUVSE7JQJ1+EcHV58=; b=e+/sw9bmLw8aqYZP8JadcdlSXLxaiMYiLVlOAWF9ePgki2PlrtxKrleXPPUR1XA2Je PDb3hGYVjLgB+Xfl4waK9Xjq9c94f4Y7/pMzKjZmpAH+S28xp73Sbu5hjoou6xWL1+H+ VNV2DhrveEjNNk0Y+zSU1Dvs0XAbwPIPsO5WU6Cv0+sjIB3Cti+myo8W3hM2xC9H14r6 17Ga7mBoKvCgQH6i6fTd5QKi9VVb/hqgOABb2r0CDzhznjDmFQsq+uia7Vsh445N5bJg JMvObjtopfuOZ7um7SdG6WZqAPt2a9hYWffiVXbhl/GlqXkVsDpORf5kqtQOL9ifPzjU HiMg== X-Gm-Message-State: ALQs6tDRYQ8nFy6+pxwlMnwPHKNUslUJedRDzFtgWYleG2X4S6wSsOLr tmjCHRSZN3fC4a5mFT+LcRka6KmLXUeBVk6ILTk= X-Received: by 10.31.181.8 with SMTP id e8mr758331vkf.125.1524043848341; Wed, 18 Apr 2018 02:30:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.122.68 with HTTP; Wed, 18 Apr 2018 02:30:47 -0700 (PDT) In-Reply-To: <20180416215032.5023-6-mylene.josserand@bootlin.com> References: <20180416215032.5023-1-mylene.josserand@bootlin.com> <20180416215032.5023-6-mylene.josserand@bootlin.com> From: Geert Uytterhoeven Date: Wed, 18 Apr 2018 11:30:47 +0200 X-Google-Sender-Auth: ydqY3PIRRw_LEGfhevbRqg9bAeU Message-ID: Subject: Re: [PATCH v6 05/11] ARM: smp: Add initialization of CNTVOFF To: =?UTF-8?Q?Myl=C3=A8ne_Josserand?= Cc: Russell King , Maxime Ripard , Chen-Yu Tsai , Marc Zyngier , Mark Rutland , Rob Herring , Simon Horman , Magnus Damm , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LABBE Corentin , quentin.schulz@bootlin.com, Thomas Petazzoni , Linux ARM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allo Myl=C3=A8ne, On Mon, Apr 16, 2018 at 11:50 PM, Myl=C3=A8ne Josserand wrote: > The CNTVOFF register from arch timer is uninitialized. > It should be done by the bootloader but it is currently not the case, > even for boot CPU because this SoC is booting in secure mode. > It leads to an random offset value meaning that each CPU will have a > different time, which isn't working very well. > > Add assembly code used for boot CPU and secondary CPU cores to make > sure that the CNTVOFF register is initialized. Because this code can > be used by different platforms, add this assembly file in ARM's common > folder. Thanks for your patch! > Signed-off-by: Myl=C3=A8ne Josserand Reviewed-by: Geert Uytterhoeven Tested-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert --=20 Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k= .org In personal conversations with technical people, I call myself a hacker. Bu= t when I'm talking to journalists I just say "programmer" or something like t= hat. -- Linus Torvalds