disp: msm: sde: fix autorefresh enable/disable sequence

SDE RSCC solver state and autorefresh enable concurrency
is not supported. This change moves the rscc solver state
to disable to avoid concurrency. It also resets the autorefresh
software structure state when encoder is disabled. This allows
autorefresh reconfiguration with next encoder enable.

Change-Id: Idb8c722c823d9f46d3cd03e1b046da69c8d88fc4
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
This commit is contained in:
Dhaval Patel
2021-04-20 15:14:08 -07:00
committed by Gerrit - the friendly Code Review server
parent 8a3abf2cdf
commit a698dbe5aa
3 changed files with 21 additions and 12 deletions

View File

@@ -194,6 +194,8 @@ struct sde_encoder_ops {
* of esd attack to ensure esd workqueue detects
* the previous frame transfer completion before
* next update is triggered.
* @autorefresh_solver_disable It tracks if solver state is disabled from this
* encoder due to autorefresh concurrency.
*/
struct sde_encoder_virt {
struct drm_encoder base;
@@ -262,6 +264,7 @@ struct sde_encoder_virt {
struct cpumask valid_cpu_mask;
struct msm_mode_info mode_info;
bool delay_kickoff;
bool autorefresh_solver_disable;
};
#define to_sde_encoder_virt(x) container_of(x, struct sde_encoder_virt, base)