intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: marius vlad <marius.c.vlad@intel.com>
Subject: [PATCH] drm/i915: Support HDMI EDID injection
Date: Thu, 16 Feb 2017 08:43:18 +0200	[thread overview]
Message-ID: <1487227398-8931-1-git-send-email-abdiel.janulgue@linux.intel.com> (raw)

From: marius vlad <marius.c.vlad@intel.com>

Make a copy of drm_property_blob data for user-supplied EDID blobs.

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);
-- 
2.7.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

             reply	other threads:[~2017-02-16  6:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-16  6:43 Abdiel Janulgue [this message]
2017-02-16  7:23 ` ✗ Fi.CI.BAT: failure for drm/i915: Support HDMI EDID injection (rev3) Patchwork
2017-02-16 10:39 ` [PATCH] drm/i915: Support HDMI EDID injection Jani Nikula
2017-02-16 13:50 ` ✓ Fi.CI.BAT: success for drm/i915: Support HDMI EDID injection (rev3) 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=1487227398-8931-1-git-send-email-abdiel.janulgue@linux.intel.com \
    --to=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).