]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2023 09:16:57 +0000 (11:16 +0200)
commit19887a85ad934e7282aa2154c99c68cf3d35dcb6
tree8c69c08bc1c3aadbf9606d7ff1a16a11dccc9d0a
parentd50a2a9f82ede54483a73c92eb63a49ca5d0b79b
accel/ivpu: Fix sporadic VPU boot failure

commit a3efabee5878b8d7b1863debb78cb7129d07a346 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/accel/ivpu/ivpu_hw_mtl.c
drivers/accel/ivpu/ivpu_hw_mtl_reg.h