diff options
| author | Rahul Sharma <rahsha@codeaurora.org> | 2019-01-22 15:17:59 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-02-08 00:49:43 -0800 |
| commit | d9f7a5cfa7e0c516914e0c403fcfc64235a56db6 (patch) | |
| tree | 152bc0de6f3f5e7945ad32468e185b2e5ba95ad0 /drivers/gpu | |
| parent | 165e5ffaffc024f77163972ed68993203aeaf77a (diff) | |
drm/msm/sde: remove fence support through get_property
Remove release and retire fence support through
get property call.
Change-Id: Ib5e3643a8cb10e6bb1ffa45dd78b7a31fbba8cc9
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/msm/sde/sde_connector.c | 8 | ||||
| -rw-r--r-- | drivers/gpu/drm/msm/sde/sde_crtc.c | 5 |
2 files changed, 7 insertions, 6 deletions
diff --git a/drivers/gpu/drm/msm/sde/sde_connector.c b/drivers/gpu/drm/msm/sde/sde_connector.c index 3e8b14b6acd7..3f65b1fef26a 100644 --- a/drivers/gpu/drm/msm/sde/sde_connector.c +++ b/drivers/gpu/drm/msm/sde/sde_connector.c @@ -562,12 +562,14 @@ static int sde_connector_atomic_get_property(struct drm_connector *connector, c_state = to_sde_connector_state(state); idx = msm_property_index(&c_conn->property_info, property); - if (idx == CONNECTOR_PROP_RETIRE_FENCE) - rc = sde_fence_create(&c_conn->retire_fence, val, 0); - else + if (idx == CONNECTOR_PROP_RETIRE_FENCE) { + *val = ~0; + rc = 0; + } else { /* get cached property value */ rc = msm_property_atomic_get(&c_conn->property_info, c_state->property_values, 0, property, val); + } /* allow for custom override */ if (c_conn->ops.get_property) diff --git a/drivers/gpu/drm/msm/sde/sde_crtc.c b/drivers/gpu/drm/msm/sde/sde_crtc.c index fe72149c40c0..50ae398e319c 100644 --- a/drivers/gpu/drm/msm/sde/sde_crtc.c +++ b/drivers/gpu/drm/msm/sde/sde_crtc.c @@ -1836,9 +1836,8 @@ static int sde_crtc_atomic_get_property(struct drm_crtc *crtc, i = msm_property_index(&sde_crtc->property_info, property); if (i == CRTC_PROP_OUTPUT_FENCE) { - ret = _sde_crtc_get_output_fence(crtc, state, val); - if (ret) - SDE_ERROR("fence create failed\n"); + *val = ~0; + ret = 0; } else { ret = msm_property_atomic_get(&sde_crtc->property_info, cstate->property_values, |
