habanalabs/gaudi: print ECC type field
authorOded Gabbay <ogabbay@kernel.org>
Sat, 21 Nov 2020 12:29:25 +0000 (14:29 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 30 Nov 2020 08:47:36 +0000 (10:47 +0200)
We have the ECC type field from the firmware but the driver didn't
print it, so we need to add that field to the ECC print message.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c

index c99ad8d65deafac62c81dfcd8ac116745ceeba39..cd18456fa523dc77758afba8d96d559d8e6c95fc 100644 (file)
@@ -6918,8 +6918,8 @@ static int gaudi_hbm_read_interrupts(struct hl_device *hdev, int device,
                                le32_to_cpu(hbm_ecc_data->hbm_ecc_info));
 
                dev_err(hdev->dev,
-                       "HBM%d pc%d interrupts info: WR_PAR=%d, RD_PAR=%d, CA_PAR=%d, SERR=%d, DERR=%d\n",
-                       device, ch, wr_par, rd_par, ca_par, serr, derr);
+                       "HBM%d pc%d ECC: TYPE=%d, WR_PAR=%d, RD_PAR=%d, CA_PAR=%d, SERR=%d, DERR=%d\n",
+                       device, ch, type, wr_par, rd_par, ca_par, serr, derr);
 
                err = 1;