Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp442743ybd; Fri, 28 Jun 2019 23:57:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7cff/Vivx/4+vtRutRVblkjDOysKoMLna7u2uaV9CvLrfIz2yUWbZZ6XpsD9SJglGJs4q X-Received: by 2002:a63:4185:: with SMTP id o127mr12616857pga.82.1561791474989; Fri, 28 Jun 2019 23:57:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561791474; cv=none; d=google.com; s=arc-20160816; b=GmkVYz68UESjNwc3jUoFSTRFgKxoUIQ7+qMfOSO2WO4pme8cAAxkR6EYGQeRtC6kTZ 9MBUQ25kClj1VSmzV9iHt70+RFx0aeWaRTEn6NrUby9cEAXpIVa+tF8Rs8raHhpJC0UA ZHO7bdQXWdcN8PxkxA1wjYP3gp29S+gA15lnndZ42iC/csdOE2dBtZEd66ks4ANQv3eW ygYmaXrm+neohiLnsFDMYuMsiJ6cK3aVkhRc+6u2xmbKBPrKtgj7e06nRkBmDNYExgb2 xmHpk56NFhVU8C5w1j6rZteOyFdjdTSufN9ycmAV33YoFDvHEHMBclfqPrr+5RqHUvQW O3DQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=HnzsPSLwbFBVC9pwVNDZ5WRFvkf1+3679miOVYF29lo=; b=bAhrogwPtVcXm8T5/S8V/m8jpjtYWbEJh0vPmSh1KX11nuZAiJhieubbB2voKaLM0f QSteH2SaA8nst0DCHXsgfGCWsvLyW7LqhL2iqYaYfZdSLiK2EUFOMqZRhxi9FhibQU9u 712w4IsuoFCXAC9kN+VKyyRhq/kIHwbqtZN1J+20YhAdbgcxD4dTH5F6PLVdwTn3EsC3 7rnNs7gT/cR3DF2sUCFF0Zmxc2Nds8VgI6aumk4OolHNOpyJY0ylGgNwY3cpG5xBj7tB 9Nqrbx4d5YSznJcGuiFbkSpxCPUtGe75YHWr3mXsiJRZFkQEl9tICy6XfZdMCs9qwfN7 WKvA== 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 z13si4001234pgj.205.2019.06.28.23.57.38; Fri, 28 Jun 2019 23:57:54 -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 S1726813AbfF2G5f (ORCPT + 99 others); Sat, 29 Jun 2019 02:57:35 -0400 Received: from foss.arm.com ([217.140.110.172]:60628 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726156AbfF2G5f (ORCPT ); Sat, 29 Jun 2019 02:57:35 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2D3C928; Fri, 28 Jun 2019 23:57:34 -0700 (PDT) Received: from [192.168.1.18] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2026F3F246; Fri, 28 Jun 2019 23:59:20 -0700 (PDT) Subject: Re: [PATCH v7 04/25] arm64: Substitute gettimeofday with C implementation To: Sylwester Nawrocki Cc: Marek Szyprowski , linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-kselftest@vger.kernel.org, Shuah Khan , Andre Przywara , Arnd Bergmann , Huw Davies , Catalin Marinas , Daniel Lezcano , Will Deacon , Russell King , Ralf Baechle , Mark Salyzyn , Paul Burton , Dmitry Safonov <0x7f454c46@gmail.com>, Rasmus Villemoes , Thomas Gleixner , Shijith Thotton , Peter Collingbourne References: <20190621095252.32307-1-vincenzo.frascino@arm.com> <20190621095252.32307-5-vincenzo.frascino@arm.com> <1fd47b0d-f77f-8d07-c039-6ac9072834fc@samsung.com> <27386d82-2906-b541-f71d-3c61f5099bdf@arm.com> <530cd07e-0da7-1d83-be4e-b14813029424@samsung.com> From: Vincenzo Frascino Message-ID: <06c264a8-8778-18b1-1094-4281a4a2abc9@arm.com> Date: Sat, 29 Jun 2019 07:58:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: <530cd07e-0da7-1d83-be4e-b14813029424@samsung.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sylwester, thank you for the quick turn around to my email. On 6/28/19 5:50 PM, Sylwester Nawrocki wrote: > Hi Vincenzo, > > On 6/28/19 16:32, Vincenzo Frascino wrote: >> On 6/28/19 2:09 PM, Marek Szyprowski wrote: >>> On 2019-06-21 11:52, Vincenzo Frascino wrote: >>>> To take advantage of the commonly defined vdso interface for >>>> gettimeofday the architectural code requires an adaptation. >>>> >>>> Re-implement the gettimeofday vdso in C in order to use lib/vdso. >>>> >>>> With the new implementation arm64 gains support for CLOCK_BOOTTIME >>>> and CLOCK_TAI. >>>> >>>> Cc: Catalin Marinas >>>> Cc: Will Deacon >>>> Signed-off-by: Vincenzo Frascino >>>> Tested-by: Shijith Thotton >>>> Tested-by: Andre Przywara >>>> Signed-off-by: Catalin Marinas >>> >>> This patch causes serious regression on Samsung Exynos5433 SoC based >>> TM2(e) boards. The time in userspace is always set to begin of the epoch: >>> >>> # date 062813152019 >>> Fri Jun 28 13:15:00 UTC 2019 >>> # date >>> Thu JanĀ  1 00:00:00 UTC 1970 >>> # date >>> Thu JanĀ  1 00:00:00 UTC 1970 >>> >>> I've noticed that since the patch landed in Linux next-20190625 and >>> bisect indeed pointed to this patch. >>> >> Thank you for reporting this, seems that the next that you posted is missing >> some fixes for arm64. >> >> Could you please try the tree below? >> >> git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/vdso >> >> Let us know if the functionality is restored. Otherwise the issue will require >> further investigation. > > Marek is already out for holidays, I gave your tree a try but kernel from > that branch was failing to boot on TM2(e). > > Then I have cherry-picked 5 patches from the branch that seemed to > be missing in next-20190628: > > 28028f3174cf1 (HEAD) MAINTAINERS: Fix Andy's surname and the directory entries of VDSO > ec8f8e4bf2206 arm64: vdso: Fix compilation with clang older than 8 > 721882ebb5729 arm64: compat: Fix __arch_get_hw_counter() implementation > 7027fea977a3d arm64: Fix __arch_get_hw_counter() implementation > 10b305853fe22 lib/vdso: Make delta calculation work correctly > 48568d8c7f479 (tag: next-20190628, linux-next/master) Add linux-next specific files for 20190628 > > With those 5 additional patches on top of next-20190628 the problem > is not observed any more. date, ping, etc. seems to be working well. > > # date > Fri Jun 28 16:39:22 UTC 2019 > # > # systemctl stop systemd-timesyncd > # > # date 062818392019 > Fri Jun 28 18:39:00 UTC 2019 > # date > Fri Jun 28 18:39:01 UTC 2019 > # > # date 062818432019; date > Fri Jun 28 18:43:00 UTC 2019 > Fri Jun 28 18:43:00 UTC 2019 > # date > Fri Jun 28 18:43:04 UTC 2019 > This seems ok, thanks for spending some time to test our patches against your board. If I may, I would like to ask to you one favor, could you please keep an eye on next and once those patches are merged repeat the test? I want just to make sure that the regression does not reappear. Have a nice weekend. > -- > Regards, > Sylwester > -- Regards, Vincenzo