accel/ivpu: Fix the D0i2 disable test mode
PATCH 1/1 accel/ivpu: Fix the D0i2 disable test mode
From: Andrzej Kacprowski <[email protected]>
Correct setup of D0i2 disable which was
by mistake set up to value 1 and use BIT(1) instead.
Fixes 011529fe8112 ("accel/ivpu: Implement D0i2 disable test mode")
Signed-off-by Andrzej Kacprowski <[email protected]>
Signed-off-by Maciej Falkowski <[email protected]>
--- drivers/accel/ivpu/ivpu_fw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/accel/ivpu/ivpu_fw.c +2 -2
@@ -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 */
Signature · 1 line
2.43.0
Quoted 8 lines · Maciej Falkowski
From: Andrzej Kacprowski <[email protected]>
Correct setup of D0i2 disable which was
by mistake set up to value 1 and use BIT(1) instead.Fixes 011529fe8112 ("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]>
Jacek Lawrynowicz
AppliedApplied to drm-misc-fixes
Quoted 34 lines · Maciej Falkowski
From: Andrzej Kacprowski <[email protected]>
Correct setup of D0i2 disable which was
by mistake set up to value 1 and use BIT(1) instead.Fixes 011529fe8112 ("accel/ivpu: Implement D0i2 disable test mode")Signed-off-by Andrzej Kacprowski <[email protected]>Signed-off-by Maciej Falkowski <[email protected]>--- drivers/accel/ivpu/ivpu_fw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/accel/ivpu/ivpu_fw.c +2
-2@@ -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 */