Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: "Kulkarni, Vandita" <vandita.kulkarni@intel.com>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH v9 04/15] drm/i915/icl: Add get config functionality for DSI
Date: Fri, 02 Nov 2018 12:55:08 +0200	[thread overview]
Message-ID: <87muqreokz.fsf@intel.com> (raw)
In-Reply-To: <57510F3E2013164E925CD03ED7512A3B7F44519F@BGSMSX108.gar.corp.intel.com>

On Fri, 02 Nov 2018, "Kulkarni, Vandita" <vandita.kulkarni@intel.com> wrote:
>> -----Original Message-----
>> From: Nikula, Jani
>> Sent: Thursday, November 1, 2018 9:04 PM
>> To: intel-gfx@lists.freedesktop.org
>> Cc: Chauhan, Madhav <madhav.chauhan@intel.com>;
>> ville.syrjala@linux.intel.com; Kulkarni, Vandita <vandita.kulkarni@intel.com>;
>> Lisovskiy, Stanislav <stanislav.lisovskiy@intel.com>; Nikula, Jani
>> <jani.nikula@intel.com>
>> Subject: [PATCH v9 04/15] drm/i915/icl: Add get config functionality for DSI
>> 
>> From: Madhav Chauhan <madhav.chauhan@intel.com>
>> 
>> This patch implements the functionality for getting PIPE configuration to which
>> DSI encoder is connected. Used during the atomic modeset.
>> 
>> 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 | 14 ++++++++++++++
>>  1 file changed, 14 insertions(+)
>> 
>> diff --git a/drivers/gpu/drm/i915/icl_dsi.c b/drivers/gpu/drm/i915/icl_dsi.c index
>> 806b8c323b53..b47e837f4493 100644
>> --- a/drivers/gpu/drm/i915/icl_dsi.c
>> +++ b/drivers/gpu/drm/i915/icl_dsi.c
>> @@ -1055,6 +1055,19 @@ static void gen11_dsi_disable(struct intel_encoder
>> *encoder,
>>  	gen11_dsi_disable_io_power(encoder);
>>  }
>> 
>> +static void gen11_dsi_get_config(struct intel_encoder *encoder,
>> +				 struct intel_crtc_state *pipe_config) {
>> +	struct intel_dsi *intel_dsi = container_of(encoder, struct intel_dsi,
>> +						   base);
>> +	u32 pixel_clk;
>> +
>> +	//FIXME: Calculate pixel clock using PLL functions once implemented.
>> +	pixel_clk = intel_dsi->pclk;
>> +	pipe_config->base.adjusted_mode.crtc_clock = pixel_clk;
>> +	pipe_config->port_clock = pixel_clk;
> Is this Ok for now, or should I continue on the lines that Ville suggested?

This is pretty much a hack, we need your changes here.

BR,
Jani.

>
> Thanks,
> Vandita
>> +}
>> +
>>  static void gen11_dsi_encoder_destroy(struct drm_encoder *encoder)  {
>>  	intel_encoder_destroy(encoder);
>> @@ -1167,6 +1180,7 @@ void icl_dsi_init(struct drm_i915_private *dev_priv)
>>  	encoder->pre_enable = gen11_dsi_pre_enable;
>>  	encoder->disable = gen11_dsi_disable;
>>  	encoder->port = port;
>> +	encoder->get_config = gen11_dsi_get_config;
>>  	encoder->type = INTEL_OUTPUT_DSI;
>>  	encoder->cloneable = 0;
>>  	encoder->crtc_mask = BIT(PIPE_A) | BIT(PIPE_B) | BIT(PIPE_C);
>> --
>> 2.11.0
>

-- 
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2018-11-02 10:55 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-01 15:33 [PATCH v9 00/15] drm/i915/icl: dsi enabling Jani Nikula
2018-11-01 15:33 ` [PATCH v9 01/15] drm/i915/icl: Allocate DSI encoder/connector Jani Nikula
2018-11-02  6:45   ` Madhav Chauhan
2018-11-01 15:33 ` [PATCH v9 02/15] drm/i915/icl: Fill DSI ports info Jani Nikula
2018-11-01 15:33 ` [PATCH v9 03/15] drm/i915/icl: Allocate DSI hosts and imlement host transfer Jani Nikula
2018-11-02  6:49   ` Madhav Chauhan
2018-11-01 15:33 ` [PATCH v9 04/15] drm/i915/icl: Add get config functionality for DSI Jani Nikula
2018-11-02  6:43   ` Kulkarni, Vandita
2018-11-02 10:55     ` Jani Nikula [this message]
2018-11-01 15:33 ` [PATCH v9 05/15] drm/i915/icl: Get HW state for DSI encoder Jani Nikula
2018-11-01 17:02   ` Imre Deak
2018-11-01 15:34 ` [PATCH v9 06/15] drm/i915/icl: Add DSI encoder remaining functions Jani Nikula
2018-11-01 15:34 ` [PATCH v9 07/15] drm/i915/icl: Configure DSI Dual link mode Jani Nikula
2018-11-01 15:34 ` [PATCH v9 08/15] drm/i915/icl: Consider DSI for getting transcoder state Jani Nikula
2018-11-02  7:53   ` Madhav Chauhan
2018-11-01 15:34 ` [PATCH v9 09/15] drm/i915/icl: Get pipe timings for DSI Jani Nikula
2018-11-02  7:54   ` Madhav Chauhan
2018-11-01 15:34 ` [PATCH v9 10/15] drm/i915/icl: Define missing bitfield for shortplug reg Jani Nikula
2018-11-01 15:34 ` [PATCH v9 11/15] drm/i915/icl: Define Panel power ctrl register Jani Nikula
2018-11-01 15:34 ` [PATCH v9 12/15] drm/i915/icl: Define display GPIO pins for DSI Jani Nikula
2018-11-01 15:34 ` [PATCH v9 13/15] drm/i915/icl: add dummy DSI GPIO element execution function Jani Nikula
2018-11-01 15:34 ` [PATCH v9 14/15] HACK: drm/i915/icl: Add changes to program DSI panel GPIOs Jani Nikula
2018-11-01 15:34 ` [PATCH v9 15/15] HACK: drm/i915/icl: Configure backlight functions for DSI Jani Nikula
2018-11-01 15:37 ` [PATCH v9 00/15] drm/i915/icl: dsi enabling Jani Nikula
2018-11-01 16:44 ` ✗ Fi.CI.BAT: failure for drm/i915/icl: dsi enabling (rev4) Patchwork

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=87muqreokz.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=vandita.kulkarni@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