<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">All this is because of the BXT A0/A1 workaround for HPD pins.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">As you can see, this is only done for BXT A0/A1 and can be removed when we have newer stable steppings.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Durga can add more..<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Sonika<o:p></o:p></span></p>
<p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></a></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Rodrigo Vivi [mailto:rodrigo.vivi@gmail.com]
<br>
<b>Sent:</b> Thursday, September 10, 2015 12:54 AM<br>
<b>To:</b> Jindal, Sonika; intel-gfx@lists.freedesktop.org<br>
<b>Subject:</b> Re: [Intel-gfx] [PATCH 6/6] drm/i915/bxt: Fix irq_port for eDP<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Nak: I don't believe we need this... Actually I believe we need the opposite... we need to enable HPD on port A for eDP errors handling...<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Fri, Sep 4, 2015 at 6:38 AM Sonika Jindal <<a href="mailto:sonika.jindal@intel.com">sonika.jindal@intel.com</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">From: Durgadoss R <<a href="mailto:durgadoss.r@intel.com" target="_blank">durgadoss.r@intel.com</a>><br>
<br>
Currently, HDMI hotplug with eDP as local panel is failing<br>
because the HDMI hpd is detected as a long hpd for eDP; and is<br>
thus rightfully ignored. But, it should really be handled as<br>
an interrupt on port B for HDMI (due to BXT A1 platform having<br>
HPD pins A and B swapped). This patch sets the irq_port[PORT_A]<br>
to NULL in case eDP is on port A so that irq handler does not<br>
treat it as a 'dig_port' interrupt.<br>
<br>
Signed-off-by: Durgadoss R <<a href="mailto:durgadoss.r@intel.com" target="_blank">durgadoss.r@intel.com</a>><br>
---<br>
drivers/gpu/drm/i915/intel_ddi.c | 15 ++++++++++-----<br>
1 file changed, 10 insertions(+), 5 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c<br>
index 4823184..fec51df 100644<br>
--- a/drivers/gpu/drm/i915/intel_ddi.c<br>
+++ b/drivers/gpu/drm/i915/intel_ddi.c<br>
@@ -3218,15 +3218,20 @@ void intel_ddi_init(struct drm_device *dev, enum port port)<br>
goto err;<br>
<br>
intel_dig_port->hpd_pulse = intel_dp_hpd_pulse;<br>
+ dev_priv->hotplug.irq_port[port] = intel_dig_port;<br>
/*<br>
* On BXT A0/A1, sw needs to activate DDIA HPD logic and<br>
* interrupts to check the external panel connection.<br>
+ * If eDP is connected on port A, set irq_port to NULL<br>
+ * so that we do not assume an interrupt here as a<br>
+ * 'dig_port' interrupt.<br>
*/<br>
- if (IS_BROXTON(dev_priv) && (INTEL_REVID(dev) < BXT_REVID_B0)<br>
- && port == PORT_B)<br>
- dev_priv->hotplug.irq_port[PORT_A] = intel_dig_port;<br>
- else<br>
- dev_priv->hotplug.irq_port[port] = intel_dig_port;<br>
+ if (IS_BROXTON(dev) && (INTEL_REVID(dev) < BXT_REVID_B0)) {<br>
+ if (port == PORT_B)<br>
+ dev_priv->hotplug.irq_port[PORT_A] = intel_dig_port;<br>
+ else if (intel_encoder->type == INTEL_OUTPUT_EDP)<br>
+ dev_priv->hotplug.irq_port[port] = NULL;<br>
+ }<br>
}<br>
<br>
/* In theory we don't need the encoder->type check, but leave it just in<br>
--<br>
1.7.10.4<br>
<br>
_______________________________________________<br>
Intel-gfx mailing list<br>
<a href="mailto:Intel-gfx@lists.freedesktop.org" target="_blank">Intel-gfx@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/intel-gfx" target="_blank">http://lists.freedesktop.org/mailman/listinfo/intel-gfx</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</body>
</html>