Received: by 10.192.165.148 with SMTP id m20csp1905568imm; Thu, 26 Apr 2018 04:03:08 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpIvEDBtBV65rhARA7OFR26iWQrMjEVJQnOaWcje5tXlwu+Yl5j/R8tDwO/q9Ynp08ee73Q X-Received: by 2002:a17:902:aa4b:: with SMTP id c11-v6mr6111300plr.17.1524740588841; Thu, 26 Apr 2018 04:03:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524740588; cv=none; d=google.com; s=arc-20160816; b=RXgyOC8gtMEQ5gsVcDrtj6/mqlUcrtKBpAWxzWzpgyZIUM3PdmK6OQ5PblrJMY33OC +95mpdhr+72k1zbRKiUe8zQ/HMB8sq/NQ8hpwFJdgZxULzNYM4O4690WMGxht3NKXb5W 7X9x18nVkyPl7FtYUNkoKXGemMCwvCcIDxl/Rhj4pPeUh0Ba3M/UoN9alHmE7aFzpbTW zvsZq5yJP8YA8SBajy4R0MKCv8EigFMCYpJS/rdJwnEuAtCnag2H8Q963JceKXVKXsbf +AjhzEEkbgLtiCJKuSRzxE3Zqz9g8ZkoQ0CAxgAsLiWIW70aPKlIirtQEp3cRiDLM0/9 w3Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=mPquu67GgQ+RuWe1yMSA18tNgSdiUXfakgumo3OMvzA=; b=M2YAkUeygJk16hdb1jvBrFXmB/DjY/5Rt+Grm8A1HPDw0S7RRgsMKvnE4V/NP+YGRb QZiqRJFEzmzYCO6oR66D0cPkEByuUDkxZZh+s4AicyytbG+f1z6NWHWGzbb6pY7v0zmJ 13bXG2pl/Y2IlxhShC1mhOsdkA1O27cZurT7zzrLMtFsJm0wRMl9WSjYzI+4mnE2Renh ZtuUkdfjhGLSSLNaVKhuQ3z8/kU0ILRdna3SJuBvsRw9uS5VotjUviSKzxW474sL3PK7 oza4c3O/Ku1ULzOtGYOETvk9/V0ZVoZ2cKJpyxHu3GPCCnnu30LZq48FT4GUdqCFv3kO INpA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p23si15307022pgv.153.2018.04.26.04.02.54; Thu, 26 Apr 2018 04:03:08 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755567AbeDZLBV (ORCPT + 99 others); Thu, 26 Apr 2018 07:01:21 -0400 Received: from mx2.suse.de ([195.135.220.15]:49941 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754958AbeDZLBP (ORCPT ); Thu, 26 Apr 2018 07:01:15 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 87724ACE5; Thu, 26 Apr 2018 11:01:13 +0000 (UTC) Message-ID: <1524740470.5117.3.camel@suse.de> Subject: Re: [PATCH] firmware: dmi: Add access to the SKU ID string From: Jean Delvare To: Vinod Koul , Simon Glass Cc: LKML , C Shapiro , Aaron Durbin , Mika Westerberg , Jonathan Corbet , Philippe Ombredanne , Andy Shevchenko , Alex Hung , Dmitry Torokhov , Greg Kroah-Hartman , sayli karnik , Sagar Dharia Date: Thu, 26 Apr 2018 13:01:10 +0200 In-Reply-To: <20180426093324.GV6014@localhost> References: <20180424211111.140374-1-sjg@chromium.org> <20180425025125.GH6014@localhost> <20180426093324.GV6014@localhost> Organization: Suse Linux Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On jeu., 2018-04-26 at 15:03 +0530, Vinod Koul wrote: > On Wed, Apr 25, 2018 at 03:17:37PM -0600, Simon Glass wrote: > > > > Hi Vinod, > > > > On 24 April 2018 at 20:51, Vinod Koul wrote: > > > > > > On Tue, Apr 24, 2018 at 03:11:11PM -0600, Simon Glass wrote: > > > > > > > > This is used in some systems from user space for determining the identity > > > > of the device. > > > > > > > > Expose this as a file so that that user-space tools don't need to read > > > > from /sys/firmware/dmi/tables/DMI > > > > > > sysfs is an ABI and needs to be documented, I don't see that in this patch, > > > pls add. > > > > Thanks for taking a look. The only mention of the dmi/id I can find is > > in Kconfig: > > Sorry I should have been explicit. All sysfs entries are ABI to userspace. > So they are documented in kernel and the meaning of files should not > typically get modfied over time. > Please read Documentation/ABI/README > > For DMI, quick grep told me you should add to > Documentation/ABI/testing/sysfs-firmware-dmi-tables No. This is a different interface to user-space (binary tables, instead of already decoded, selected attributes.) There is currently no formal documentation of the /sys/devices/virtual/dmi/id contents, so there's no file Simon can modify to mention product_sku. Instead, documentation of the whole directory should be added in a separate patch. -- Jean Delvare SUSE L3 Support