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: [Intel-gfx] [PATCH] drm/i915/dsi: Enable dsi as part of encoder->enable
Date: Tue, 28 Jan 2020 18:41:19 +0200 [thread overview]
Message-ID: <87tv4fbkk0.fsf@intel.com> (raw)
In-Reply-To: <57510F3E2013164E925CD03ED7512A3B80A195D5@BGSMSX108.gar.corp.intel.com>
On Tue, 28 Jan 2020, "Kulkarni, Vandita" <vandita.kulkarni@intel.com> wrote:
>> -----Original Message-----
>> From: Jani Nikula <jani.nikula@intel.com>
>> Sent: Monday, January 27, 2020 5:34 PM
>> To: Kulkarni, Vandita <vandita.kulkarni@intel.com>; intel-
>> gfx@lists.freedesktop.org
>> Cc: Kulkarni, Vandita <vandita.kulkarni@intel.com>
>> Subject: Re: [PATCH] drm/i915/dsi: Enable dsi as part of encoder->enable
>>
>> On Mon, 27 Jan 2020, Vandita Kulkarni <vandita.kulkarni@intel.com> wrote:
>> > Enable the dsi transcoder, panel and backlight as part of
>> > encoder->enable and not encoder->pre_enable.
>>
>> That's the *what*, and we can see that much from the patch.
>>
>> But we need to know *why*, and why you think it was done like this before, and
>> why it's okay now, etc.
>
> Now this is necessary, as we should configure pipe parameters like pipe_src_size before enabling the pipe_config for dsi,
> And we are using the same code path as other encoders.
> I will update the same in the commit message.
> Thank you,
>
> Also please let me know your opinion on handling pipe src size part to icl_dsi to before enabling the transcoder.
This patch is now part of [1]. Please review.
BR,
Jani.
[1] https://patchwork.freedesktop.org/series/72678/
>
>>
>> BR,
>> Jani.
>>
>> >
>> > Signed-off-by: Vandita Kulkarni <vandita.kulkarni@intel.com>
>> > ---
>> > drivers/gpu/drm/i915/display/icl_dsi.c | 10 ++++++++--
>> > 1 file changed, 8 insertions(+), 2 deletions(-)
>> >
>> > diff --git a/drivers/gpu/drm/i915/display/icl_dsi.c
>> > b/drivers/gpu/drm/i915/display/icl_dsi.c
>> > index 1186a5df057e..d40ee5951168 100644
>> > --- a/drivers/gpu/drm/i915/display/icl_dsi.c
>> > +++ b/drivers/gpu/drm/i915/display/icl_dsi.c
>> > @@ -1086,8 +1086,6 @@ static void gen11_dsi_pre_enable(struct
>> intel_encoder *encoder,
>> > const struct intel_crtc_state *pipe_config,
>> > const struct drm_connector_state
>> *conn_state) {
>> > - struct intel_dsi *intel_dsi = enc_to_intel_dsi(encoder);
>> > -
>> > /* step3b */
>> > gen11_dsi_map_pll(encoder, pipe_config);
>> >
>> > @@ -1101,6 +1099,13 @@ static void gen11_dsi_pre_enable(struct
>> > intel_encoder *encoder,
>> >
>> > /* step6c: configure transcoder timings */
>> > gen11_dsi_set_transcoder_timings(encoder, pipe_config);
>> > +}
>> > +
>> > +static void gen11_dsi_enable(struct intel_encoder *encoder,
>> > + const struct intel_crtc_state *pipe_config,
>> > + const struct drm_connector_state
>> *conn_state) {
>> > + struct intel_dsi *intel_dsi = enc_to_intel_dsi(encoder);
>> >
>> > /* step6d: enable dsi transcoder */
>> > gen11_dsi_enable_transcoder(encoder);
>> > @@ -1727,6 +1732,7 @@ void icl_dsi_init(struct drm_i915_private
>> > *dev_priv)
>> >
>> > encoder->pre_pll_enable = gen11_dsi_pre_pll_enable;
>> > encoder->pre_enable = gen11_dsi_pre_enable;
>> > + encoder->enable = gen11_dsi_enable;
>> > encoder->disable = gen11_dsi_disable;
>> > encoder->post_disable = gen11_dsi_post_disable;
>> > encoder->port = port;
>>
>> --
>> Jani Nikula, Intel Open Source Graphics Center
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2020-01-28 16:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-27 11:16 [Intel-gfx] [PATCH] drm/i915/dsi: Enable dsi as part of encoder->enable Vandita Kulkarni
2020-01-27 12:03 ` Jani Nikula
2020-01-28 14:38 ` Kulkarni, Vandita
2020-01-28 16:41 ` Jani Nikula [this message]
2020-01-27 22:32 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2020-01-27 22:57 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2020-01-28 20:00 ` [Intel-gfx] ✓ Fi.CI.IGT: " 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=87tv4fbkk0.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.