mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Anton Karasev <uselessfire@gmail.com>
To: Milos Vlku <vlku.milos.fun@gmail.com>
Cc: qby140326@gmail.com, ilpo.jarvinen@linux.intel.com,
	hansg@kernel.org, platform-driver-x86@vger.kernel.org,
	linux-kernel@vger.kernel.org, W_Armin@gmx.de,
	ilya.gladyshev@linux.dev, kento@kekto.ru, ericted8810@gmail.com,
	chris@miget.com, matias.civadda2342001@gmail.com,
	btx342@gmail.com, wleizc7319@gmail.com, wolf109909@outlook.com,
	i@rsplwe.com, bozhenpeng93@gmail.com, martiya.ar@gmail.com,
	aleksejirlik@gmail.com, zsanya322@gmail.com
Subject: Re: [PATCH v6 5/5] platform/x86: bitland-mifs-wmi: Add per-machine ops table
Date: Thu,  8 Oct 2026 18:28:37 +0300	[thread overview]
Message-ID: <20261008-tm2307-tm2309-entry-uselessfire@gmail.com> (raw)
In-Reply-To: <CAObHBTxHQDfVH8Su1DLABtC5uUsAGBBk=KvcCOvtTs5gMGamnA@mail.gmail.com>

Hi Milos,

On Fri, Oct 02, 2026 at 02:18 Milos Vlku wrote:
> It matches your machine on every point you listed, checked against the
> ACPI tables

I checked the WMAA and NTDP points of your mail against the TM2309
tables and every one of them matches, so one entry for both boards
looks possible.

> So I would suggest an entry for these boards uses balanced = 1 rather
> than 0.

Agreed. My local build already writes 1 for balanced, which is also
what Fn+K sets; listing 0 and 1 together as balanced in my table was
only right for ODV1. I have not repeated your measurement on the
TM2309.

One thing to keep in mind with balanced = 1: GET returns 0 whenever
QFAN is not 1..4, for example while QFAN still holds the 0 written by a
kernel with the default map. A read of 0 then maps to no profile,
laptop_profile_get() returns -EINVAL, and bitland_mifs_wmi_suspend()
returns that error, so suspend fails -- the same -22 that was just
reported for the TM2426 [1]. Reading 0 as balanced avoids that.

On Fri, Oct 02, 2026 at 02:51 Milos Vlku wrote:
> - No machine-specific capability check is needed on this one.

On AC, yes. But bitland_pp_check_capability() calls
power_supply_is_system_supplied() before anything else, so on battery
balanced-performance and performance are refused, although this
firmware supports Turbo on battery: Fn+K reaches it, the GDDV has a DC
Turbo target, and writing 3 on battery works on the TM2309 (odvp1 1,
thermald applies the DC Turbo limits). Could you check the TM2307 on
battery? If it behaves the same, these boards need no capability check
at all.

>   balanced-performance -> QFAN 3
>   performance          -> QFAN 4

On the TM2309 Fn+K only cycles 1 -> 3 -> 2 and never offers full
speed, even with the stock 140 W charger, although the firmware accepts
4 without any check. Does Fn+K on your TM2307 offer it?
power-profiles-daemon maps its "performance" profile to platform_profile
"performance", so putting full speed there would make the desktop's
performance setting mean full speed, with a PL1 of up to 90 W on AC on
the TM2309. I would rather map performance to Turbo (3) on these boards
and offer full speed as max-power, which platform_profile_cycle() skips
and power-profiles-daemon does not select, so it is only used when
chosen explicitly: low-power 2, balanced 1 (0 read as balanced),
performance 3, max-power 4, and no balanced-performance. Aleksandr
asked for full speed as an explicit choice on the TM2309 [2]. Chris: if
the generalized table can map max-power, that would cover it.

> So that is a Tested-by from a second board if it is useful.

If you reply with it to Chris's patch [3], b4 will pick it up from
there; here it is easy to miss.

Once Chris's series is out (see Ilpo's reply [4]), I would suggest a
single entry for both boards with two DMI matches (board_name TM2307
and TM2309): you test the TM2307 and I test the TM2309, and whoever
sends it Cc's the other. I am happy to fold the TM2309 into your patch
or the other way round.

[1] https://lore.kernel.org/all/tencent_D96ED693B9D664B3CDD8943D920571929406@qq.com/
[2] https://lore.kernel.org/all/CAFpZVRM_A9K+6-eFy_zfC-8gE+3r7pcdhgU+3M3g_XdQ_SJdiw@mail.gmail.com/
[3] https://lore.kernel.org/all/20260928154337.154969-1-chris@miget.com/
[4] https://lore.kernel.org/all/094577b3-7b96-72b6-4ef2-a5d1db457401@linux.intel.com/

Thanks,
Anton Karasev

  parent reply	other threads:[~2026-10-08 15:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-29 13:44 [PATCH v6 0/5] Merge redmi-wmi into bitland-mifs-wmi Mingyou Chen
2026-09-29 13:44 ` [PATCH v6 1/5] MAINTAINERS: Add maintainer entry of bitland-mifs-wmi driver Mingyou Chen
2026-09-29 13:45 ` [PATCH v6 2/5] platform/x86: bitland-mifs-wmi: Merge the function of redmi-wmi into the bitland driver Mingyou Chen
2026-09-30  1:58   ` Anton Karasev
2026-09-30 20:53   ` Ilya Gladyshev
2026-09-30 22:01   ` Ilya Gladyshev
2026-09-29 13:45 ` [PATCH v6 3/5] platform/x86: bitland-mifs-wmi: Add Redmi mic-mute key entries Mingyou Chen
2026-09-29 13:45 ` [PATCH v6 4/5] platform/x86: redmi-wmi: Drop redmi-wmi driver Mingyou Chen
2026-09-29 13:45 ` [PATCH v6 5/5] platform/x86: bitland-mifs-wmi: Add per-machine ops table Mingyou Chen
2026-09-30  1:50   ` Anton Karasev
2026-10-02  0:18     ` Miloš Vlku
2026-10-02  0:51       ` Miloš Vlku
2026-10-02  1:15         ` Mingyou Chen
2026-10-02  1:34         ` Mingyou Chen
2026-10-02  9:21         ` Ilpo Järvinen
2026-10-08 15:28         ` Anton Karasev [this message]
2026-10-08 22:06           ` Miloš Vlku

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=20261008-tm2307-tm2309-entry-uselessfire@gmail.com \
    --to=uselessfire@gmail.com \
    --cc=W_Armin@gmx.de \
    --cc=aleksejirlik@gmail.com \
    --cc=bozhenpeng93@gmail.com \
    --cc=btx342@gmail.com \
    --cc=chris@miget.com \
    --cc=ericted8810@gmail.com \
    --cc=hansg@kernel.org \
    --cc=i@rsplwe.com \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=ilya.gladyshev@linux.dev \
    --cc=kento@kekto.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martiya.ar@gmail.com \
    --cc=matias.civadda2342001@gmail.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=qby140326@gmail.com \
    --cc=vlku.milos.fun@gmail.com \
    --cc=wleizc7319@gmail.com \
    --cc=wolf109909@outlook.com \
    --cc=zsanya322@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®