When driver is operating in IVPU_TEST_MODE_FW_TEST debug mode it should boot the firmware, but skip communication with the firmware. There is no need to enable interrupts or send messages. The output of the firmware test will be available in the firmware log.
Signed-off-by: Andrzej Kacprowski <[email protected]> --- drivers/accel/ivpu/ivpu_drv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/accel/ivpu/ivpu_drv.c b/drivers/accel/ivpu/ivpu_drv.c index 8c1c87e69f91..186e6fe2a6fa 100644 --- a/drivers/accel/ivpu/ivpu_drv.c +++ b/drivers/accel/ivpu/ivpu_drv.c @@ -408,9 +408,6 @@ static int ivpu_wait_for_ready(struct ivpu_device *vdev) unsigned long timeout; int ret; - if (ivpu_test_mode & IVPU_TEST_MODE_FW_TEST) - return 0; - ivpu_ipc_consumer_add(vdev, &cons, IVPU_IPC_CHAN_BOOT_MSG, NULL); timeout = jiffies + msecs_to_jiffies(vdev->timeout.boot); @@ -474,6 +471,9 @@ int ivpu_boot(struct ivpu_device *vdev) return ret; } + if (ivpu_test_mode & IVPU_TEST_MODE_FW_TEST) + return 0; + ret = ivpu_wait_for_ready(vdev); if (ret) { ivpu_err(vdev, "Failed to boot the firmware: %d\n", ret); -- 2.43.0
