Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5488796pxb; Wed, 26 Jan 2022 13:14:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8/daDZcMCCBajsYNXWTYgsLWloVqlYvkIcl3ekb2TXKUCMeBQJb+EuxxnKtVh8FP5CzKK X-Received: by 2002:a17:90a:7024:: with SMTP id f33mr10538791pjk.15.1643231646585; Wed, 26 Jan 2022 13:14:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643231646; cv=none; d=google.com; s=arc-20160816; b=vjsThL871yogYUMdQuXXyFgpGVrFyNqBPja1O/ztI5qhn1QpSV+G8fAKdjF5azdwCJ y35zBoIsTqFd+9B/5H3K7zcVGr0lp7G7Wgvxl74ByTd14XQOXAv9CIf4plXnFBm58ZpX pDcDRYU/QONjyb3trafcPKkuFumZG3Vxwr1LTC/2AErm1UmXliW/n1l3oJqCJemFEAEa oXKxaHBboNDqWnA+VOkcmuB5iSzT2kzBFUP8Jg6j/29bkPZtqaMODo3U1pgE+M3tBLl+ vArs9g00s3j2ukuFqHpzPe7Mo25SMy2E34s9JcGOwQdewAoflpJ1KEkwkQv3tLDr1z46 8L4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=wEFcPtfBrhTkFI/c69euZMhebU0h01/hmSUibQHl47o=; b=MW3gQoA49NzSAxXqkWq4pCSU0WMpVHdntQktqslnhttWmM52uO98nyqp4FV7b0Y7++ YTcEUf6DinZXL+m34Qs800nGmjtT10FOzrnY5boeQeMOh0I0RxclzaNysPY65Ht9QVnI GIPn11tIQe6CZ70mOBnKvTQAFc1sQWRGEpWK28PmEyMnHeJZtvImYinaIE8rCLpP97KZ tVSo84cY7aIR1oUTA6vNnLV5UR8ByNZeB6ZSA1EORIRw03ovgZSUqpMRQqoaSvGfCZ43 9AXm+pQjLnPJEK3nnD+wQ59R1wXtZ31Gjbp8onyEHKepg/Hnjnv1vnV30Eyau2oK5wTG AHnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MTOeXEL3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g132si327731pgc.29.2022.01.26.13.13.54; Wed, 26 Jan 2022 13:14:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MTOeXEL3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241309AbiAZM3E (ORCPT + 99 others); Wed, 26 Jan 2022 07:29:04 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:44636 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241298AbiAZM3D (ORCPT ); Wed, 26 Jan 2022 07:29:03 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 06265619C4 for ; Wed, 26 Jan 2022 12:29:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B78AC340E3; Wed, 26 Jan 2022 12:29:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643200142; bh=9EaamjmD9vwFtzb754Mi52eXxFzcSc0EN4SmOkuwgGU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MTOeXEL3N2P95u8T/bFZdMHIjmitx0MxOzCQlqZfEV/rpp+upRBh/SsVBx0dRbfWF TyIB9lPtBJNCzyP4ZaCV9VRx+WDN33irj7e5PWaOvpQsdNuVklU0zztKeigEHTeyFV bqKvbXOleFGWiLya93HwHE1WJyQNzqgoELbDX1gafSrKFMhCgmQqQyqSMZP+xQ+pis HFA0VNto8vc3kHTyfwbwtDTLJjnBBamf2tY1kZwi7xJ3rXnpWywHimEFj7eCBsb3lA tnPCbCbzTGD1KvqDHR0JPaFggZchR/+YjrWnHQLc1WWa+a1Y6zGHcHilOcOxeD+I5V v13FUGlvM6OLA== Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nChQ4-003D2u-9y; Wed, 26 Jan 2022 12:29:00 +0000 MIME-Version: 1.0 Date: Wed, 26 Jan 2022 12:29:00 +0000 From: Marc Zyngier To: Robin Murphy Cc: Chao Liu , catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, hewenliang4@huawei.com, zhoukang7@huawei.com Subject: Re: [PATCH v2] add cpu frequency to cpuinfo in arm64 In-Reply-To: References: <20220126092349.285642-1-liuchao173@huawei.com> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: maz@kernel.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: robin.murphy@arm.com, liuchao173@huawei.com, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, hewenliang4@huawei.com, zhoukang7@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-01-26 12:05, Robin Murphy wrote: > On 2022-01-26 09:23, Chao Liu wrote: >> There is cpu frequency in /proc/cpuinfo in x86 but not in arm64 > > arm64 cpuinfo also doesn't show the APIC ID or microcode version. > Different architectures are different. > > Besides, x86 cpuinfo only shows MHz if the CPU has X86_FEATURE_TSC, so > for compatibility we should only do this on AArch64 CPUs which have > X86_FEATURE_TSC. /me prepares a patch to be sent in just over 2 months... M. -- Jazz is not dead. It just smells funny...