From owner-freebsd-arm@freebsd.org Tue Sep 29 16:54:33 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 59E7BA0B111 for ; Tue, 29 Sep 2015 16:54:33 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from kif.fubar.geek.nz (kif.fubar.geek.nz [178.62.119.249]) by mx1.freebsd.org (Postfix) with ESMTP id 29D5A101F; Tue, 29 Sep 2015 16:54:32 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from bender.Home (unknown [90.214.223.59]) by kif.fubar.geek.nz (Postfix) with ESMTPSA id 9E82CD7907; Tue, 29 Sep 2015 16:54:26 +0000 (UTC) Date: Tue, 29 Sep 2015 17:54:22 +0100 From: Andrew Turner To: Konstantin Belousov Cc: Ian Lepore , freebsd-arm@freebsd.org Subject: Re: Shared page and related goodies for ARMv7 Message-ID: <20150929175422.417baf94@bender.Home> In-Reply-To: <20150929162312.GJ11284@kib.kiev.ua> References: <20150929132332.GH11284@kib.kiev.ua> <1443539982.1224.433.camel@freebsd.org> <20150929162312.GJ11284@kib.kiev.ua> X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; amd64-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Sep 2015 16:54:33 -0000 On Tue, 29 Sep 2015 19:23:12 +0300 Konstantin Belousov wrote: > On Tue, Sep 29, 2015 at 09:19:42AM -0600, Ian Lepore wrote: > > I just skimmed through the patch quickly and the main thing that > > jumps out at me is that what you've done works only on rpi2 and > > aarch64, because those are the only platforms that support that > > timer hardware. (That means I can't test it, but once I get your > > patch in a usable form I can have a shot at implementations for > > other timers). > Cortex A7/A15 and whole ARMv8 is not too bad set of machines for fast > gettimeofday() IMO, at least for the first try. I am willing to > adjust both approach and code it for wider usefulness. It's an optional feature on ARMv7, we only build it for Exynos 5, Raspberry Pi 2, and QEMU virt. How will it work on hardware that lacks the generic timer? Will it always try and use this hardware, even if it's missing, or do we need to tell userland what to use, with a fallback to a syscall? Andrew