Skip to content

Commit 10400b9

Browse files
author
Bryan O'Donoghue
committed
media: qcom: iris: Fix FPS calculation and VPP FW overhead
Use div_u64() instead of mult_fract as u64 operator division fails on 32 bit systems which don't link against libgcc. Fixes: 5c66647 ("media: iris: add FPS calculation and VPP FW overhead in frequency formula") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202606030132.qnBXVDkM-lkp@intel.com/ Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
1 parent 6a75e3d commit 10400b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/media/platform/qcom/iris/iris_vpu_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ u64 iris_vpu3x_vpu4x_calculate_frequency(struct iris_inst *inst, size_t data_siz
444444

445445
/* 1.05 is VPP FW overhead */
446446
if (inst->fw_caps[STAGE].value == STAGE_2)
447-
vpp_cycles += mult_frac(vpp_cycles, 5, 100);
447+
vpp_cycles += div_u64(vpp_cycles * 5, 100);
448448

449449
vsp_cycles = fps * data_size * 8;
450450
vsp_cycles = div_u64(vsp_cycles, 2);

0 commit comments

Comments
 (0)