disp: msm: sde: update syscache properties only if supported
This change avoids msm property install and cache state transitions if sys cache is not supported in the target. Change-Id: I00b0a95772b1a3dab67c7e684529cda093d6dac6 Signed-off-by: Yashwanth <yvulapu@codeaurora.org>
This commit is contained in:
@@ -5381,6 +5381,7 @@ static void sde_crtc_install_properties(struct drm_crtc *crtc,
|
|||||||
ARRAY_SIZE(e_secure_level), 0,
|
ARRAY_SIZE(e_secure_level), 0,
|
||||||
CRTC_PROP_SECURITY_LEVEL);
|
CRTC_PROP_SECURITY_LEVEL);
|
||||||
|
|
||||||
|
if (catalog->syscache_supported)
|
||||||
msm_property_install_enum(&sde_crtc->property_info, "cache_state",
|
msm_property_install_enum(&sde_crtc->property_info, "cache_state",
|
||||||
0x0, 0, e_cache_state,
|
0x0, 0, e_cache_state,
|
||||||
ARRAY_SIZE(e_cache_state), 0,
|
ARRAY_SIZE(e_cache_state), 0,
|
||||||
@@ -6351,10 +6352,22 @@ void sde_crtc_static_img_control(struct drm_crtc *crtc,
|
|||||||
{
|
{
|
||||||
struct drm_plane *plane;
|
struct drm_plane *plane;
|
||||||
struct sde_crtc *sde_crtc;
|
struct sde_crtc *sde_crtc;
|
||||||
|
struct sde_kms *sde_kms;
|
||||||
|
|
||||||
if (!crtc || !crtc->dev)
|
if (!crtc || !crtc->dev)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
sde_kms = _sde_crtc_get_kms(crtc);
|
||||||
|
if (!sde_kms || !sde_kms->catalog) {
|
||||||
|
SDE_ERROR("invalid params\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!sde_kms->catalog->syscache_supported) {
|
||||||
|
SDE_DEBUG("syscache not supported\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
sde_crtc = to_sde_crtc(crtc);
|
sde_crtc = to_sde_crtc(crtc);
|
||||||
if (sde_crtc->cache_state == state)
|
if (sde_crtc->cache_state == state)
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user