Merge "disp: msm: sde: flush commit thread queue during pm suspend"

这个提交包含在:
qctecmdr
2021-06-01 20:21:34 -07:00
提交者 Gerrit - the friendly Code Review server
当前提交 8bbc6f2698
修改 8 个文件,包含 58 行新增22 行删除

查看文件

@@ -1415,20 +1415,27 @@ static int _sde_encoder_phys_cmd_wait_for_wr_ptr(
struct sde_encoder_phys_cmd *cmd_enc =
to_sde_encoder_phys_cmd(phys_enc);
struct sde_encoder_wait_info wait_info = {0};
int ret;
struct sde_connector *c_conn;
bool frame_pending = true;
struct sde_hw_ctl *ctl;
unsigned long lock_flags;
int ret, timeout_ms;
if (!phys_enc || !phys_enc->hw_ctl) {
if (!phys_enc || !phys_enc->hw_ctl || !phys_enc->connector) {
SDE_ERROR("invalid argument(s)\n");
return -EINVAL;
}
ctl = phys_enc->hw_ctl;
c_conn = to_sde_connector(phys_enc->connector);
timeout_ms = KICKOFF_TIMEOUT_MS;
if (c_conn->lp_mode == SDE_MODE_DPMS_LP1 ||
c_conn->lp_mode == SDE_MODE_DPMS_LP2)
timeout_ms = (KICKOFF_TIMEOUT_MS) * 2;
wait_info.wq = &phys_enc->pending_kickoff_wq;
wait_info.atomic_cnt = &phys_enc->pending_retire_fence_cnt;
wait_info.timeout_ms = KICKOFF_TIMEOUT_MS;
wait_info.timeout_ms = timeout_ms;
/* slave encoder doesn't enable for ppsplit */
if (_sde_encoder_phys_is_ppsplit_slave(phys_enc))