Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6924107ybc; Thu, 28 Nov 2019 07:46:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxaDRu2thGaB41OjHmOesG3BOQEyfZlKAeURr86JGUiJf/U0oi96EihNQsLF4520340LJ/J X-Received: by 2002:aa7:c444:: with SMTP id n4mr38805150edr.3.1574955981220; Thu, 28 Nov 2019 07:46:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574955981; cv=none; d=google.com; s=arc-20160816; b=Y0otOEvTJrGk6CvhoYUY+0Jca4g4GSmSLJteZxvLPt2pXRPtFMsqJvYd9pK3xSh+df Ug2WZxh/yMR/yOWqjVo+QvG9cREeeXXHVHSau3h5CX8Zh6iAEqaCTwUX5Isknik7Njq9 ygFtn4RTRb9nOieooYANLaRSijNt3WBv+oUXdhhTC6Sr08BB/+xRI1C7LohngOoOTYoU UazuJ5mCQjof8EDi9TBeCmCwXCvNwb5aB2AJY5RxqSKNwvhw1Pwx8QiEYHVG73Urn+IE vbVZg8w8HQOeCXuyd8gDpE+hNFXh/jRDanp3jLK+9lus+hCuHtIrhMCBmsZwnwPtMGlx n/BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=2hrt0eQP3MaMZre4mD5d1SYApOgLywC8ro5+HQxOiMs=; b=iGSXmH/WXo5UmDKwqjL94KqhS9Dxw+lD0uytoi74u5cxjfuFHnm7OWc/VEluU4FiN8 GkReDT4X/lvS7dr1eQxV44rhtPJOPqsmRXtvkRz3E5o+zduSRS+eXN4t+mXrmBHTq09K 2LhMH36JrjuXqtYF6v9Z1kk+tyHZoQomxfAINGqkhD0Ar4MzSeCp/ypTySfTVNjNxl7t BxKk46ma/X3DhZAc1J7T6OxYcpV1B3cipb/8uCNHeSwOBtXK8nUl9RL3QIefhTd5gpNx a2AbAcB+6XjPRG5+0t5kwhOyebeDVsS7slDlswifYsDfKlCOEasEtXejSvgBrIRWQzKR HfAA== 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 n8si493686edq.276.2019.11.28.07.45.56; Thu, 28 Nov 2019 07:46:21 -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; 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 S1726858AbfK1PnP (ORCPT + 99 others); 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 ]