accel/ivpu: Fix DCT active percent format

[ Upstream commit aa1c2b073a ]

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: a19bffb10c ("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>
This commit is contained in:
Karol Wachowski 2025-10-01 12:43:22 +02:00 • committed by Greg Kroah-Hartman
commit 470da7a2c2
3 changed files with 9 additions and 4 deletions