[Intel-gfx] [PATCH 4/6] drm/i915: Allow ICL+ DSI on any pipe

Lucas De Marchi lucas.demarchi at intel.com
Wed Oct 2 16:35:53 UTC 2019


On Wed, Oct 02, 2019 at 07:25:03PM +0300, Ville Syrjälä wrote:
>From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
>There are no longer any pipe<->DSI port limitations on icl+.
>Populate the pipe_mask accordingly.
>
>Cc: José Roberto de Souza <jose.souza at intel.com>
>Cc: Lucas De Marchi <lucas.demarchi at intel.com>
>Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
>---
> drivers/gpu/drm/i915/display/icl_dsi.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
>diff --git a/drivers/gpu/drm/i915/display/icl_dsi.c b/drivers/gpu/drm/i915/display/icl_dsi.c
>index 4cea8ed2bd31..99a75c611387 100644
>--- a/drivers/gpu/drm/i915/display/icl_dsi.c
>+++ b/drivers/gpu/drm/i915/display/icl_dsi.c
>@@ -1552,6 +1552,7 @@ void icl_dsi_init(struct drm_i915_private *dev_priv)
> 	struct drm_connector *connector;
> 	struct drm_display_mode *fixed_mode;
> 	enum port port;
>+	enum pipe pipe;
>
> 	if (!intel_bios_is_dsi_present(dev_priv, &port))
> 		return;
>@@ -1584,7 +1585,8 @@ void icl_dsi_init(struct drm_i915_private *dev_priv)
> 	encoder->get_hw_state = gen11_dsi_get_hw_state;
> 	encoder->type = INTEL_OUTPUT_DSI;
> 	encoder->cloneable = 0;
>-	encoder->pipe_mask = BIT(PIPE_A) | BIT(PIPE_B) | BIT(PIPE_C);
>+	for_each_pipe(dev_priv, pipe)
>+		encoder->pipe_mask |= BIT(pipe);

Reviewed-by: Lucas De Marchi <lucas.demarchi at intel.com>


Lucas De Marchi


> 	encoder->power_domain = POWER_DOMAIN_PORT_DSI;
> 	encoder->get_power_domains = gen11_dsi_get_power_domains;
>
>-- 
>2.21.0
>


More information about the Intel-gfx mailing list