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 A622FC43603 for ; Fri, 6 Dec 2019 16:58:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 83477206DF for ; Fri, 6 Dec 2019 16:58:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726827AbfLFQ6H (ORCPT ); Fri, 6 Dec 2019 11:58:07 -0500 Received: from foss.arm.com ([217.140.110.172]:50636 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726271AbfLFQ6H (ORCPT ); Fri, 6 Dec 2019 11:58:07 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CBD1F31B; Fri, 6 Dec 2019 08:58:06 -0800 (PST) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9710F3F52E; Fri, 6 Dec 2019 08:58:05 -0800 (PST) Date: Fri, 6 Dec 2019 16:58:03 +0000 From: Mark Rutland To: Thomas Renninger Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux@armlinux.org.uk, will.deacon@arm.com, x86@kernel.org, fschnitzlein@suse.de Subject: Re: [PATCH v5 0/3] sysfs: add sysfs based cpuinfo Message-ID: <20191206165803.GD21671@lakrids.cambridge.arm.com> References: <20191206162421.15050-1-trenn@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191206162421.15050-1-trenn@suse.de> User-Agent: Mutt/1.11.1+11 (2f07cb52) (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas, On Fri, Dec 06, 2019 at 05:24:18PM +0100, Thomas Renninger wrote: > I picked up Felix Schnizlein's work from 2017. > > It was already reviewed by Greg-KH at this time and even > pushed into linux-next tree, when it came out that the mails > never reached lkml, even the list was added to CC. > > ARM people then correctly complained that this needs more review > by ARCH people. It got reverted, Felix had no time anymore and this > nice patcheset was hanging around nowhere... Can you please provide a rationale for this? It's not entirely clear to me what information people need or want, and there's some data in /proc/cpuinfo that I think makes no sense to try to export export in a structured way (e.g. bogomips). > > Tested on aarch64: > > /sys/devices/system/cpu/cpu1/info/:[0]# ls > architecture bogomips flags implementer part revision variant > > ------------------------------------------------------------ > > for file in *;do echo $file; cat $file;echo;done > architecture > 8 > > bogomips > 40.00 > > flags > fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid asimdrdm > > implementer > 0x51 > > part > 0xc00 > > revision > 1 > > variant > 0x0 For arm64 we already expose the MIDR and REVIDR register values under /sys/devices/system/cpu/cpu*/regs/identification, and that's the bulk of the useful information above (aside from the flags/hwcaps). Thanks, Mark.