Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp944126ybp; Wed, 9 Oct 2019 06:40:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5ruMLADJmM2JIXDaOs8G2pYiGhjjz0SOu2BEQznh/TXrEvQjm+qIXCOTyKOuxVQqv68LP X-Received: by 2002:a50:9a46:: with SMTP id o64mr3056580edb.191.1570628417415; Wed, 09 Oct 2019 06:40:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570628417; cv=none; d=google.com; s=arc-20160816; b=dohK493uUDuQL5JhhvNBPWX6g6FEkyFFxW8lnrvA8xVFRPxIJ1jRglK5E0AJU19H46 8sFzCz5D9VeXpU0FEWeOdckTj3SzdnVOul66udnDbIdFe1fdRY/NAPaWTD2/2YEd8TXG o+bK48upKpJUd9Q7qE57ST39Wr6bPar0zfx+Bk8sUEvTxB6NUcAmzC5EMkiAtEy9BuEv UvQol6oe/ox/vG55/lVTQyP24HFFNgIZz/c/ifdApkjoyNt3a1OoZZyGzamMk9F+83SI DlgiDYilH7eglvpUbRFnEZYIe+gSQiK752lVQaYVkYZWaYEQTd1DEaKeLOdTtYhRm5E4 PRiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XfFUTXDUlOBhRb5NjOcI6XT8SYuoYPJzK11sfR/uJkA=; b=U7E6oHvIrrKSbJOBomrU/e3uMMI5p637Bh5af8QVaLWgE70Y22fFjEWGYjWf5ZDejw o6wk3zXLsM4yNVMopPNUmT4cfwdwnQcpuOrfZpaEKB2+m4Pk5HrYxaHF4ObSL8hDhL4c JNOHck7fGPSwQP/GhMma4vQ6jgxfSwblVIGgxhxjBsiX4ApVbPyVX8bRVNlcOeC7JwHH eJiX+yN2/e+inugoGPSg/dG7HYAmSR2s8G+pVpmRWC9qyQbnygkGilmZgk40449twvhy KTB+OTW7F2fgo3TenoJXwZ31pm57VrqONNXdRkOjVfP/DYBIgzO7pxT8YnPsDVuAu4tG RjZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=TkpLetSu; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g25si1117858ejr.409.2019.10.09.06.39.51; Wed, 09 Oct 2019 06:40:17 -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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=TkpLetSu; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731361AbfJINhP (ORCPT + 99 others); Wed, 9 Oct 2019 09:37:15 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:33274 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731183AbfJINhP (ORCPT ); Wed, 9 Oct 2019 09:37:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XfFUTXDUlOBhRb5NjOcI6XT8SYuoYPJzK11sfR/uJkA=; b=TkpLetSuWl8IcRpP8aCZuAweh rQ//FqOsPsXPcYJaQWrJ5aAhgDZL0qJHoZ73wlcoyF1KNoBWv0Ino2ACKa67KCOxx20xy3XCwf6+O VXo+b4KcDuCtrfE7AJaVQcVmRn82phybnp+1dy1SUQZZAO/1ZqWLk6cWTpjLlVIMtR5cw=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=ypsilon.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iIC9O-0004sS-EY; Wed, 09 Oct 2019 13:37:10 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 2E1F92741DF9; Wed, 9 Oct 2019 14:37:09 +0100 (BST) Date: Wed, 9 Oct 2019 14:37:09 +0100 From: Mark Brown To: Stephen Boyd Cc: Cheng-yi Chiang , Guenter Roeck , Tzung-Bi Shih , Linux Kernel Mailing List , ALSA development , Hung-Te Lin , Greg Kroah-Hartman , Sean Paul , Dylan Reid , Tzung-Bi Shih , Srinivas Kandagatla Subject: Re: [PATCH] firmware: vpd: Add an interface to read VPD value Message-ID: <20191009133709.GB3929@sirena.co.uk> References: <20191007071610.65714-1-cychiang@chromium.org> <5d9b5b3e.1c69fb81.7203c.1215@mx.google.com> <5d9ca7e4.1c69fb81.7f8fa.3f7d@mx.google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xgyAXRrhYN0wYx8y" Content-Disposition: inline In-Reply-To: <5d9ca7e4.1c69fb81.7f8fa.3f7d@mx.google.com> X-Cookie: Every path has its puddle. 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 --xgyAXRrhYN0wYx8y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Oct 08, 2019 at 08:14:43AM -0700, Stephen Boyd wrote: > Quoting Cheng-yi Chiang (2019-10-07 11:50:31) > > IMO the nvmem approach would create more complexity to support this > > simple usage. Plus, the underlying assumption of accessing data with > > offset in a buffer does not fit well with the already parsed VPD > > values in a list of vpd_attrib_info. But if you strongly feel that > > this is a better approach I can work toward this. > I'm not sure how an ACPI system like this would work because my exposure > to ACPI is extremely limited. I would expect there to be some sort of > firmware property indicating that an nvmem should be used and it's > provided by VPD or for firmware to parse VPD itself and put the > information into the ACPI table for this device. I fear this is optimistic. It's fairly idiomatic for ACPI for stuff like this to be keyed off DMI information rather than integrated with anything, basically once you get out of the bits that are explictly standardized you're into board file territory. There is the _DSD stuff for using DT properties in ACPI but it's had limited use AFAICT. --xgyAXRrhYN0wYx8y Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl2d4oQACgkQJNaLcl1U h9AkxAf/WtJz8gLoIEhfmWFM3Y4Qvz6cFPqsO5kNBWEQH18SykjRbNumBoeynRlg 0j+2Vz6nFCns429nsLJ/ooS/sKbFGY9UfK8TDxJdUiifheot3MJahzT92vTj7LbB AGk+U9e4/n627enaqdqDGmf8m2aPpUqJdmPhr0zuV8/N2c3SMzCTcBXB4BGqkd9I My1IdAX5qlmi5+Q0SXmUJjwJtiVs0rdurw3TcKaOdpvhDmyLdJVuaLYmM1QXh0v8 G5UNLVXzEN0RJZO7dDnbImprk1hOTC7Sze0T5ykh0W0UeydBAw7stk0zVGYro7jO K/UYMfOOX3LPFttYf22WeGOLFUf5TQ== =UWfy -----END PGP SIGNATURE----- --xgyAXRrhYN0wYx8y--