|
@@ -554,6 +554,8 @@ vsync_wait:
|
|
/* indicate wait for vsync for vid to cmd state switch & cfg update */
|
|
/* indicate wait for vsync for vid to cmd state switch & cfg update */
|
|
if (!rc && (rsc->current_state == SDE_RSC_VID_STATE ||
|
|
if (!rc && (rsc->current_state == SDE_RSC_VID_STATE ||
|
|
rsc->current_state == SDE_RSC_CMD_STATE)) {
|
|
rsc->current_state == SDE_RSC_CMD_STATE)) {
|
|
|
|
+ rsc->post_poms = true;
|
|
|
|
+
|
|
/* clear VSYNC timestamp for indication when update completes */
|
|
/* clear VSYNC timestamp for indication when update completes */
|
|
if (rsc->hw_ops.hw_vsync)
|
|
if (rsc->hw_ops.hw_vsync)
|
|
rsc->hw_ops.hw_vsync(rsc, VSYNC_ENABLE, NULL, 0, 0);
|
|
rsc->hw_ops.hw_vsync(rsc, VSYNC_ENABLE, NULL, 0, 0);
|
|
@@ -707,6 +709,8 @@ vsync_wait:
|
|
/* indicate wait for vsync for vid to cmd state switch & cfg update */
|
|
/* indicate wait for vsync for vid to cmd state switch & cfg update */
|
|
if (!rc && (rsc->current_state == SDE_RSC_VID_STATE ||
|
|
if (!rc && (rsc->current_state == SDE_RSC_VID_STATE ||
|
|
rsc->current_state == SDE_RSC_CMD_STATE)) {
|
|
rsc->current_state == SDE_RSC_CMD_STATE)) {
|
|
|
|
+ rsc->post_poms = true;
|
|
|
|
+
|
|
/* clear VSYNC timestamp for indication when update completes */
|
|
/* clear VSYNC timestamp for indication when update completes */
|
|
if (rsc->hw_ops.hw_vsync)
|
|
if (rsc->hw_ops.hw_vsync)
|
|
rsc->hw_ops.hw_vsync(rsc, VSYNC_ENABLE, NULL, 0, 0);
|
|
rsc->hw_ops.hw_vsync(rsc, VSYNC_ENABLE, NULL, 0, 0);
|
|
@@ -774,6 +778,7 @@ static int sde_rsc_switch_to_idle(struct sde_rsc_priv *rsc,
|
|
rc = CLK_MODE_SWITCH_SUCCESS;
|
|
rc = CLK_MODE_SWITCH_SUCCESS;
|
|
} else if (rsc->hw_ops.state_update) {
|
|
} else if (rsc->hw_ops.state_update) {
|
|
rc = rsc->hw_ops.state_update(rsc, SDE_RSC_IDLE_STATE);
|
|
rc = rsc->hw_ops.state_update(rsc, SDE_RSC_IDLE_STATE);
|
|
|
|
+ rsc->post_poms = false;
|
|
if (!rc) {
|
|
if (!rc) {
|
|
rpmh_mode_solver_set(rsc->rpmh_dev, true);
|
|
rpmh_mode_solver_set(rsc->rpmh_dev, true);
|
|
sde_rsc_set_data_bus_mode(&rsc->phandle,
|
|
sde_rsc_set_data_bus_mode(&rsc->phandle,
|