Skip to content

Commit 565ee78

Browse files
Tomer Tayarogabbay
authored andcommitted
accel/habanalabs/gaudi2: add zero padding when printing QM CP instruction
QM instructions are in multiples of 64 bits and the command type is in the upper bits of first QWORD. To make it clearer that an undefined command is due to a type of 0x0, always print all 64 bits and add a zero padding if needed. Signed-off-by: Tomer Tayar <ttayar@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
1 parent d980e1c commit 565ee78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/accel/habanalabs/gaudi2/gaudi2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7884,7 +7884,7 @@ static void handle_lower_qman_data_on_err(struct hl_device *hdev, u64 qman_base,
78847884
cp_current_inst = ((u64) hi) << 32 | lo;
78857885

78867886
dev_info(hdev->dev,
7887-
"LowerQM. %sCQ: {ptr %#llx, size %u}, CP: {instruction %#llx}\n",
7887+
"LowerQM. %sCQ: {ptr %#llx, size %u}, CP: {instruction %#018llx}\n",
78887888
is_arc_cq ? "ARC_" : "", cq_ptr, cq_ptr_size, cp_current_inst);
78897889

78907890
if (event_mask & HL_NOTIFIER_EVENT_UNDEFINED_OPCODE) {

0 commit comments

Comments
 (0)