Эх сурвалжийг харах

video: driver: Read ctrl_init register value during FW bootup failure

To debug FW bootup failure scenario, FW tries to update ctrl_init
register to know at what point failure is seen and driver can
read and print this register so as to know where FW bootup is
failing.

Change-Id: I26691a84ab2526dee8adb6b2a46b62a01bacede8
Signed-off-by: Vedang Nagar <[email protected]>
Vedang Nagar 1 жил өмнө
parent
commit
236e1f55dd

+ 6 - 1
driver/variant/iris33/src/msm_vidc_iris33.c

@@ -1155,6 +1155,10 @@ static int __boot_firmware_iris33(struct msm_vidc_core *core)
 		if (rc)
 			return rc;
 
+		rc = __read_register(core, HFI_CTRL_INIT_IRIS33, &ctrl_init_val);
+		if (rc)
+			return rc;
+
 		if ((ctrl_status & HFI_CTRL_ERROR_FATAL) ||
 			(ctrl_status & HFI_CTRL_ERROR_UC_REGION_NOT_SET) ||
 			(ctrl_status & HFI_CTRL_ERROR_HW_FENCE_QUEUE)) {
@@ -1172,7 +1176,8 @@ static int __boot_firmware_iris33(struct msm_vidc_core *core)
 	}
 
 	if (count >= max_tries) {
-		d_vpr_e("Error booting up vidc firmware, ctrl status %#x\n", ctrl_status);
+		d_vpr_e("Error booting up vidc firmware, ctrl status %#x, ctrl init %#x\n",
+			ctrl_status, ctrl_init_val);
 		return -ETIME;
 	}