From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C53A6C432C0 for ; Thu, 28 Nov 2019 15:43:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9AC2E2178F for ; Thu, 28 Nov 2019 15:43:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726909AbfK1PnP (ORCPT ); Thu, 28 Nov 2019 10:43:15 -0500 Received: from elvis.franken.de ([193.175.24.41]:53133 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726510AbfK1PnP (ORCPT ); Thu, 28 Nov 2019 10:43:15 -0500 X-Greylist: delayed 1529 seconds by postgrey-1.27 at vger.kernel.org; Thu, 28 Nov 2019 10:43:15 EST Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1iaLY8-0003pZ-00; Thu, 28 Nov 2019 16:17:44 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id F11D9C0638; Thu, 28 Nov 2019 16:07:21 +0100 (CET) Date: Thu, 28 Nov 2019 16:07:21 +0100 From: Thomas Bogendoerfer To: "H. Nikolaus Schaller" Cc: Maarten ter Huurne , mips-creator-ci20-dev@googlegroups.com, Vincenzo Frascino , Ralf Baechle , Paul Burton , linux-mips@vger.kernel.org, Linux Kernel Mailing List , Discussions about the Letux Kernel Subject: Re: MIPS: bug: gettimeofday syscall broken on CI20 board Message-ID: <20191128150721.GA20142@alpha.franken.de> References: <18788C50-F29B-4BD7-89F6-B056FF490214@goldelico.com> <7b6275c7-ab2b-a647-6bf7-d5e1c4523c98@arm.com> <4807842.gtHLO0kk0V@hyperion> <01D75E67-EC2E-4C74-B9BB-752773C481A9@goldelico.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01D75E67-EC2E-4C74-B9BB-752773C481A9@goldelico.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 28, 2019 at 02:48:46PM +0100, H. Nikolaus Schaller wrote: > > What still does not fit into the picture is the errno = 1 i.e. EPERM. > Maybe I have to study the libc code that tries to read the ELF symbols > you have mentioned. It may fail for unknown reasons. to understand vdso you might look at arch/mips/vdso and lib/vdso kernel sources. And if I understand it correctly you neither have a working high resolution timer usable bei do_hres() in lib/vdso/gettimeofday.c or a working gettimeofday_fallback(), which is enabled via CONFIG_MIPS_CLOCK_VSYSCALL and needs either CSRC_R4K or CLKSRC_MIPS_GIC. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]