From: Madhav Chauhan <madhav.chauhan@intel.com>
To: Jani Nikula <jani.nikula@intel.com>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH v10 06/15] drm/i915/icl: Add DSI encoder remaining functions
Date: Fri, 2 Nov 2018 17:50:17 +0530 [thread overview]
Message-ID: <bbdc2e71-8b91-51a9-e110-821bbc0b0a28@intel.com> (raw)
In-Reply-To: <85f699ee3ec49876101b8f3790bf80c5413e377f.1541158986.git.jani.nikula@intel.com>
On 11/2/2018 5:17 PM, Jani Nikula wrote:
> From: Madhav Chauhan <madhav.chauhan@intel.com>
>
> This patch implements compute config for Gen11 DSI encoder which is
> required at the time of modeset.
>
> v2 by Jani:
> - drop the enable nop hook
> - fixed_mode is always true
> - HAS_GMCH_DISPLAY() is always false
>
> v3 by Jani:
> - set encoder->compute_config dropped during rebase
Ok. :)
Regards,
Madhav
>
> Signed-off-by: Madhav Chauhan <madhav.chauhan@intel.com>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/i915/icl_dsi.c | 32 ++++++++++++++++++++++++++++++++
> 1 file changed, 32 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/icl_dsi.c b/drivers/gpu/drm/i915/icl_dsi.c
> index 1881825432cb..8cdf736c2bbd 100644
> --- a/drivers/gpu/drm/i915/icl_dsi.c
> +++ b/drivers/gpu/drm/i915/icl_dsi.c
> @@ -1068,6 +1068,37 @@ static void gen11_dsi_get_config(struct intel_encoder *encoder,
> pipe_config->port_clock = pixel_clk;
> }
>
> +static bool gen11_dsi_compute_config(struct intel_encoder *encoder,
> + struct intel_crtc_state *pipe_config,
> + struct drm_connector_state *conn_state)
> +{
> + struct intel_dsi *intel_dsi = container_of(encoder, struct intel_dsi,
> + base);
> + struct intel_connector *intel_connector = intel_dsi->attached_connector;
> + struct intel_crtc *crtc = to_intel_crtc(pipe_config->base.crtc);
> + const struct drm_display_mode *fixed_mode =
> + intel_connector->panel.fixed_mode;
> + struct drm_display_mode *adjusted_mode =
> + &pipe_config->base.adjusted_mode;
> +
> + intel_fixed_panel_mode(fixed_mode, adjusted_mode);
> + intel_pch_panel_fitting(crtc, pipe_config, conn_state->scaling_mode);
> +
> + adjusted_mode->flags = 0;
> +
> + /* Dual link goes to trancoder DSI'0' */
> + if (intel_dsi->ports == BIT(PORT_B))
> + pipe_config->cpu_transcoder = TRANSCODER_DSI_1;
> + else
> + pipe_config->cpu_transcoder = TRANSCODER_DSI_0;
> +
> + pipe_config->clock_set = true;
> +
> + //TODO: Add check if DSI PLL calculation is done
> +
> + return true;
> +}
> +
> static u64 gen11_dsi_get_power_domains(struct intel_encoder *encoder,
> struct intel_crtc_state *crtc_state)
> {
> @@ -1235,6 +1266,7 @@ void icl_dsi_init(struct drm_i915_private *dev_priv)
> encoder->disable = gen11_dsi_disable;
> encoder->port = port;
> encoder->get_config = gen11_dsi_get_config;
> + encoder->compute_config = gen11_dsi_compute_config;
> encoder->get_hw_state = gen11_dsi_get_hw_state;
> encoder->type = INTEL_OUTPUT_DSI;
> encoder->cloneable = 0;
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-11-02 12:20 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-02 11:47 [PATCH v10 00/15] drm/i915/icl: dsi enabling Jani Nikula
2018-11-02 11:47 ` [PATCH v10 01/15] drm/i915/icl: Allocate DSI encoder/connector Jani Nikula
2018-11-02 11:47 ` [PATCH v10 02/15] drm/i915/icl: Fill DSI ports info Jani Nikula
2018-11-02 11:47 ` [PATCH v10 03/15] drm/i915/icl: Allocate DSI hosts and imlement host transfer Jani Nikula
2018-11-02 11:47 ` [PATCH v10 04/15] drm/i915/icl: Add get config functionality for DSI Jani Nikula
2018-11-02 11:47 ` [PATCH v10 05/15] drm/i915/icl: Get HW state for DSI encoder Jani Nikula
2018-11-02 13:30 ` Madhav Chauhan
2018-11-08 14:29 ` Lisovskiy, Stanislav
2018-11-02 11:47 ` [PATCH v10 06/15] drm/i915/icl: Add DSI encoder remaining functions Jani Nikula
2018-11-02 12:20 ` Madhav Chauhan [this message]
2018-11-02 11:47 ` [PATCH v10 07/15] drm/i915/icl: Configure DSI Dual link mode Jani Nikula
2018-11-02 11:47 ` [PATCH v10 08/15] drm/i915/icl: Consider DSI for getting transcoder state Jani Nikula
2018-11-02 11:47 ` [PATCH v10 09/15] drm/i915/icl: Get pipe timings for DSI Jani Nikula
2018-11-02 11:47 ` [PATCH v10 10/15] drm/i915/icl: Define missing bitfield for shortplug reg Jani Nikula
2018-11-02 11:47 ` [PATCH v10 11/15] drm/i915/icl: Define Panel power ctrl register Jani Nikula
2018-11-02 11:47 ` [PATCH v10 12/15] drm/i915/icl: Define display GPIO pins for DSI Jani Nikula
2018-11-02 11:47 ` [PATCH v10 13/15] drm/i915/icl: add dummy DSI GPIO element execution function Jani Nikula
2018-11-02 11:54 ` Madhav Chauhan
2018-11-02 13:10 ` Jani Nikula
2018-11-02 11:47 ` [PATCH v10 14/15] HACK: drm/i915/icl: Add changes to program DSI panel GPIOs Jani Nikula
2018-11-02 11:47 ` [PATCH v10 15/15] HACK: drm/i915/icl: Configure backlight functions for DSI Jani Nikula
2018-11-02 11:49 ` [PATCH v10 00/15] drm/i915/icl: dsi enabling Jani Nikula
2018-11-02 12:26 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/icl: dsi enabling (rev5) Patchwork
2018-11-02 12:30 ` ✗ Fi.CI.SPARSE: " Patchwork
2018-11-02 12:44 ` ✗ Fi.CI.BAT: failure " Patchwork
2018-11-02 13:45 ` [PATCH v10 00/15] drm/i915/icl: dsi enabling Jani Nikula
2018-11-02 18:33 ` Madhav Chauhan
2018-11-03 19:16 ` Jani Nikula
2018-11-05 5:46 ` Kulkarni, Vandita
2018-11-05 9:32 ` Chauhan, Madhav
2018-11-05 9:55 ` Kulkarni, Vandita
2018-11-05 10:16 ` Chauhan, Madhav
2018-11-05 11:42 ` Kulkarni, Vandita
2018-11-02 13:47 ` ✗ Fi.CI.BAT: failure for drm/i915/icl: dsi enabling (rev5) Patchwork
2018-11-30 14:13 ` [PATCH v10 00/15] drm/i915/icl: dsi enabling Madhav Chauhan
2018-11-30 14:15 ` Chauhan, Madhav
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bbdc2e71-8b91-51a9-e110-821bbc0b0a28@intel.com \
--to=madhav.chauhan@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox