From: Hans de Goede <hdegoede@redhat.com>
To: Mario Limonciello <mario.limonciello@outlook.com>,
Mika Westerberg <mika.westerberg@linux.intel.com>,
Andreas Noever <andreas.noever@gmail.com>,
Michael Jamet <michael.jamet@intel.com>,
Yehezkel Bernat <YehezkelShB@gmail.com>
Cc: linux-usb <linux-usb@vger.kernel.org>
Subject: Re: Disabling intel-wmi-thunderbolt on devices without Thunderbolt / detecting if a device has Thunderbolt
Date: Mon, 25 Oct 2021 16:54:41 +0200 [thread overview]
Message-ID: <b067d9f8-4d15-ac5e-3f1f-ff2ffa3b29aa@redhat.com> (raw)
In-Reply-To: <PH0PR15MB4992B80415BE9BD4836CF336E1839@PH0PR15MB4992.namprd15.prod.outlook.com>
Hi,
On 10/25/21 16:36, Mario Limonciello wrote:
> Surface Laptop go is this right?
> New Lightweight Surface Laptop Go – The Everyday, Everywhere Laptop – Microsoft Surface <https://www.microsoft.com/en-us/d/surface-laptop-go/94fc0bdgq7wv?activetab=pivot:techspecstab>
> IOW: "10th Gen Intel® Core™ i5 processor – 1035G1".
>
> That should be Ice Lake according to ARK:
> Intel Core i51035G1 Processor 6M Cache up to 3.60 GHz Product Specifications <https://ark.intel.com/content/www/us/en/ark/products/196603/intel-core-i51035g1-processor-6m-cache-up-to-3-60-ghz.html>
>
> ICL should have integrated TBT3. The concept of the force power WMI attribute makes "most" sense when it comes to a GPIO getting toggled.
I'm not talking about the Surface Laptop Go, but about the "Surface Go"
which uses the classic Surface tablet with kickstand form-factor with
the following CPU: Intel(R) Pentium(R) CPU 4415Y
The model definitely does not have Thunderbolt.
>>This causes a /sys/bus/wmi/devices/.../force_power attribute to be created
> and echoing to that executes ACPI code which ends up poking at things it
> should not be poking at on the Surface Go.
>
> Yes that's exactly what is supposed to happen that this attribute is made.
> What exactly happens when you write into it?
The _SB.CGWR ACPI method gets called, with arguments coming from ACPI
settings stored in memory. Depending on those settings this function
either directly pokes some MMIO or tries to talk to an I2C GPIO
expander which is not present on the Surface Go, causing it to
MMIO poke an I2C controller which it should not touch.
In either case the AML code ends up poking stuff it should not touch
and the entire force_power sysfs attribute should simply not be
there on devices without thunderbolt.
Regards,
Hans
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> *From:* Hans de Goede <hdegoede@redhat.com>
> *Sent:* Monday, October 25, 2021 8:48
> *To:* Mika Westerberg <mika.westerberg@linux.intel.com>; Andreas Noever <andreas.noever@gmail.com>; Michael Jamet <michael.jamet@intel.com>; Yehezkel Bernat <YehezkelShB@gmail.com>; Mario Limonciello <mario.limonciello@outlook.com>
> *Cc:* linux-usb <linux-usb@vger.kernel.org>
> *Subject:* Disabling intel-wmi-thunderbolt on devices without Thunderbolt / detecting if a device has Thunderbolt
>
> Hi All,
>
> While digging through Microsoft Surface Go ACPI tables to fix an unrelated
> issue, I noticed that there is an intel-wmi-thunderbolt WMI device in the
> ACPI tables and the intel-wmi-thunderbolt driver happily binds to this.
> This is likely the result of copy paste programming of the ACPI tables.
>
> This causes a /sys/bus/wmi/devices/.../force_power attribute to be created
> and echoing to that executes ACPI code which ends up poking at things it
> should not be poking at on the Surface Go.
>
> The problem of having these "nonsense" WMI devices with the
> intel-wmi-thunderbolt GUID is likely more wide-spread and ideally the
> intel-wmi-thunderbolt would ignore these.
>
> This makes me wonder if there is a way to see if there are any thunderbolt
> controllers on the system at all ? (with as goal to make intel-wmi-thunderbolt
> not bind if there are none)
>
> Regards,
>
> Hans
>
>
next prev parent reply other threads:[~2021-10-25 14:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-25 13:48 Disabling intel-wmi-thunderbolt on devices without Thunderbolt / detecting if a device has Thunderbolt Hans de Goede
2021-10-25 14:46 ` Oliver Neukum
[not found] ` <PH0PR15MB4992B80415BE9BD4836CF336E1839@PH0PR15MB4992.namprd15.prod.outlook.com>
2021-10-25 14:54 ` Hans de Goede [this message]
2021-10-25 15:12 ` Mika Westerberg
2021-10-26 8:17 ` Hans de Goede
2021-10-26 8:53 ` Mika Westerberg
2021-10-26 10:34 ` Hans de Goede
2021-10-26 12:22 ` Mika Westerberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b067d9f8-4d15-ac5e-3f1f-ff2ffa3b29aa@redhat.com \
--to=hdegoede@redhat.com \
--cc=YehezkelShB@gmail.com \
--cc=andreas.noever@gmail.com \
--cc=linux-usb@vger.kernel.org \
--cc=mario.limonciello@outlook.com \
--cc=michael.jamet@intel.com \
--cc=mika.westerberg@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.