disp: msm: sde: update avr mode config during commit prepare
Add changes to support avr mode config update during prepare commit which happens before gpu fence wait for the input buffers. Change-Id: Ib2cb5b7e1f10501914c003f6cf066b85048f79d4 Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> Signed-off-by: Jayaprakash <jmadiset@codeaurora.org>
此提交包含在:
@@ -7011,21 +7011,11 @@ int dsi_display_pre_kickoff(struct drm_connector *connector,
|
||||
{
|
||||
int rc = 0;
|
||||
int i;
|
||||
bool enable;
|
||||
|
||||
/* check and setup MISR */
|
||||
if (display->misr_enable)
|
||||
_dsi_display_setup_misr(display);
|
||||
|
||||
if (params->qsync_update) {
|
||||
enable = (params->qsync_mode > 0) ? true : false;
|
||||
rc = dsi_display_qsync(display, enable);
|
||||
if (rc)
|
||||
DSI_ERR("%s failed to send qsync commands\n",
|
||||
__func__);
|
||||
SDE_EVT32(params->qsync_mode, rc);
|
||||
}
|
||||
|
||||
rc = dsi_display_set_roi(display, params->rois);
|
||||
|
||||
/* dynamic DSI clock setting */
|
||||
@@ -7106,6 +7096,29 @@ error_out:
|
||||
return rc;
|
||||
}
|
||||
|
||||
int dsi_display_pre_commit(void *display,
|
||||
struct msm_display_conn_params *params)
|
||||
{
|
||||
bool enable = false;
|
||||
int rc = 0;
|
||||
|
||||
if (!display || !params) {
|
||||
pr_err("Invalid params\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (params->qsync_update) {
|
||||
enable = (params->qsync_mode > 0) ? true : false;
|
||||
rc = dsi_display_qsync(display, enable);
|
||||
if (rc)
|
||||
pr_err("%s failed to send qsync commands\n",
|
||||
__func__);
|
||||
SDE_EVT32(params->qsync_mode, rc);
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
int dsi_display_enable(struct dsi_display *display)
|
||||
{
|
||||
int rc = 0;
|
||||
|
新增問題並參考
封鎖使用者