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=-5.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham 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 2E242C43603 for ; Mon, 9 Dec 2019 10:31:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0161620866 for ; Mon, 9 Dec 2019 10:31:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575887479; bh=gafekmb4KwDK0GFglr1pIqczrJdYTdFqnQ7Hxp+1pNk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=WThcNaelTp0B0CAoXUdkPRRnkpeo7YtynmUcsDWDRbdDhtD8r5UNw0UCEQHnIbL6g 8ejZe7YiiPUS8tYADSLaUecBCx7GDa2ptupSYmoZPO/faddwTZx11KPJYPNMf66xHF KRVCRB+H/UlmCnX1o1IefZy9kf6qYyk5Vj2V3eMM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727463AbfLIKbR (ORCPT ); Mon, 9 Dec 2019 05:31:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:46694 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727188AbfLIKbR (ORCPT ); Mon, 9 Dec 2019 05:31:17 -0500 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8FB62207FD; Mon, 9 Dec 2019 10:31:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575887476; bh=gafekmb4KwDK0GFglr1pIqczrJdYTdFqnQ7Hxp+1pNk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=y7CL2LY2P0Wt4SWbIonQ4EPnbdkoSkwr6PVzFh7izIJbM3ClApk9TBkeWb1EuINKC XYINiL8nP5MJkyBbbtJIp3hfFwqLDd+ygIMRa1+j2IRSJ0X/sWm19KFUZMBRmZKnyT B2MT2ZBN/nHWBQJqibdl+yX6hEB2qFeb9A+J7xnM= Date: Mon, 9 Dec 2019 10:31:11 +0000 From: Will Deacon To: Thomas Renninger Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, Felix Schnizlein , 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, Felix Schnizlein Subject: Re: [PATCH 3/3] arm64 cpuinfo: implement sysfs nodes for arm64 Message-ID: <20191209103110.GB3306@willie-the-truck> References: <20191206162421.15050-1-trenn@suse.de> <20191206162421.15050-4-trenn@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191206162421.15050-4-trenn@suse.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 06, 2019 at 05:24:21PM +0100, Thomas Renninger wrote: > From: Felix Schnizlein > > Export all information from /proc/cpuinfo to sysfs: > implementer, architecture, variant, part, revision, > bogomips and flags are exported. > > Example: > /sys/devices/system/cpu/cpu1/info/:[0]# head * > ==> architecture <== > 8 > > ==> bogomips <== > 40.00 > > ==> flags <== > fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid asimdrdm > > ==> implementer <== > 0x51 > > ==> part <== > 0xc00 > > ==> revision <== > 1 > > ==> variant <== > 0x0 > > Signed-off-by: Thomas Renninger > Signed-off-by: Felix Schnizlein > --- > Documentation/ABI/testing/sysfs-devices-system-cpu | 22 +++++++++ > arch/arm64/Kconfig | 1 + > arch/arm64/kernel/cpuinfo.c | 55 ++++++++++++++++++++++ > 3 files changed, 78 insertions(+) I don't understand why we need this on arm64 and why it's an improvement over all the other schemes we already support for identifying CPU features. Given the pain we've endured over the years exposing this sort of stuff to userspace, I'm relucant to add more just for the fun of it. Will 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=-5.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham 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 B99D9C43603 for ; Mon, 9 Dec 2019 10:31:30 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 88320207FD for ; Mon, 9 Dec 2019 10:31:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="I/g3FBTn"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="y7CL2LY2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 88320207FD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=rjQqG0nWzMftqF39afVyxpo/4a+tXu13f2CfiW7YmpQ=; b=I/g3FBTnCH4jPx Dd60IID98zhzMJGXu89WoSqkDOT/dSR+UU2pJqtOu/7+VUJebf3A4VvC1jTVgzHqjNphwMM9SGNar ihOErrksRaYTMVxjX/7ZO/Hl+zsqmf4gszgxL66nCFCTjgODhEUCH5I2/mmi1Aa8SMszqDjpU/YBV K9ijvTwx/FSoG7jXbaMreXXYazUKRGY78ytr4Hw+oIfW0NBCRZPXJogdhK/g0oEc+wdMtBhadHnsE ySpuTYnUhCyPEmUon7MPrsIH92qB5UTCEQWe3I5fMwxpIXT6CoL89N30PlSDOR0R5SqrgRjNQKXGJ AZcw1nFw3BTyArCgzWxw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ieGK1-0002kS-HU; Mon, 09 Dec 2019 10:31:21 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ieGJy-0002je-Pn for linux-arm-kernel@lists.infradead.org; Mon, 09 Dec 2019 10:31:20 +0000 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8FB62207FD; Mon, 9 Dec 2019 10:31:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575887476; bh=gafekmb4KwDK0GFglr1pIqczrJdYTdFqnQ7Hxp+1pNk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=y7CL2LY2P0Wt4SWbIonQ4EPnbdkoSkwr6PVzFh7izIJbM3ClApk9TBkeWb1EuINKC XYINiL8nP5MJkyBbbtJIp3hfFwqLDd+ygIMRa1+j2IRSJ0X/sWm19KFUZMBRmZKnyT B2MT2ZBN/nHWBQJqibdl+yX6hEB2qFeb9A+J7xnM= Date: Mon, 9 Dec 2019 10:31:11 +0000 From: Will Deacon To: Thomas Renninger Subject: Re: [PATCH 3/3] arm64 cpuinfo: implement sysfs nodes for arm64 Message-ID: <20191209103110.GB3306@willie-the-truck> References: <20191206162421.15050-1-trenn@suse.de> <20191206162421.15050-4-trenn@suse.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191206162421.15050-4-trenn@suse.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191209_023118_864286_3FC85EA5 X-CRM114-Status: GOOD ( 11.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, Felix Schnizlein , Felix Schnizlein , gregkh@linuxfoundation.org, x86@kernel.org, will.deacon@arm.com, linux@armlinux.org.uk, linux-kernel@vger.kernel.org, fschnitzlein@suse.de, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Dec 06, 2019 at 05:24:21PM +0100, Thomas Renninger wrote: > From: Felix Schnizlein > > Export all information from /proc/cpuinfo to sysfs: > implementer, architecture, variant, part, revision, > bogomips and flags are exported. > > Example: > /sys/devices/system/cpu/cpu1/info/:[0]# head * > ==> architecture <== > 8 > > ==> bogomips <== > 40.00 > > ==> flags <== > fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid asimdrdm > > ==> implementer <== > 0x51 > > ==> part <== > 0xc00 > > ==> revision <== > 1 > > ==> variant <== > 0x0 > > Signed-off-by: Thomas Renninger > Signed-off-by: Felix Schnizlein > --- > Documentation/ABI/testing/sysfs-devices-system-cpu | 22 +++++++++ > arch/arm64/Kconfig | 1 + > arch/arm64/kernel/cpuinfo.c | 55 ++++++++++++++++++++++ > 3 files changed, 78 insertions(+) I don't understand why we need this on arm64 and why it's an improvement over all the other schemes we already support for identifying CPU features. Given the pain we've endured over the years exposing this sort of stuff to userspace, I'm relucant to add more just for the fun of it. Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel