Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751305AbdILTbs (ORCPT ); Tue, 12 Sep 2017 15:31:48 -0400 Received: from esa4.dell-outbound.iphmx.com ([68.232.149.214]:14344 "EHLO esa4.dell-outbound.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750742AbdILTbp (ORCPT ); Tue, 12 Sep 2017 15:31:45 -0400 X-Greylist: delayed 676 seconds by postgrey-1.27 at vger.kernel.org; Tue, 12 Sep 2017 15:31:45 EDT From: X-LoopCount0: from 10.170.28.39 X-IronPort-AV: E=Sophos;i="5.42,384,1500958800"; d="scan'208";a="1152315280" X-DLP: DLP_GlobalPCIDSS To: CC: , , , , Subject: RE: [PATCH v3] Add driver to force WMI Thunderbolt controller power status Thread-Topic: [PATCH v3] Add driver to force WMI Thunderbolt controller power status Thread-Index: AQHTK0c7uR5xYYUojUGNvKrrghaW4aKxoFig Date: Tue, 12 Sep 2017 19:19:32 +0000 Message-ID: References: <1504884191-16528-1-git-send-email-mario.limonciello@dell.com> <20170911214458.GB128849@localhost.localdomain> In-Reply-To: <20170911214458.GB128849@localhost.localdomain> 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="us-ascii" 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 quoted-printable to 8bit by nfs id v8CJVrKn020395 Content-Length: 2058 Lines: 53 > -----Original Message----- > From: Darren Hart [mailto:dvhart@infradead.org] > Sent: Monday, September 11, 2017 4:45 PM > To: Limonciello, Mario > Cc: LKML ; platform-driver-x86@vger.kernel.org; > Richard Hughes ; Yehezkel Bernat > ; Mika Westerberg > Subject: Re: [PATCH v3] Add driver to force WMI Thunderbolt controller power > status > > On Fri, Sep 08, 2017 at 10:23:11AM -0500, Mario Limonciello wrote: > > Current implementations of Intel Thunderbolt controllers will go > > into a low power mode when not in use. > > > > Many machines containing these controllers also have a GPIO wired up > > that can force the controller awake. This is offered via a ACPI-WMI > > interface intended to be manipulated by a userspace utility. > > > > This mechanism is provided by Intel to OEMs to include in BIOS. > > It uses an industry wide GUID that is populated in a separate _WDG > > entry with no binary MOF. > > > > This interface allows software such as fwupd to wake up thunderbolt > > controllers to query the firmware version or flash new firmware. > > > > Signed-off-by: Mario Limonciello > > Queued for testing, thanks everyone. > > -- > Darren Hart > VMware Open Source Technology Center Darren, Thanks. FYI to those that would like to test this, the associated userspace code that is paired with this was just merged to fwupd master. https://github.com/hughsie/fwupd/commit/8f17e1ccf4f68b3fb7015a41acc4cbb784c1f776 It's done in a way that if another GUID ever needs to be added for force-power it will be no changes for userspace, and if another driver is introduced it will be minimal changes (what drivers the code matches on is hardcoded). If you would like to experiment with it, instructions for building fwupd are available here: https://github.com/hughsie/fwupd/wiki/Compilation If you find any problems, feel free to file an issue with fwupd on Github. Thanks,