]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: arm_scmi: quirk: Force perf level get fastchannel
authorJohan Hovold <johan+linaro@kernel.org>
Wed, 30 Apr 2025 13:51:46 +0000 (15:51 +0200)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 6 May 2025 10:12:30 +0000 (11:12 +0100)
commit397f802d06c418efa636e46083edbeb00c91369e
treec881437be9f2e7ab28fa1a3dd6b3c93782567c69
parent7b487beab7cd853ab7de58746284898fb9316334
firmware: arm_scmi: quirk: Force perf level get fastchannel

The Qualcomm SCP firmware in X1E machines like the Lenovo ThinkPad T14s
does not set the FastChannel supported attribute bit for PERF_LEVEL_GET
but crashes when falling back to regular messaging.

Use the new SCMI quirk framework to force FastChannel initialisation for
this implementation.

Note that we can add an upper bound on the version matching when we
learn which version has a fix (or limit matching using a SoC compatible
string in the unlikely event that always enabling FC causes trouble
somewhere).

Link: https://lore.kernel.org/lkml/Z4Dt8E7C6upVtEGV@hovoldconsulting.com/
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Message-Id: <20250430135146.5154-1-johan+linaro@kernel.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/driver.c
drivers/firmware/arm_scmi/quirks.c
drivers/firmware/arm_scmi/quirks.h