aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWachowski, Karol <[email protected]>2024-06-11 14:04:22 +0200
committerJacek Lawrynowicz <[email protected]>2024-06-14 09:13:16 +0200
commitab4484cd863b3637ec8e03318532785476d12dfc (patch)
treeecd3d5bd0cd2a849d6916d60516abdde81c0a04c
parent52ab5be191c42fe1bffac97ee248a237b9712889 (diff)
accel/ivpu: Disable clock relinquish for MMIO reset
It is required to disable NPU clock relinquish for the time of MMIO reset. Clock relinquish gets into default (enabled) state after MMIO reset is performed. Signed-off-by: Wachowski, Karol <[email protected]> Reviewed-by: Jacek Lawrynowicz <[email protected]> Signed-off-by: Jacek Lawrynowicz <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r--drivers/accel/ivpu/ivpu_hw_btrs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/accel/ivpu/ivpu_hw_btrs.c b/drivers/accel/ivpu/ivpu_hw_btrs.c
index 13734d1abc7d..123c1f2fd554 100644
--- a/drivers/accel/ivpu/ivpu_hw_btrs.c
+++ b/drivers/accel/ivpu/ivpu_hw_btrs.c
@@ -504,6 +504,8 @@ static int ip_reset_lnl(struct ivpu_device *vdev)
int ret;
u32 val;
+ ivpu_hw_btrs_clock_relinquish_disable_lnl(vdev);
+
ret = REGB_POLL_FLD(VPU_HW_BTRS_LNL_IP_RESET, TRIGGER, 0, TIMEOUT_US);
if (ret) {
ivpu_err(vdev, "Wait for *_TRIGGER timed out\n");