All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>,
	intel-gfx@lists.freedesktop.org
Cc: marius vlad <marius.c.vlad@intel.com>
Subject: Re: [PATCH] drm/i915: Support HDMI EDID injection
Date: Thu, 16 Feb 2017 12:39:10 +0200	[thread overview]
Message-ID: <87poiio1wx.fsf@intel.com> (raw)
In-Reply-To: <1487227398-8931-1-git-send-email-abdiel.janulgue@linux.intel.com>

On Thu, 16 Feb 2017, Abdiel Janulgue <abdiel.janulgue@linux.intel.com> wrote:
> From: marius vlad <marius.c.vlad@intel.com>
>
> Make a copy of drm_property_blob data for user-supplied EDID blobs.

I'd like to stop this approach from spreading by handling the EDID
overrides at a lower level [1]. Otherwise, we'll fill all drivers with
special casing.


BR,
Jani.


[1] https://patchwork.freedesktop.org/series/19764/

> Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
> Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
> ---
>  drivers/gpu/drm/i915/intel_hdmi.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
> index a580de8..76b8023 100644
> --- a/drivers/gpu/drm/i915/intel_hdmi.c
> +++ b/drivers/gpu/drm/i915/intel_hdmi.c
> @@ -1463,6 +1463,16 @@ intel_hdmi_set_edid(struct drm_connector *connector)
>  			    intel_gmbus_get_adapter(dev_priv,
>  			    intel_hdmi->ddc_bus));
>  
> +	/*
> +	 * Use the user-supplied EDID blob in case we don't have an
> +	 * EDID from the display.
> +	 */
> +	if (!edid && connector->override_edid) {
> +		edid = kmemdup(connector->edid_blob_ptr->data,
> +			       connector->edid_blob_ptr->length,
> +			       GFP_KERNEL);
> +	}
> +
>  	intel_hdmi_dp_dual_mode_detect(connector, edid != NULL);
>  
>  	intel_display_power_put(dev_priv, POWER_DOMAIN_GMBUS);

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

  parent reply	other threads:[~2017-02-16 10:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-16  6:43 [PATCH] drm/i915: Support HDMI EDID injection Abdiel Janulgue
2017-02-16  7:23 ` ✗ Fi.CI.BAT: failure for drm/i915: Support HDMI EDID injection (rev3) Patchwork
2017-02-16 10:39 ` Jani Nikula [this message]
2017-02-16 13:50 ` ✓ Fi.CI.BAT: success " Patchwork
     [not found] <1454411107-30206-1-git-send-email-marius.c.vlad@intel.com>
2016-02-11  9:09 ` [PATCH] drm/i915: Support HDMI EDID injection Daniel Vetter
     [not found] <1454344533-30325-1-git-send-email-marius.c.vlad@intel.com>
2016-02-11  9:07 ` Daniel Vetter
  -- strict thread matches above, loose matches on Subject: below --
2016-02-02 13:01 Marius Vlad
2016-02-02 15:32 ` Jani Nikula
2016-02-02 16:00   ` Marius Vlad

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=87poiio1wx.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=abdiel.janulgue@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=marius.c.vlad@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.