]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
accel/ivpu: Fix sporadic VPU boot failure
authorAndrzej Kacprowski <andrzej.kacprowski@linux.intel.com>
Wed, 7 Jun 2023 09:45:02 +0000 (11:45 +0200)
committerStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Thu, 8 Jun 2023 06:17:27 +0000 (08:17 +0200)
commita3efabee5878b8d7b1863debb78cb7129d07a346
treea1b85cd1c01fc8195a015563ac2d9b93d8b22e9a
parentb563e47957af4ff71736c5cc4120a59b055ab583
accel/ivpu: Fix sporadic VPU boot failure

Wait for AON bit in HOST_SS_CPR_RST_CLR to return 0 before
starting VPUIP power up sequence, otherwise the VPU device
may sporadically fail to boot.

An error in power up sequence is propagated to the runtime
power management - the device will be in an error state
until the VPU driver is reloaded.

Fixes: 35b137630f08 ("accel/ivpu: Introduce a new DRM driver for Intel VPU")
Cc: stable@vger.kernel.org # 6.3.x
Signed-off-by: Andrzej Kacprowski <andrzej.kacprowski@linux.intel.com>
Reviewed-by: Krystian Pradzynski <krystian.pradzynski@linux.intel.com>
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230607094502.388489-1-stanislaw.gruszka@linux.intel.com
drivers/accel/ivpu/ivpu_hw_mtl.c
drivers/accel/ivpu/ivpu_hw_mtl_reg.h