Commit 759ee400 authored by Andrzej Kacprowski's avatar Andrzej Kacprowski Committed by Jacek Lawrynowicz
Browse files

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: 011529fe ("accel/ivpu: Implement D0i2 disable test mode")
Signed-off-by: default avatarAndrzej Kacprowski <Andrzej.Kacprowski@linux.intel.com>
Signed-off-by: default avatarMaciej Falkowski <maciej.falkowski@linux.intel.com>
Reviewed-by: default avatarJeff Hugo <jeff.hugo@oss.qualcomm.com>
Signed-off-by: default avatarJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Link: https://lore.kernel.org/r/20250416102629.384626-1-maciej.falkowski@linux.intel.com
parent e53e004e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -544,7 +544,7 @@ static void ivpu_fw_boot_params_print(struct ivpu_device *vdev, struct vpu_boot_
		 boot_params->d0i3_entry_vpu_ts);
	ivpu_dbg(vdev, FW_BOOT, "boot_params.system_time_us = %llu\n",
		 boot_params->system_time_us);
	ivpu_dbg(vdev, FW_BOOT, "boot_params.power_profile = %u\n",
	ivpu_dbg(vdev, FW_BOOT, "boot_params.power_profile = 0x%x\n",
		 boot_params->power_profile);
}

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

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