Skip to content

Commit 759ee40

Browse files
Andrzej Kacprowskijlawryno
authored andcommitted
accel/ivpu: Fix the D0i2 disable test mode
Correct setup of D0i2 disable which was by mistake set up to value 1 and use BIT(1) instead. Fixes: 011529f ("accel/ivpu: Implement D0i2 disable test mode") Signed-off-by: Andrzej Kacprowski <[email protected]> Signed-off-by: Maciej Falkowski <[email protected]> Reviewed-by: Jeff Hugo <[email protected]> Signed-off-by: Jacek Lawrynowicz <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent e53e004 commit 759ee40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/accel/ivpu/ivpu_fw.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ static void ivpu_fw_boot_params_print(struct ivpu_device *vdev, struct vpu_boot_
544544
boot_params->d0i3_entry_vpu_ts);
545545
ivpu_dbg(vdev, FW_BOOT, "boot_params.system_time_us = %llu\n",
546546
boot_params->system_time_us);
547-
ivpu_dbg(vdev, FW_BOOT, "boot_params.power_profile = %u\n",
547+
ivpu_dbg(vdev, FW_BOOT, "boot_params.power_profile = 0x%x\n",
548548
boot_params->power_profile);
549549
}
550550

@@ -646,7 +646,7 @@ void ivpu_fw_boot_params_setup(struct ivpu_device *vdev, struct vpu_boot_params
646646
boot_params->d0i3_residency_time_us = 0;
647647
boot_params->d0i3_entry_vpu_ts = 0;
648648
if (IVPU_WA(disable_d0i2))
649-
boot_params->power_profile = 1;
649+
boot_params->power_profile |= BIT(1);
650650

651651
boot_params->system_time_us = ktime_to_us(ktime_get_real());
652652
wmb(); /* Flush WC buffers after writing bootparams */

0 commit comments

Comments
 (0)