From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4DDC034FF5D for ; Wed, 30 Sep 2026 01:54:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790733281; cv=none; b=S4YkRYfu9/2CJGhG7Shcp1KMt8Rb3aLNySiUoXWWRzn022CtjBQiR7V98jMBg/BzVPs6DfvoBPDoDFyP6P6fZwefssv5/W+D34Db5lHxnBAzNgjkzdccfwNULHQJk2VCLVi3Wg09CCe8yK8wPagoRLUlsqbwgYmbYqBospWIy6U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790733281; c=relaxed/simple; bh=22EAsRtIugCfhz8Or01nJdxLPEtPClXMezlZkuUu8nQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nxi2My6o2jFEUbnvT2iIU+ByBBJnjd4mPs4KTsHi6qsZ8XxqgYqSfmbwVyiEE5b5Hi7J+HC/lltJDboyHc8/9+JnltQxusRaHa0MXjE2AsFYnhpoCoKe8/X3dsMVrsk+G7bhXreG/TX0674K2tNpP9Z0BA6YdzmLmlnOm/dKxSQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=jMwvgBIH; arc=none smtp.client-ip=209.85.208.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jMwvgBIH" Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-3a5a0703ae7so11571561fa.0 for ; Tue, 29 Sep 2026 18:54:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790733278; x=1791338078; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=89ZecEDPkVxdgfsZnGb4glnfiTdHK0W7K/z1VS8tLk0=; b=jMwvgBIHDI7N2ckgImodf/JjyRvyjVqsJNmQALqdLPva55m/2Kk2L+86/bo1TZLOhJ UbDdKR8n3iki4El2hQrAWxjsuU785sfBICUzR6GvoWzctD5/ZrWhVkjC9g+I4OBodzMh Mrkqdn2qGH+SRxywjEGqBiYgnUjGu3FGdJPiFZzTZ1Zx5yGXPERFdi6lYVmddE8zkh7a /hj5D9JOqvw/LS6Mr4N2zZz6G8HtNd0mCqrAno6ciE/5l649uHzQ/L0jT7RrWvF/cUk8 IcxvLsEbkUmCR5EU0cHcO4SfoOtJKKk9htqzJAUjzygTO7zCPPF0kIrzQ1zbLc/Q5yOa NddA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790733278; x=1791338078; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=89ZecEDPkVxdgfsZnGb4glnfiTdHK0W7K/z1VS8tLk0=; b=S3h2neQrDOFMjJFHMWiJ5jE8UcLrxIeuBq9JkhsHUAFxFyJ4/0EOIgM7H7st5Ml7Kg Gg6p/VClXgjyo7MovuM94HVij9OP+H5hjPXYremSkH5d85HtbVUCWniaDuy1TBjoV7fP IxFAf5h7repYrcRi3flpbq2A3BZrbjGzK84sqGOVk1x89nSiudcfp+0rTwF14wHW5AcA HX4A7ybO1sNGqG+8zi4B9WrfFB49BGqTDAEnCp23NpyS+Dq7CuLgH95pv6rBPgV7HlY+ rmiYscDw1m4/ZI2K7ormF626CNHgC+nud0tc9Ck+XtV99o6mTb2yJfZPAtk+pEUzhBKx joiQ== X-Gm-Message-State: AFq9FYL6B8p1pxT+jrZmO6DPJgmlt8aAP/rtVqXV5frsjk4qT7xMy5Qe 7hlZbHAjU46l4CnjNoNcbDs8Oc92BIJTuodVCtTpI/6MK0GFiKvCfwRX X-Gm-Gg: AYBFou1oOpl2cIxN1RSCELiTCZo2cEh1y0W3OH9cbhyq6tUkhS9ERu/Gqt5hargIULJ Deu4EZMNSG/KFuPp7+Ml9c0+xHmKQWhNCj8QZFTskLQ+BH+zhECqj6sSycKm+KN7B2wy7Uuun9e WbVVMSKiRViKFXrPodEqqDnX5koVXjeYNfqQtYr21LgRGUYQlFzxwU27ZIAP9+rdyavB+PcdJB8 kGtq2foNzewV9/ly9R9QMuvODBSwglCaJi7tv/+gI5rPhBaGIPR0vZbHruDxU4AlyJckInWQidy YkkTb03dhvsWZozUx3C/AOTJgFGRotTHDkQZ3ycegaeYjlJEYUyahhfXlTBqmV7CACgR+P7BncF f0X0zyPKKfG8f4RE0uSl37dtH2Lh2vVwzONgZTXXTM7+xjdk66DeVtF5W6MX3PdWMdFexdsGM2a 6NUC6doHfrDI2avOZS3tpcTHLNSKtm4eQGf0o4PCareqdKsY2JVI4bLk2cM2fazRAb+CFRCcOJF PzH+er8sGLNSCnwHrlz7UxZL5A4gFAfLyMner0E/jVDX8Y4tyb8VGFO1AMLeNeNd5N7 X-Received: by 2002:a2e:a902:0:b0:3a7:635c:d56c with SMTP id 38308e7fff4ca-3a7791d7277mr62711fa.7.1790733278024; Tue, 29 Sep 2026 18:54:38 -0700 (PDT) Received: from wildarch.lan ([109.72.228.33]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5ba3b867f6asm347507e87.75.2026.09.29.18.54.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 18:54:37 -0700 (PDT) From: Anton Karasev To: W_Armin@gmx.de, martiya.ar@gmail.com, platform-driver-x86@vger.kernel.org Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, qby140326@gmail.com, ilpo.jarvinen@linux.intel.com, hansg@kernel.org Subject: Re: [BUG] Redmi Book Pro 16 2024 platform_profile write fails on Linux 7.1.7 Date: Wed, 30 Sep 2026 04:54:36 +0300 Message-ID: <20260930015436.3095516-1-uselessfire@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <3b58a0ae-f050-4dd5-80f6-bf2cdfc20318@gmx.de> References: <3b58a0ae-f050-4dd5-80f6-bf2cdfc20318@gmx.de> Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Armin, I have the same machine as Martiya (Redmi Book Pro 16 2024, DMI XIAOMI / TM2309, BIOS RMAMT6B0P0B0B, which is the latest BIOS Xiaomi publishes for this model). In case it is useful to have it on the list, here is its full acpidump (all tables, acpidump -o): https://bugzilla.kernel.org/attachment.cgi?id=310971 What the tables say about the Mifs interface on this BIOS, and what I verified on the machine: - The method is \_SB.PC00.WMID.WMAA, in the SSDT with OEM Table ID XMCC1806. It implements only command 0x08 (GET and SET), 0x0a subcommand 5, and 0x10 (GET subcommands 1-3, SET subcommand 2 only). Other command IDs answer 0xE000, including WMI_FN_SYSTEM_AC_TYPE, which your "Treat WMI_FN_SYSTEM_AC_TYPE as optional" patch now handles; unhandled subcommands mostly return status 0. - The SET branches set only the return code and leave the function id at 0; only the GET branches fill it in. So on this BIOS "Detect failed function calls" reports every SET as failed with -ENOMSG, although the firmware applies it -- the same as Chris reported for the Xiaomi Book Pro 14 in "Only check the function id of GET responses". Verified with the for-next driver built for 7.2.7: every profile write failed with -ENOMSG while the EC mode changed; with Chris's patch on top, all of them succeed. - The mode values are not the Bitland ones. SET of 0x08 stores the value in the EC register QFAN as is, and NTDP in the DSDT maps QFAN to the DPTF variable \_SB.ODV1: 0/1 balanced (ODV1 0), 2 quiet (2), 3 performance/Turbo (1), 4 full speed/Geek (4). With your two patches the AC type check now passes on AC, and the value "performance" writes (3) happens to be Turbo here; "balanced-performance" writes 1, which is balanced, and after Fn+K to balanced (QFAN 1) platform_profile reads back balanced-performance. On battery performance is still refused by power_supply_is_system_supplied(), although the firmware accepts Turbo there. - Command 0x10 is the battery interface on this firmware (subcommand 2 is the 80 % charge protection), which makes the existing kb_mode attribute dangerous: writing "fixed" to it turns charge protection off. Verified on the machine. I have put the details, including the test results, in a reply to [PATCH v6 5/5] of the redmi-wmi merge series, since that is where the per-machine table is being discussed. I am happy to test patches on this model. Thanks, Anton Karasev