[PATCH v5 0/4] platform/x86: bitland-mifs-wmi: Xiaomi Book Pro 14 support

Chris Taraszka posted 4 patches 1 week, 5 days ago
drivers/platform/x86/bitland-mifs-wmi.c | 175 +++++++++++++++++++++---
1 file changed, 155 insertions(+), 20 deletions(-)
[PATCH v5 0/4] platform/x86: bitland-mifs-wmi: Xiaomi Book Pro 14 support
Posted by Chris Taraszka 1 week, 5 days ago
Four patches on top of Mingyou Chen's v16 "Merge redmi-wmi into
bitland-mifs-wmi" [1] for the Xiaomi Book Pro 14 (TM2424).

The firmware passes SystemPerMode to Intel DTT, and the DTT tables in
its data vault name each mode and set its PL1 per power source.
Low-power, balanced and performance map to 0x02, 0x09 and 0x04. On
battery the firmware's performance mode is 0x03, so patch 2 lets a
profile use a separate value on battery, re-applied when the power
source changes, and patch 3 adds the quirk. Patch 1 keeps a failed
profile read from aborting system suspend, and patch 4 makes Fn+K
cycle the platform profile.

Changes since v4 [2]:
- Rebase onto v16
- Fn+K: cycle on 0x28 for every model, drop the quirk flag (Mingyou)
- Add Mingyou's Reviewed-by to the quirk patch

Changes since v3 [3]:
- Move the quirk after the battery support, so 0x03 is its battery
  entry from the start (Mingyou)
- Move the suspend fix to the front, as it stands on its own
- Fn+K still only handles 0x28. Event 0x16 reports a mode change on
  TM2135 [4] and TM2424 alike, so it stays a notification

Changes since v2 [5]:
- New mode map from the firmware's DTT tables (Kento)
- New battery support patch
- Fold in the Fn+K patch

[1] https://lore.kernel.org/all/20261111141226.9482-1-qby140326@gmail.com/
[2] https://lore.kernel.org/all/20261106114300.936782-1-chris@miget.com/
[3] https://lore.kernel.org/all/20261101161814.1325847-1-chris@miget.com/
[4] https://lore.kernel.org/all/BelDdF5woNEBX6dZ3_zJDEbVkifs1pdxEjtQ1yC-aKyZahijFJCllxm0l_SqZ5Hsj61D8wfJNa7uDSuNKmyyxo2S0tZp9QS5yaafeZUxvxE=@proton.me/
[5] https://lore.kernel.org/all/20261025195456.43414-1-chris@miget.com/

Chris Taraszka (4):
  platform/x86: bitland-mifs-wmi: Don't fail suspend or resume on
    profile errors
  platform/x86: bitland-mifs-wmi: Support a separate profile value on
    battery
  platform/x86: bitland-mifs-wmi: Add Xiaomi Book Pro 14 quirk
  platform/x86: bitland-mifs-wmi: Cycle the platform profile on Fn+K

 drivers/platform/x86/bitland-mifs-wmi.c | 175 +++++++++++++++++++++---
 1 file changed, 155 insertions(+), 20 deletions(-)


base-commit: 5680519168f65666d2c03cc6ed8fe2b7052aee12
prerequisite-patch-id: 99b10cd2b70d630ab65d8a8bb02c1d4bf89b1a63
prerequisite-patch-id: 27db041f827872b8be142c310a14c79962154bd5
prerequisite-patch-id: 74fc3298fa3dceb2224dfc3d2ae4cc6d4be61c01
prerequisite-patch-id: 290a15f4692b36391eade807db324a974a4c1f9e
prerequisite-patch-id: 48f575fda0c7b1d4c66179af98a7f8825666ac87
prerequisite-patch-id: 2fe8c043993034f1a2cde98b1b2e299987d5ac7f
-- 
2.56.0
Re: [PATCH v5 0/4] platform/x86: bitland-mifs-wmi: Xiaomi Book Pro 14 support
Posted by Ilpo Järvinen 1 week, 4 days ago
On Wed, 11 Nov 2026 18:04:02 +0100, Chris Taraszka wrote:

> Four patches on top of Mingyou Chen's v16 "Merge redmi-wmi into
> bitland-mifs-wmi" [1] for the Xiaomi Book Pro 14 (TM2424).
> 
> The firmware passes SystemPerMode to Intel DTT, and the DTT tables in
> its data vault name each mode and set its PL1 per power source.
> Low-power, balanced and performance map to 0x02, 0x09 and 0x04. On
> battery the firmware's performance mode is 0x03, so patch 2 lets a
> profile use a separate value on battery, re-applied when the power
> source changes, and patch 3 adds the quirk. Patch 1 keeps a failed
> profile read from aborting system suspend, and patch 4 makes Fn+K
> cycle the platform profile.
> 
> [...]

Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.

FYI [if applicable to your patch], as per Linus' policy change, also
fixes are mostly routed through for-next unless the fix is for a
commit introduced in the most recent cycle or is clearly a regression
fix.

The list of commits applied:
[1/4] platform/x86: bitland-mifs-wmi: Don't fail suspend or resume on profile errors
      commit: c21efd01ba43e5c6ac1ce806a030beb6f2f70770
[2/4] platform/x86: bitland-mifs-wmi: Support a separate profile value on battery
      commit: a109ff72a4f322c17681cbe3ce9a9d614cbbd299
[3/4] platform/x86: bitland-mifs-wmi: Add Xiaomi Book Pro 14 quirk
      commit: b72407e25e82185aeeab6cd422cd83c242a68607
[4/4] platform/x86: bitland-mifs-wmi: Cycle the platform profile on Fn+K
      commit: d58bdc2080cee7b9e189374c9d366fc674273bba

--
 i.