Skip to content

Commit 3556f92

Browse files
kwachowsjlawryno
authored andcommitted
accel/ivpu: Improve clarity of MMU error messages
This patch improves readability and clarity of MMU error messages. Previously, the error strings were somewhat confusing and could lead to ambiguous interpretations, making it difficult to diagnose issues. 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 875bc9c commit 3556f92

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/accel/ivpu/ivpu_mmu.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,23 +278,23 @@ static const char *ivpu_mmu_event_to_str(u32 cmd)
278278
case IVPU_MMU_EVT_F_VMS_FETCH:
279279
return "Fetch of VMS caused external abort";
280280
default:
281-
return "Unknown CMDQ command";
281+
return "Unknown event";
282282
}
283283
}
284284

285285
static const char *ivpu_mmu_cmdq_err_to_str(u32 err)
286286
{
287287
switch (err) {
288288
case IVPU_MMU_CERROR_NONE:
289-
return "No CMDQ Error";
289+
return "No error";
290290
case IVPU_MMU_CERROR_ILL:
291291
return "Illegal command";
292292
case IVPU_MMU_CERROR_ABT:
293-
return "External abort on CMDQ read";
293+
return "External abort on command queue read";
294294
case IVPU_MMU_CERROR_ATC_INV_SYNC:
295295
return "Sync failed to complete ATS invalidation";
296296
default:
297-
return "Unknown CMDQ Error";
297+
return "Unknown error";
298298
}
299299
}
300300

0 commit comments

Comments
 (0)