Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp579363ybb; Wed, 25 Mar 2020 05:46:58 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvEJxj+ualRiEonmN9v6F0no1aeuMggmv9V0c0n8AdPI80VgfLrrYG+4kxb4fG5lJBstI/i X-Received: by 2002:a05:6830:1051:: with SMTP id b17mr2371348otp.157.1585140418079; Wed, 25 Mar 2020 05:46:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585140418; cv=none; d=google.com; s=arc-20160816; b=SxGkM1Yh6QGtaHLl4NazqRiBiCiuN8LU1rKi0bN4MzTnJQTxcMxP37kimnWjh9tGxw 8VdCkdxWLobLCkbgGRIbGNGE8VyFdpyLif2fS5eyJHuKT0kF7Gikpts9sTmU5YNlNFjg r5ZmIrIs+H+39YlNLmvHKVHIufziFCdL+GF2lSSVx35a11ey2ln0ziZ+lSR/Xeh1f7rz xxgwtxhdhu5yMP7SVZ7sRauC3iCFVOZGUHs4Hovt6KJwdmBu9/1ElvmubvttwfCk07hC Lz308+OOEQd+X65CWgOMvdu80Ndc6/aMfz60gqKNuQDZjEXpsXAFUftPczE014js54B/ 158w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=hSYr50g/KiRq7rbDuhfXVHS/4zZ8KNe6DJGXMUcV/1g=; b=zAI27LVWcs+hAZRRg3t5gFYuDibcOBa8IgjTxJLPDvteMk8qgn1GepGWUW326imY6G E0UbpkANq7jyWMWTGFY9T7PoEuee2Fb/o+4gi0Jfom/pRlDuN+LkKXvdQdr7MpNcGsiK uyXvbeUZWRNQ+hJMXZg8CUqXQNtYaKflSkc9ab2HUVu17QjFBrr72vdJ5FXCsSmBGDhM 5C1JtoVStKwhKZhoasvbQVca97SapeN98TFVtztMWPFbcz18Y8x0xueJzxKtkK0LviiY bbVu/rDIXtuQ100phq6u9cmLABI9XV12jWG9oAvhmFSepbWBuzCIo9x/Q4yV6C2wesK0 oupg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=E7zSW9me; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r19si10738490otq.241.2020.03.25.05.46.45; Wed, 25 Mar 2020 05:46:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=E7zSW9me; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727420AbgCYMpc (ORCPT + 99 others); Wed, 25 Mar 2020 08:45:32 -0400 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:17411 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727280AbgCYMpb (ORCPT ); Wed, 25 Mar 2020 08:45:31 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 25 Mar 2020 05:43:59 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Wed, 25 Mar 2020 05:45:30 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Wed, 25 Mar 2020 05:45:30 -0700 Received: from [10.26.72.231] (172.20.13.39) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 25 Mar 2020 12:45:30 +0000 Subject: Re: [PATCH] soc/tegra: fuse: Add custom SoC attributes To: Thierry Reding CC: , References: <20200320113716.6105-1-jonathanh@nvidia.com> <20200320151035.GB3706404@ulmo> From: Jon Hunter Message-ID: Date: Wed, 25 Mar 2020 12:45:28 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200320151035.GB3706404@ulmo> X-Originating-IP: [172.20.13.39] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1585140239; bh=hSYr50g/KiRq7rbDuhfXVHS/4zZ8KNe6DJGXMUcV/1g=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=E7zSW9mev9e5n/EFUeh7kBmqoJtXeYQsS/N3NULZOHF2s8M5LTJkDc5iN6FAqVQ4d iiKnZ3aJNGECdxjhEMEf7Iaf5qsTVMZtuER+lsNbqx7fk4SlCEHxdZVDrdyQj985/A GeDxvWHfz8jkPmN5C5CbOWcBPfxtFp02/01CtP+qm9HvDdMrhJ2QfQkZyNnL4l2SBS UtG87PN+i+NOIjRnvqs+1JRq3/brN+pFpMOvWYqXqJkhfo4NyNj/GQibH90NYlF3ee 85xRhba0LQUzpiH1lE/qM0AhbWyYRurLOUKAklPhGThD702dVQNRMR/8GwA/9oN4Bf rrewTQbQWNKTQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/03/2020 15:10, Thierry Reding wrote: > On Fri, Mar 20, 2020 at 11:37:16AM +0000, Jon Hunter wrote: >> Add a custom SoC attribute for Tegra to expose the HIDREV register >> contents to userspace via the sysfs. This register provides additional >> details about the fabrication and versioning of the device. Exposing >> this information is useful for identifying the exact device revision and >> device type. >> >> Please note that the fields in this register vary depending on the Tegra >> generation and so instead of exposing the individual fields, just expose >> the entire contents of the register. Details of the register fields can >> be found in the Technical Reference Manual for each Tegra device. > > That seems a little suboptimal to me. It's pretty trivial for the kernel > to distinguish between different SoC generations in order to know what > the fields are. It's a lot more difficult for userspace to do so. Is the > register completely different between SoC generations or just slightly? It looks like only Tegra194 is different which is a shame. Unfortunately, does not appear to be documented in the public TRM at the moment. Hopefully we can fix that. > Having individual fields exposed as individual attributes seems like it > would make it a lot easier for userspace to get at the needed bits. Yes that does make sense. Jon -- nvpublic