Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941740AbcJ0NzE (ORCPT ); Thu, 27 Oct 2016 09:55:04 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:52597 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937878AbcJ0Ny7 (ORCPT ); Thu, 27 Oct 2016 09:54:59 -0400 From: Arnd Bergmann To: Imran Khan Cc: andy.gross@linaro.org, David Brown , Rob Herring , Mark Rutland , "open list:ARM/QUALCOMM SUPPORT" , "open list:ARM/QUALCOMM SUPPORT" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list Subject: Re: [PATCH] soc: qcom: Add SoC info driver Date: Thu, 27 Oct 2016 15:41:51 +0200 Message-ID: <9172138.R1PTFlLtP9@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-34-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: References: <1476972386-28655-1-git-send-email-kimran@codeaurora.org> <4173870.AkctyO62lp@wuerfel> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:olQ6nBeV5LZz7E6NCRdavE8p58Pu62mrFHC3QDvEUQZC8BJXZAx V6f2aogBe3kwSQz/kYd3glwLxhirf7e7AKrCQcLvubta+qABOtaOldi/xHsfW35nlskWkjX fa1vJ3l+yim8R8wK52ZEipfOKofkrdhfymwacFdAt6p7Uv4U4cKhE2h7AgJQkqb+3KDpvzu v8cjMtN4cBfdbdD+CqihQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:vOP9KJeD0r4=:0GWS2dNEHfZC3COmdqcNAv OVmh/EtZrUtNwGD8JnayD8ZzxagbMYg9naO5uiU8RckA0DGTIyp0Psw7BVmKYzTHXPRol2fcZ oDCeCmwmgZvkhGXe2vCJlIQG5mg8x+RXlD0SHk1PQcHd/M07nKPwzKm8xmzjJgppv2JlPaQNq gD74iik7PVxg6zGxJATQOesccAy7Z+h/vpC61DVrVI7QhwiVZYaP5GX/J2at3xpPj7/DB5LpH OCVu/AnB9zpzj1x9i/yvz1irUAGPCZBYmc5P5C6qPixxXz3iy5BauUIVbG0bYZ7jjOs7BYUx0 vTTxl8UmSKRjJl0hrdN1htw8RYARp/R6yDvj5wbZbXRP2RYA8reZ4WrbXNfKfkik9CZgNSCS3 L+egUfzwsCek9HupC9YkMGHO52s1Ou9wkTIidWS2jrVpiWMYqCLzUrLNtfEQUPyNqy34PY9o7 olbsHuY40g0WGiWuHqXcbkBm7BLpme9/IL2iGEBWABoxwN6/5TNEZIyG3U1CPN/HM3JeMgw1E uvemJlBFTQPfOXFI+W5zt5gMEhqcIknqpBkzsIJ8UH/r/ruRWFMH/3HhkuMh3lxM2MuoCX35b nsYScHYIqZRLp04oh4QtFpXr8sCCDekF3cSjUCXPLHulG8sXeFEob8sVQVwL/MXoDRRkH8h1z JdFzDgrddVxlPgUU8RB6+h8YQv9vmOUJDM1SqOPVDp3IPXv0LgTMSRShKvDWvuHVenUiB3vYS ugP4eIBlmOy7BZ3l Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2231 Lines: 43 On Thursday, October 27, 2016 6:40:27 PM CEST Imran Khan wrote: > On 10/26/2016 8:16 PM, Arnd Bergmann wrote: > > On Wednesday, October 26, 2016 7:42:08 PM CEST Imran Khan wrote: > >> On 10/26/2016 7:35 PM, Arnd Bergmann wrote: > >>>>> As we are talking about generic soc_device_attribute fields, I was hoping that > >>>>> having a vendor field would be helpful as along with family it would provide > >>>>> a more thorough information. Also as more than one foundries may be used for > >>>>> a soc, can we have a field say foundry_id to provide this information. > >>> My first feeling is that this 'vendor' information can should be > >>> derived from the family. It's also not clear what would happen > >>> to this when a company gets bought. E.g. the Oxnas product family > >>> was subsequently owned by Oxford, PLX, Avago and Broadcom, and the > >>> mxs family was Sigmatel, Freescale, now NXP and might soon be > >>> Qualcomm. What would you put in there in this case? > >> > >> Okay, not having vendor field is fine for me. Could you also suggest > >> something about the foundry_id field. > > > > This one seems more well-defined, so it's probably ok to add. What > > would be the use case of reading this? Would you want to read it > > just from user space or also from the kernel? > > > > As of now the use case I can think of, only involve reading this from user > space. For example for the same soc, coming from different foundries with > different manufacturing process, we may have a situation where some inconsistent > h/w behavior is being observed only on parts received from a certain foundry > and in those cases this information may help in segregation of problematic socs > and may also be used in testing these socs under a different set of settings like > voltage, frequency etc. > > > Maybe this can be combined with a manufacturing process, which probably > > falls into a similar category, so we could have something like > > "TSMC 28ULP" as a string in there. > > > > Yes. Having a manufacturing process as part of foundry-id can provide a more > thorough information. Ok, sounds good. Let's do it like this. We can always add support for in-kernel matching of this string if needed later. Arnd