disp: msm: add private mode_seamless flag

This change adds DRM_MODE_SEAMLESS to private flags downstream,
as it was deprecated from drm UAPI. Additionally, this will
update the is_mode_seamless function to access the seamless
flag from private flags.

Change-Id: Idea0b4ac8e71063c000f582d3228bc0a50a6a8e6
Signed-off-by: orion brody <obrody@codeaurora.org>
Cette révision appartient à :
orion brody
2020-11-04 15:20:55 -08:00
Parent fa4d168b27
révision dee5134f1e
2 fichiers modifiés avec 5 ajouts et 3 suppressions

Voir le fichier

@@ -118,7 +118,7 @@ void dsi_convert_to_drm_mode(const struct dsi_display_mode *dsi_mode,
drm_mode->private = (int *)dsi_mode->priv_info;
if (dsi_mode->dsi_mode_flags & DSI_MODE_FLAG_SEAMLESS)
drm_mode->flags |= DRM_MODE_FLAG_SEAMLESS;
drm_mode->private_flags |= DRM_MODE_FLAG_SEAMLESS;
if (dsi_mode->dsi_mode_flags & DSI_MODE_FLAG_DFPS)
drm_mode->private_flags |= MSM_MODE_FLAG_SEAMLESS_DYNAMIC_FPS;
if (dsi_mode->dsi_mode_flags & DSI_MODE_FLAG_VBLANK_PRE_MODESET)

Voir le fichier

@@ -42,6 +42,8 @@
#define MSM_MODE_FLAG_SEAMLESS_POMS (1<<4)
/* Request to switch the bit clk */
#define MSM_MODE_FLAG_SEAMLESS_DYN_CLK (1<<5)
/* Request to make the seamless switch */
#define DRM_MODE_FLAG_SEAMLESS (1<<6)
/* As there are different display controller blocks depending on the
* snapdragon version, the kms support is split out and the appropriate
@@ -206,7 +208,7 @@ struct msm_kms *sde_kms_init(struct drm_device *dev);
*/
static inline bool msm_is_mode_seamless(const struct drm_display_mode *mode)
{
return (mode->flags & DRM_MODE_FLAG_SEAMLESS);
return (mode->private_flags & DRM_MODE_FLAG_SEAMLESS);
}
static inline bool msm_is_mode_seamless_dms(const struct drm_display_mode *mode)
@@ -217,7 +219,7 @@ static inline bool msm_is_mode_seamless_dms(const struct drm_display_mode *mode)
static inline bool msm_is_mode_dynamic_fps(const struct drm_display_mode *mode)
{
return ((mode->flags & DRM_MODE_FLAG_SEAMLESS) &&
return ((mode->private_flags & DRM_MODE_FLAG_SEAMLESS) &&
(mode->private_flags & MSM_MODE_FLAG_SEAMLESS_DYNAMIC_FPS));
}