From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751408AbdKUV2R (ORCPT ); Tue, 21 Nov 2017 16:28:17 -0500 Received: from mail-io0-f195.google.com ([209.85.223.195]:42073 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751229AbdKUV2Q (ORCPT ); Tue, 21 Nov 2017 16:28:16 -0500 X-Google-Smtp-Source: AGs4zMa40DSjIe2NysEekwPn0KvzdTPaqbllRoDa+YxKKbFSksiHswYnTc4k8/9XgoRyh4zm6Odjhg== Subject: Re: [PATCH v4 10/12] arm64: vdso: replace gettimeofday.S with global vgettimeofday.C To: Jon Masters , linux-kernel@vger.kernel.org, James Morse , Russell King , Catalin Marinas , Will Deacon , Andy Lutomirski , Dmitry Safonov , John Stultz , Mark Rutland , Laura Abbott , Kees Cook , Ard Biesheuvel , Andy Gross , Kevin Brodsky , Andrew Pinski , Thomas Gleixner , linux-arm-kernel@lists.infradead.org References: <20171031183306.81375-1-salyzyn@android.com> <7775cc5e-4a24-1e33-aae5-6181ca018d80@android.com> <61EF90BA-9A6D-4DC4-A1F4-BEAA210D708C@redhat.com> <20171121180319.tawkc42jjx4ow3hg@tarantula.localdomain> From: Mark Salyzyn Message-ID: Date: Tue, 21 Nov 2017 13:28:13 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171121180319.tawkc42jjx4ow3hg@tarantula.localdomain> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/21/2017 10:03 AM, Jeffrey Bastian wrote: > On Thu, Nov 02, 2017 at 12:22:36AM -0400, Jon Masters wrote: >> On Nov 2, 2017, at 06:14, Mark Salyzyn wrote: >>> Holding off respin or followup patch until after we get a response >>> from Jon Masters on their QE tests on this patch >>> series. >> Copying Jeff Bastian who owns QE. Jeff, can you recall what test was >> failing when we tried the gettimeofday C rewrite VDSO patches? > The LTP clock_getres01 test was failing when we tried the initial > implementation of gettimeofday-in-C. This would be a good place to > start when testing the new version of the patches. > > https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/syscalls/clock_getres/clock_getres01.c > > Thanks. I ran the test (32 and 64 bit) on my latest work (but back-ported to 4.9) and it passes. I did not change __vdso_clock_getres or the fallback (syscall) handler in the patch series though, so the failure has me wondering. Could you re-run the test with latest to be sure, and I will look into setting up to test with a ToT kernel (after the thanksgiving break). Using bionic libc, with advance modifications to utilize __vdso_clock_getres; required in order to support the test. NB: in AOSP _today_ bionic does _not_ propagate the errno correctly on the __vdso_clock_gettime vdso path and will understandably fail the similar tests. The public rubber stamp of __vdso_clock_gettime code to support __vdso_clock_getres will not work. errno propagation issue will be fixed in bionic. -- Mark