disp: msm: sde: handle spec fence bind failure case as non fatal

Add changes to handle speculative fence bind failure case with
invalid userfd as non fatal scenario and stage white frame in such
case.

Change-Id: I1386bfc5ecb5107ab100be220c24597f883d9bd6
Signed-off-by: Jayaprakash Madisetty <jmadiset@codeaurora.org>
此提交包含在:
Jayaprakash Madisetty
2021-07-23 12:31:37 +05:30
父節點 2a5878a83f
當前提交 dad1b5f51e
共有 2 個檔案被更改,包括 20 行新增6 行删除

查看文件

@@ -643,6 +643,13 @@ int sde_plane_wait_input_fence(struct drm_plane *plane, uint32_t wait_ms)
psde->is_error = true;
ret = -EINVAL;
break;
case -EBADF:
SDE_INFO("plane%d spec fd signaled on bind failure fd %lld\n",
plane->base.id,
sde_plane_get_property(pstate, PLANE_PROP_INPUT_FENCE));
psde->is_error = true;
ret = 0;
break;
default:
SDE_DEBUG_PLANE(psde, "signaled\n");
ret = 0;