Browse Source

video: driver: disable power collapse for video on pineapple

Disable video power collapse on pineapple chipset until
power collapse sequence is successful.

Change-Id: I2e7d0085e6d810fb79c2b1070c4bd498f443cfc8
Signed-off-by: Deepa Guthyappa Madivalara <[email protected]>
Deepa Guthyappa Madivalara 2 năm trước cách đây
mục cha
commit
bce7898377

+ 1 - 1
driver/platform/pineapple/src/msm_vidc_pineapple.c

@@ -306,7 +306,7 @@ static struct msm_platform_core_capability core_data_pineapple[] = {
 	{MAX_MBPS_ALL_INTRA, 2088960}, /* 4096x2176/256 MBs@60fps */
 	{MAX_ENH_LAYER_COUNT, 5},
 	{NUM_VPP_PIPE, 4},
-	{SW_PC, 1},
+	{SW_PC, 0},
 	{FW_UNLOAD, 0},
 	{HW_RESPONSE_TIMEOUT, HW_RESPONSE_TIMEOUT_VALUE}, /* 1000 ms */
 	{SW_PC_DELAY,         SW_PC_DELAY_VALUE        }, /* 1500 ms (>HW_RESPONSE_TIMEOUT)*/

+ 5 - 0
driver/vidc/src/venus_hfi.c

@@ -1023,6 +1023,11 @@ int venus_hfi_suspend(struct msm_vidc_core *core)
 	if (rc)
 		return rc;
 
+	if (!core->capabilities[SW_PC].value) {
+		d_vpr_h("Skip suspending venus\n");
+		return 0;
+	}
+
 	d_vpr_h("Suspending Venus\n");
 	rc = __power_collapse(core, true);
 	if (!rc) {