mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
msm: display: increase fence timeout
Increase timeout value to 900ms to allow gfx engine to render longer. When sync_fence_wait fails, need not put fence as it will be handled outside the loop. Change-Id: Id4caff55c9f99c48e5f87a85d30fe4c8c0cd65e7 Signed-off-by: Ken Zhang <kenz@codeaurora.org>
This commit is contained in:
parent
2764083d28
commit
efccfbd400
1 changed files with 5 additions and 5 deletions
|
@ -122,10 +122,10 @@ static int msm_fb_pan_idle(struct msm_fb_data_type *mfd);
|
|||
#define MSM_FB_MAX_DBGFS 1024
|
||||
#define MAX_BACKLIGHT_BRIGHTNESS 255
|
||||
|
||||
/* 800 ms for fence time out */
|
||||
#define WAIT_FENCE_TIMEOUT 800
|
||||
/* 900 ms for display operation time out */
|
||||
#define WAIT_DISP_OP_TIMEOUT 900
|
||||
/* 900 ms for fence time out */
|
||||
#define WAIT_FENCE_TIMEOUT 900
|
||||
/* 950 ms for display operation time out */
|
||||
#define WAIT_DISP_OP_TIMEOUT 950
|
||||
#define MAX_TIMELINE_NAME_LEN 16
|
||||
|
||||
int msm_fb_debugfs_file_index;
|
||||
|
@ -1755,12 +1755,12 @@ void msm_fb_wait_for_fence(struct msm_fb_data_type *mfd)
|
|||
/* buf sync */
|
||||
for (i = 0; i < mfd->acq_fen_cnt; i++) {
|
||||
ret = sync_fence_wait(mfd->acq_fen[i], WAIT_FENCE_TIMEOUT);
|
||||
sync_fence_put(mfd->acq_fen[i]);
|
||||
if (ret < 0) {
|
||||
pr_err("%s: sync_fence_wait failed! ret = %x\n",
|
||||
__func__, ret);
|
||||
break;
|
||||
}
|
||||
sync_fence_put(mfd->acq_fen[i]);
|
||||
}
|
||||
if (ret < 0) {
|
||||
while (i < mfd->acq_fen_cnt) {
|
||||
|
|
Loading…
Reference in a new issue