Skip to contentSkip to conversation

bitland-mifs-wmi: wrong platform_profile values on REDMI Book Pro 16 2025

DISCUSSION Aleksey Irlik 1 participant 1 message Sep 26 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

Hi,

on a REDMI Book Pro 16 2025 the platform_profile support of bitland-mifs-wmi does not work: reading the profile fails and writing "balanced" is silently ignored by the firmware.

Hardware / software:

  DMI:     XIAOMI REDMI Book Pro 16 2025
  BIOS:    RMAAR6B0P0808 (01/30/2026)
  Kernel:  7.2.6 (CachyOS), driver source identical to mainline

Charger: USB-C PD (the machine has no barrel jack)

Symptoms:
- "platform_profile: Failed to get profile for handler bitland-mifs-wmi" on every read of /sys/firmware/acpi/platform_profile (EINVAL).
- After switching to low-power, writing "balanced" returns success but the profile stays low-power; power-profiles-daemon gets stuck in power-saver until reboot.
- "balanced-performance" / "performance" always fail with EOPNOTSUPP while on AC.

Raw WMI calls (via acpi_call, \_SB.PC00.WMID.WMAA 0 1 <buf>):
GET 0x08 (SYSTEM_PER_MODE) right after boot:

    {0x00, 0x80, 0x00, 0x08, 0x09, 0x00, ...}   -> mode 0x09
  GET 0x13 (SYSTEM_AC_TYPE):
    {0x00, 0xe0, 0x00, 0x00, 0x00, ...}         -> status 0xE0, unsupported

Firmware analysis (SSDT21, method WMAA; DSDT, method Q_EC.NTDP):

GET 0xFA00/0x0800 only ever returns 2, 3, 4, 9 or 0x0A.

SET 0xFB00/0x0800 accepts FUN3 in 2..10; FUN3 == 0 or 1 matches no branch and is dropped, but SGER = 0x8000 (success) is still returned:

      ElseIf (((FUN3 > One) && (FUN3 < 0x05)))   // 2,3,4 -> QFAN
      ElseIf ((FUN3 == 0x09))                    // -> QFAN
      ElseIf ((FUN3 == 0x0A))                    // -> QFAN

(5..8 go to SMMD/SMMT instead)

The mode is passed to Intel DTT via NTDP -> ODV1:

      0x09 (and default) -> ODV1 = 0
      0x03               -> ODV1 = 1
      0x02, 0x0A         -> ODV1 = 2
      0x04               -> ODV1 = 4

So on this model the values appear to be:

      2    quiet
      9    balanced (firmware default after boot)
      3    performance
      4    full speed
      0x0A low-power variant (same DTT policy as quiet)

whereas the driver uses BALANCED = 0, PERFORMANCE = 1, QUIET = 2, FULL_SPEED = 3. Consequences:
- 0x09 at boot is unknown to laptop_profile_get() -> -EINVAL;
- "balanced" writes 0 and "balanced-performance" writes 1, both
ignored;
- "performance" writes 3, which is actually the performance mode, not full speed; full speed (4) is unreachable.

Also, bitland_check_performance_capability() requires SYSTEM_AC_TYPE == 2 (barrel jack). This function is not implemented in this firmware (status 0xE0, data 0), so the performance profiles can never be selected, even on AC.

The semantic labels of 3/4/0x0A are inferred from the DTT mapping above, not from vendor documentation. I have not checked whether other Bitland based models use the 0..3 encoding; if they do, this probably needs a per-model (DMI) value table.

I can provide full acpidump output and test patches.

Thanks,
Aleksey Irlik