summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarol Wachowski <karol.wachowski@linux.intel.com>2023-09-25 14:11:34 +0200
committerStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>2023-09-27 07:40:23 +0200
commit6c3f2f90ccad024806f72c49740742df4ded3727 (patch)
treedc303b3ec7cd57519b93409abb70244349a5f1c4 /lib
parent002652555022728c42b5517c6c11265b8c3ab827 (diff)
downloadlinux-stable-6c3f2f90ccad024806f72c49740742df4ded3727.tar.gz
linux-stable-6c3f2f90ccad024806f72c49740742df4ded3727.tar.bz2
linux-stable-6c3f2f90ccad024806f72c49740742df4ded3727.zip
accel/ivpu/40xx: Ensure clock resource ownership Ack before Power-Up
We need to wait for the CLOCK_RESOURCE_OWN_ACK bit to be set after configuring the workpoint. This step ensures that the VPU microcontroller clock is actively toggling and ready for operation. Previously, we relied solely on the READY bit in the VPU_STATUS register, which indicated the completion of the workpoint download. However, this approach was insufficient, as the READY bit could be set while the device was still running on a sideband clock until the PLL locked. To guarantee that the PLL is locked and the device is running on the main clock source, we now wait for the CLOCK_RESOURCE_OWN_ACK before proceeding with the remainder of the power-up sequence. Fixes: 79cdc56c4a54 ("accel/ivpu: Add initial support for VPU 4") Signed-off-by: Karol Wachowski <karol.wachowski@linux.intel.com> Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com> Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com> Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230925121137.872158-4-stanislaw.gruszka@linux.intel.com
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions