Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752791AbdFSQNj (ORCPT ); Mon, 19 Jun 2017 12:13:39 -0400 Received: from esa2.dell-outbound.iphmx.com ([68.232.149.220]:17755 "EHLO esa2.dell-outbound.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751021AbdFSQNg (ORCPT ); Mon, 19 Jun 2017 12:13:36 -0400 From: X-LoopCount0: from 10.175.218.62 X-IronPort-AV: E=Sophos;i="5.39,361,1493701200"; d="scan'208";a="1122204872" To: , CC: , , , , , Subject: RE: [PATCH v2] platform/x86: wmi-bmof: New driver to expose embedded Binary WMI MOF metadata Thread-Topic: [PATCH v2] platform/x86: wmi-bmof: New driver to expose embedded Binary WMI MOF metadata Thread-Index: AQHS6RaFQr3mTLXLhkCCa/OINt9UFaIsW0Iw Date: Mon, 19 Jun 2017 16:13:13 +0000 Message-ID: <074e9d5668864a81b255df178ed28814@ausx13mpc120.AMER.DELL.COM> References: <201706191807.42574@pali> In-Reply-To: <201706191807.42574@pali> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.143.18.86] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id v5JGE2Ri024590 Content-Length: 2514 Lines: 56 > -----Original Message----- > From: Pali Rohár [mailto:pali.rohar@gmail.com] > Sent: Monday, June 19, 2017 11:08 AM > To: Andy Lutomirski > Cc: platform-driver-x86@vger.kernel.org; Andy Shevchenko > ; Andy Lutomirski ; > Limonciello, Mario ; Rafael Wysocki > ; linux-kernel@vger.kernel.org; linux-acpi@vger.kernel.org > Subject: Re: [PATCH v2] platform/x86: wmi-bmof: New driver to expose embedded > Binary WMI MOF metadata > > On Tuesday 06 June 2017 05:16:44 Andy Lutomirski wrote: > > Many laptops (and maybe servers?) have embedded WMI Binary MOF > > metadata. We do not yet have open-source tools for processing the > > data, although one is in the works thanks to Pali: > > > > https://github.com/pali/bmfdec > > > > There is currently no interface to get the data in the first place. > > By exposing it, we facilitate the development of new tools. > > > > Signed-off-by: Andy Lutomirski > > Cc: Andy Lutomirski > > Cc: Mario Limonciello > > Cc: Pali Rohár > > Cc: linux-kernel@vger.kernel.org > > Cc: platform-driver-x86@vger.kernel.org > > Cc: linux-acpi@vger.kernel.org > > [dvhart: make sysfs mof binary read only, fixup comment block format] > > [dvhart: use bmof terminology and dev_err instead of dev_warn] > > Acked-by: Rafael J. Wysocki > > Signed-off-by: Darren Hart (VMware) > > --- > > since-v1: > > * address Pali's comments: > > * update the cover letter for clarity and accuracy > > * update mof->bmof and MOF to Binary MOF throughout the patch > > * use dev_err instead of dev_warn in wmi_bmof_probe > > > > > > drivers/platform/x86/Kconfig | 12 ++++ > > drivers/platform/x86/Makefile | 1 + > > drivers/platform/x86/wmi-bmof.c | 125 > > Another suggestion (unrelated to this patch): For working with ACPI-WMI, > this binary MOF buffer is not enough. It is needed also content of _WDG > buffer. What about exporting it too via sysfs? Probably not part of of > wmi-bmof driver, but wmi driver itself. > I think this depends upon how the userspace access to WMI methods gets implemented, no? If userpsace access to WMI methods show up as /dev/wmi-$GUID-$INSTANCE and those internally to the kernel map to the proper ASL methods for example, what you get from wmi-bmof should be enough shouldn't it?