Parcourir la source

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

qctecmdr il y a 1 an
Parent
commit
cf58e09805
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6 1
      driver/variant/iris33/src/msm_vidc_iris33.c

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

@@ -1120,6 +1120,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)) {
@@ -1137,7 +1141,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;
 	}