public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Sharma, Shashank" <shashank.sharma@intel.com>
To: Rodrigo Vivi <rodrigo.vivi@gmail.com>,
	"Pandiyan, Dhinakaran" <dhinakaran.pandiyan@intel.com>
Cc: intel-gfx <intel-gfx@lists.freedesktop.org>,
	Paulo Zanoni <paulo.r.zanoni@intel.com>
Subject: Re: [PATCH v2 4/4] drm/i915: Enable lspcon initialization
Date: Fri, 01 Jul 2016 11:57:27 +0530	[thread overview]
Message-ID: <57760D4F.10003@intel.com> (raw)
In-Reply-To: <CABVU7+uST_bWOGsmE=DvN7Lr=7DDbjCNyEoGh5kheJ7QeiDrUQ@mail.gmail.com>

Regards
Shashank

On 7/1/2016 4:23 AM, Rodrigo Vivi wrote:
> On Tue, Jun 21, 2016 at 8:00 AM, Shashank Sharma
> <shashank.sharma@intel.com> wrote:
>> This patch adds initialization code for lspcon.
>> What we are doing here is:
>>          - Check if lspcon is configured in VBT for this port
>>          - If lspcon is configured, initialize it and configure it
>>            as DP port.
>>
>> V2: Addressed Ville's review comments:
>> - Not adding AVI IF functions for LSPCON display now.
>>    This part will be added once the dig_port level AVI-IF series
>>    gets merged.
>>
>> Signed-off-by: Shashank Sharma <shashank.sharma@intel.com>
>> ---
>>   drivers/gpu/drm/i915/intel_ddi.c | 29 ++++++++++++++++++++++++++++-
>>   1 file changed, 28 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
>> index ad3b0ee..208a1ff 100644
>> --- a/drivers/gpu/drm/i915/intel_ddi.c
>> +++ b/drivers/gpu/drm/i915/intel_ddi.c
>> @@ -2323,7 +2323,7 @@ void intel_ddi_init(struct drm_device *dev, enum port port)
>>          struct intel_digital_port *intel_dig_port;
>>          struct intel_encoder *intel_encoder;
>>          struct drm_encoder *encoder;
>> -       bool init_hdmi, init_dp;
>> +       bool init_hdmi, init_dp, init_lspcon = false;
>>          int max_lanes;
>>
>>          if (I915_READ(DDI_BUF_CTL(PORT_A)) & DDI_A_4_LANES) {
>> @@ -2355,6 +2355,19 @@ void intel_ddi_init(struct drm_device *dev, enum port port)
>>          init_hdmi = (dev_priv->vbt.ddi_port_info[port].supports_dvi ||
>>                       dev_priv->vbt.ddi_port_info[port].supports_hdmi);
>>          init_dp = dev_priv->vbt.ddi_port_info[port].supports_dp;
>> +
>> +       if (intel_bios_is_lspcon_present(dev_priv, port)) {
>> +               /*
>> +                * Lspcon device needs to be driven with DP connector
>> +                * with special detection sequence. So make sure DP
>> +                * is initialized before lspcon.
>> +                */
>> +               init_dp = true;
>> +               init_lspcon = true;
>> +               init_hdmi = false;
>> +               DRM_DEBUG_KMS("VBT says port %c has lspcon\n", port_name(port));
>> +       }
>> +
>>          if (!init_dp && !init_hdmi) {
>>                  DRM_DEBUG_KMS("VBT says port %c is not DVI/HDMI/DP compatible, respect it\n",
>>                                port_name(port));
>> @@ -2430,6 +2443,20 @@ void intel_ddi_init(struct drm_device *dev, enum port port)
>>                          goto err;
>>          }
>>
>> +       if (init_lspcon) {
>> +               if (lspcon_init(intel_dig_port))
>> +                       /* TODO: handle hdmi info frame part */
>
> Does it work without handling it? What are we missing here?
> Is this related to "drm/i915: Allow DP ports to set/readout infoframe
> state (WIP)"
Yes, Ville suggested not to handle AVI IF in LSPCON specifically, but he 
gave this patch set where its being handled for DDI displays.
> shouldn't it be part of a same series?
>
I am not sure, they are two different threads going on, you can suggest 
how to go for this.
>
Shashank

>> +                       DRM_DEBUG_KMS("LSPCON init success on port %c\n",
>> +                               port_name(port));
>> +               else
>> +                       /*
>> +                        * LSPCON init faied, but DP init was success, so
>> +                        * lets try to drive as DP++ port.
>> +                        */
>> +                       DRM_ERROR("LSPCON init failed on port %c\n",
>> +                               port_name(port));
>> +       }
>> +
>>          return;
>>
>>   err:
>> --
>> 1.9.1
>>
>> _______________________________________________
>> Intel-gfx mailing list
>> Intel-gfx@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
>
>
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2016-07-01  6:27 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-21 15:00 [PATCH v2 0/4] Enable lspcon support for GEN9 devices Shashank Sharma
2016-06-21 15:00 ` [PATCH v2 1/4] drm: Helper for lspcon in drm_dp_dual_mode Shashank Sharma
2016-06-30 22:16   ` Rodrigo Vivi
2016-07-01  5:58     ` Sharma, Shashank
2016-07-01 14:11       ` Rodrigo Vivi
2016-06-21 15:00 ` [PATCH v2 2/4] drm/i915: Add lspcon support for I915 driver Shashank Sharma
2016-06-30 22:30   ` Rodrigo Vivi
2016-07-01  6:22     ` Sharma, Shashank
2016-07-02  0:13       ` Rodrigo Vivi
2016-06-21 15:00 ` [PATCH v2 3/4] drm/i915: Parse VBT data for lspcon Shashank Sharma
2016-06-30 22:48   ` Rodrigo Vivi
2016-07-01  6:24     ` Sharma, Shashank
2016-06-21 15:00 ` [PATCH v2 4/4] drm/i915: Enable lspcon initialization Shashank Sharma
2016-06-30 22:53   ` Rodrigo Vivi
2016-07-01  6:27     ` Sharma, Shashank [this message]
2016-07-02  0:14       ` Rodrigo Vivi
2016-06-21 15:38 ` ✗ Ro.CI.BAT: failure for Enable lspcon support for GEN9 devices (rev2) 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=57760D4F.10003@intel.com \
    --to=shashank.sharma@intel.com \
    --cc=dhinakaran.pandiyan@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=paulo.r.zanoni@intel.com \
    --cc=rodrigo.vivi@gmail.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