Skip to content

Commit 929acfb

Browse files
kwachowsjlawryno
authored andcommitted
accel/ivpu: Call diagnose failure in ivpu_mmu_cmdq_sync()
Check for possible failure reasons in the buttress. Some errors (like external abort) should have corresponding buttress errors registers set indicating the real reason of failure. Signed-off-by: Wachowski, Karol <[email protected]> Signed-off-by: Jacek Lawrynowicz <[email protected]> Reviewed-by: Jeffrey Hugo <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 30cf36b commit 929acfb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/accel/ivpu/ivpu_mmu.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <linux/highmem.h>
88

99
#include "ivpu_drv.h"
10+
#include "ivpu_hw.h"
1011
#include "ivpu_hw_reg_io.h"
1112
#include "ivpu_mmu.h"
1213
#include "ivpu_mmu_context.h"
@@ -518,6 +519,7 @@ static int ivpu_mmu_cmdq_sync(struct ivpu_device *vdev)
518519

519520
ivpu_err(vdev, "Timed out waiting for MMU consumer: %d, error: %s\n", ret,
520521
ivpu_mmu_cmdq_err_to_str(err));
522+
ivpu_hw_diagnose_failure(vdev);
521523
}
522524

523525
return ret;

0 commit comments

Comments
 (0)