]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
accel/ivpu: Fix DCT active percent format
authorKarol Wachowski <karol.wachowski@linux.intel.com>
Wed, 1 Oct 2025 10:43:22 +0000 (12:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:26 +0000 (14:02 +0100)
commitec6ca941783a96c2b4217b5d511c2f675e0f8b44
treef6ea577d7e567149dbe5182b480d27ea1ad206f9
parentc9ef5ccd8bd9bcf598b6d3f77e7eb4dde7149aec
accel/ivpu: Fix DCT active percent format

[ Upstream commit aa1c2b073ad23847dd2e7bdc7d30009f34ed7f59 ]

The pcode MAILBOX STATUS register PARAM2 field expects DCT active
percent in U1.7 value format. Convert percentage value to this
format before writing to the register.

Fixes: a19bffb10c46 ("accel/ivpu: Implement DCT handling")
Reviewed-by: Lizhi Hou <lizhi.hou@amd.com>
Signed-off-by: Karol Wachowski <karol.wachowski@linux.intel.com>
Link: https://lore.kernel.org/r/20251001104322.1249896-1-karol.wachowski@linux.intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/accel/ivpu/ivpu_hw_btrs.c
drivers/accel/ivpu/ivpu_hw_btrs.h
drivers/accel/ivpu/ivpu_pm.c