Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6718233ybc; Thu, 28 Nov 2019 04:19:52 -0800 (PST) X-Google-Smtp-Source: APXvYqxNswrvMfTx+vSPcFZKSiQv43rbSzn2+Nv/hpVaBQkABkhAml9Z7yQBHGQF3LzcdQepXjdf X-Received: by 2002:a17:906:a841:: with SMTP id dx1mr12888145ejb.259.1574943592071; Thu, 28 Nov 2019 04:19:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574943592; cv=none; d=google.com; s=arc-20160816; b=HRcRSlzVHKRv6EkUOn6sgnHSnSVhwhM7ntfkDpBkhSEaKaGmg4s4df6rdjNPIRdKpB 5Cv1lteGKk7PXYgb1WQwXXrmpYyCI1M3QaVJH/cqCUapHyoCjrGZ8UJcRXzXXbeNVX9K LWvrk8JGq2MpEdTqx6LBt1bLXN9/VC5VVlCHpthrXVbDP3pifPKUDSqGYdL7gwTxiE3u Pq5zxw5xk8G2do0jzcHW3fw8/i0ewXRUhDb9Hf5etZUpizXP+91j5DiOTFMPfQjnPyHa T69Jy1nz/7LdM59SazhU+9Zjfoe8Uio0hTGdJpnpK0ZBrcBf91MtSO3dRAGoHJiyanlC XmqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=j2Zi7z7PshzDcW95CJR/hmzUfkNJXaAcZIHrohG8tZM=; b=ybwq2v/I4qQWL2f8iL8qjaBs6jbmhckcudIhC52ppfEMxjg1P4Po5R2ALf1cMXR9D+ Ozfw6MAzVdo9O1PMlgNyFfbvXPqjuF1hI89N7scbBr1GhKjdyxdiaJEIPzpVa3tMn8OB fhtvBvZDJ8RXifrPQQatDM21V3690BA05Vp1VemqjSud5w6P9RCuJVQToTFIBR3PnNub f63X4Rjvx9zHEkHBkprmFgXiaJhHZNh7iDapsercfMT/Cxey044v8r7PmEpzeeQk1Rn8 W7loiAYUhxrz7auhjKg6s6lxpUX6GF6fnZZ2t38FHHQ5c1DRyvolW4xXh8p6NjNGjl7o xTOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=GoxDhbmI; 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 b5si12364769edq.173.2019.11.28.04.19.28; Thu, 28 Nov 2019 04:19:52 -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; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=GoxDhbmI; 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 S1726702AbfK1MRM (ORCPT + 99 others); Thu, 28 Nov 2019 07:17:12 -0500 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.52]:15783 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726227AbfK1MRM (ORCPT ); Thu, 28 Nov 2019 07:17:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1574943430; s=strato-dkim-0002; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=j2Zi7z7PshzDcW95CJR/hmzUfkNJXaAcZIHrohG8tZM=; b=GoxDhbmI6D5113ctTCILcQ+dUylJMyAgX5mAfHdKkL/Tw62aoIHuGiUspDOS6nZyey CVFP4JXQmpj3+9ASfeUEKXAznrD4+/HjSr2IiXlHGc6cerzL7Tc4/gD0mas9BAAv9Bdk RETJHPjL3B7oOfXmJngRH0ucSb3ek+v/K3NfSldxHXcNEZTpUmRQUqTwX0dETGA9ZM/x Fn4PK/HzFFU2Fv65uq0Wr/DloFJar8aWNy6YLP/yp4rlmBdx3pQYxg/5FhvEKHIu7u44 ncAPFDnoZ1SgXUXwz8s7sHgOGRkEophXbo+lx7CdlUhKuL17ejzoRqYzCBDIsWqHVKgR FHSg== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj4Qpw9iZeHmAiw43upSE=" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 45.0.2 DYNA|AUTH) with ESMTPSA id y07703vASCGvJQg (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Thu, 28 Nov 2019 13:16:57 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: MIPS: bug: gettimeofday syscall broken on CI20 board From: "H. Nikolaus Schaller" In-Reply-To: <96b53936-a288-91bc-a14b-a501c5231a03@arm.com> Date: Thu, 28 Nov 2019 13:16:57 +0100 Cc: linux-mips@vger.kernel.org, Ralf Baechle , Linux Kernel Mailing List , Paul Burton , MIPS Creator CI20 Development , Discussions about the Letux Kernel Content-Transfer-Encoding: quoted-printable Message-Id: <2966D06E-C754-4807-A48E-02D476EF1A24@goldelico.com> References: <18788C50-F29B-4BD7-89F6-B056FF490214@goldelico.com> <703DC004-96E8-463D-8870-3CC410FE1C5E@goldelico.com> <3190d1a4-96c4-1843-3ae1-bae3a97af9fb@arm.com> <8D151C34-41A1-4DFE-92D6-D1B27AEC8730@goldelico.com> <3E2EEC19-F320-4320-9A85-67B4E615C74A@goldelico.com> <96b53936-a288-91bc-a14b-a501c5231a03@arm.com> To: Vincenzo Frascino X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Am 28.11.2019 um 13:05 schrieb Vincenzo Frascino = : >=20 > Hi Nikolaus, >=20 > On 27/11/2019 14:29, H. Nikolaus Schaller wrote: >> Hi Vincenco, >>=20 > [...] >=20 >>>=20 >>> a) with 5.4 kernel >>>=20 >=20 > Could you please report the hash of your top commit? We have our own config and some compile fixes. But the base commit is 219d54332a09 >=20 > [...] >=20 >>=20 >> root@letux:~# ./gettime=20 >> r =3D -1 errno=3D1 >> tv.sec =3D 1 >> tv.usec =3D 1 >> rt =3D 1478193516 errno=3D1 >> t =3D 1478193516 >> root@letux:~#=20 >>=20 >=20 > On arm64 the output of your application is what follows: >=20 > r =3D 0 errno=3D0 > tv.sec =3D 1574942449 > tv.usec =3D 348684 > rt =3D 1574942449 errno=3D0 > t =3D 1574942449 >=20 > Which seems what it is expected. Indeed. Well, on all other arm architectures I can test (omap3/4/5, = imx6, raspi) it is correct. Only on mips jz4780 I see this. >=20 > On a previous email you mentioned what follows: >=20 > root@letux:~# cat /proc/cpuinfo > system type : JZ4780 > machine : img,ci20 > processor : 0 > cpu model : Ingenic JZRISC V4.15 FPU V0.0 > BogoMIPS : 1196.85 > wait instruction : yes > microsecond timers : no > tlb_entries : 32 > extra interrupt vector : yes > hardware watchpoint : yes, count: 1, address/irw mask: [0x0fff] > isa : mips1 mips2 mips32r1 mips32r2 > ASEs implemented : > shadow register sets : 1 > kscratch registers : 0 > package : 0 > core : 0 > VCED exceptions : not available > VCEI exceptions : not available >=20 > I am not familiar with JZ4780, which HW clock is it using? (R4K, GIC = or NONE)? Ah, good question. How do I find out? Checking defconfig did not show = any config with R4K or GIC. So it is likely NONE. CONFIG_RTC_DRV_JZ4740=3Dy = if that helps. BR and thanks, Nikolaus=