Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752286AbbKYSJU (ORCPT ); Wed, 25 Nov 2015 13:09:20 -0500 Received: from mail-qg0-f44.google.com ([209.85.192.44]:35662 "EHLO mail-qg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751672AbbKYSJM (ORCPT ); Wed, 25 Nov 2015 13:09:12 -0500 Date: Wed, 25 Nov 2015 13:09:09 -0500 (EST) From: Nicolas Pitre To: "Shi, Yang" cc: Jon Masters , Will.Deacon@arm.com, Catalin.Marinas@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org Subject: Re: [PATCH] arm64: restore bogomips information in /proc/cpuinfo In-Reply-To: <5655F09E.1060004@linaro.org> Message-ID: References: <1447870505-19319-1-git-send-email-yang.shi@linaro.org> <56554AE9.5070901@jonmasters.org> <5655F09E.1060004@linaro.org> User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2501 Lines: 61 On Wed, 25 Nov 2015, Shi, Yang wrote: > On 11/25/2015 7:16 AM, Nicolas Pitre wrote: > > On Wed, 25 Nov 2015, Jon Masters wrote: > > > > > On 11/18/15, 1:15 PM, Yang Shi wrote: > > > > > > > As what Pavel Machek reported [1], some userspace applications depend on > > > > bogomips showed by /proc/cpuinfo. > > > > > > > > Although there is much less legacy impact on aarch64 than arm, but it > > > > does > > > > break libvirt. > > > > > > > > Basically, this patch reverts commit > > > > 326b16db9f69fd0d279be873c6c00f88c0a4aad5 > > > > ("arm64: delay: don't bother reporting bogomips in /proc/cpuinfo"), but > > > > with > > > > some tweak due to context change. > > > > > > On a total tangent, it would be ideal to (eventually) have something > > > reported > > > in /proc/cpuinfo or dmesg during boot that does "accurately" map back to > > > the > > > underlying core frequency (as opposed to the generic timer frequency). I > > > have > > > seen almost countless silly situations in the industry (external to my own > > > organization) in which someone has taken a $VENDOR_X reference system that > > > they're not supposed to run benchmarks on, and they've done it anyway. But > > > usually on some silicon that's clocked multiples under what production > > > would > > > be. Then silly rumors about performance get around because nobody can do > > > simple arithmetic and notice that they ought to have at least divided by > > > some > > > factor. > > > > Be my guest my friend. > > > > According to the common wisdom, the bogomips reporting is completely > > senseless at this point and no one should expect anything useful from > > it. Therefore I attempted to rehabilitate some meaning into it given > > that we just can't get rid of it either and it continues to cause > > dammage. You certainly saw where that has led me. > > Or we may create a new one, i.e. "cpu MHz" like x86? Then we keep both in > cpuinfo so that the userspace could adopt it gradually? The problem is that CPU MHz is not known/discoverable on all platforms. The initial spirit behind bogomips was close to CPU clock with rough precision that could be determined at run time. But CPU MHz, when available, has the merit of not being open to interpretation. Nicolas -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/