<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:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@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;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:宋体;}
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;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle18
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
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="ZH-CN" link="blue" vlink="purple">
<div class="WordSection1">
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<p class="MsoNormal"><span lang="EN-US">Sorry, but I don't get how this enables power_well_2 as well. I just see it enabling ddi A/E as the other. <o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Maybe Paulo or Imre are the best one to review this.<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">On Thu, Aug 13, 2015 at 2:54 AM Xiong Zhang <<a href="mailto:xiong.y.zhang@intel.com">xiong.y.zhang@intel.com</a>> wrote:<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal"><span lang="EN-US">From B spec, DDI_E port belong to PowerWell 2, but<br>
DDI_E share the powerwell_req/staus register bit with<br>
DDI_A which belong to DDI_A_E_POWER_WELL.<br>
<br>
In order to communicate with the connector on DDI-E, both<br>
DDI_A_E_POWER_WELL and POWER_WELL_2 must be enabled.<br>
<br>
Currently intel_dp_power_get(DDI_E) only enable<br>
DDI_A_E_POWER_WELL, this patch will not only enable<br>
DDI_a_E_POWER_WELL but also enable POWER_WELL_2.<br>
<br>
This patch also fix the DDI-E hotplug function.<br>
<br>
Signed-off-by: Xiong Zhang <<a href="mailto:xiong.y.zhang@intel.com" target="_blank">xiong.y.zhang@intel.com</a>><br>
---<br>
 drivers/gpu/drm/i915/i915_debugfs.c     | 2 ++<br>
 drivers/gpu/drm/i915/i915_drv.h         | 1 +<br>
 drivers/gpu/drm/i915/intel_display.c    | 3 ++-<br>
 drivers/gpu/drm/i915/intel_runtime_pm.c | 2 ++<br>
 4 files changed, 7 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c<br>
index 86734be..5523b6e 100644<br>
--- a/drivers/gpu/drm/i915/i915_debugfs.c<br>
+++ b/drivers/gpu/drm/i915/i915_debugfs.c<br>
@@ -2564,6 +2564,8 @@ static const char *power_domain_str(enum intel_display_power_domain domain)<br>
                return "PORT_DDI_D_2_LANES";<br>
        case POWER_DOMAIN_PORT_DDI_D_4_LANES:<br>
                return "PORT_DDI_D_4_LANES";<br>
+       case POWER_DOMAIN_PORT_DDI_E_2_LANES:<br>
+               return "PORT_DDI_E_2_LANES";<br>
        case POWER_DOMAIN_PORT_DSI:<br>
                return "PORT_DSI";<br>
        case POWER_DOMAIN_PORT_CRT:<br>
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h<br>
index b157865..ee71f90 100644<br>
--- a/drivers/gpu/drm/i915/i915_drv.h<br>
+++ b/drivers/gpu/drm/i915/i915_drv.h<br>
@@ -182,6 +182,7 @@ enum intel_display_power_domain {<br>
        POWER_DOMAIN_PORT_DDI_C_4_LANES,<br>
        POWER_DOMAIN_PORT_DDI_D_2_LANES,<br>
        POWER_DOMAIN_PORT_DDI_D_4_LANES,<br>
+       POWER_DOMAIN_PORT_DDI_E_2_LANES,<br>
        POWER_DOMAIN_PORT_DSI,<br>
        POWER_DOMAIN_PORT_CRT,<br>
        POWER_DOMAIN_PORT_OTHER,<br>
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c<br>
index 801187c..ccd3f0b 100644<br>
--- a/drivers/gpu/drm/i915/intel_display.c<br>
+++ b/drivers/gpu/drm/i915/intel_display.c<br>
@@ -5150,7 +5150,6 @@ static enum intel_display_power_domain port_to_power_domain(enum port port)<br>
 {<br>
        switch (port) {<br>
        case PORT_A:<br>
-       case PORT_E:<br>
                return POWER_DOMAIN_PORT_DDI_A_4_LANES;<br>
        case PORT_B:<br>
                return POWER_DOMAIN_PORT_DDI_B_4_LANES;<br>
@@ -5158,6 +5157,8 @@ static enum intel_display_power_domain port_to_power_domain(enum port port)<br>
                return POWER_DOMAIN_PORT_DDI_C_4_LANES;<br>
        case PORT_D:<br>
                return POWER_DOMAIN_PORT_DDI_D_4_LANES;<br>
+       case PORT_E:<br>
+               return POWER_DOMAIN_PORT_DDI_E_2_LANES;<br>
        default:<br>
                WARN_ON_ONCE(1);<br>
                return POWER_DOMAIN_PORT_OTHER;<br>
diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c<br>
index 821644d..af7fdb3 100644<br>
--- a/drivers/gpu/drm/i915/intel_runtime_pm.c<br>
+++ b/drivers/gpu/drm/i915/intel_runtime_pm.c<br>
@@ -297,6 +297,7 @@ static void hsw_set_power_well(struct drm_i915_private *dev_priv,<br>
        BIT(POWER_DOMAIN_PORT_DDI_C_4_LANES) |          \<br>
        BIT(POWER_DOMAIN_PORT_DDI_D_2_LANES) |          \<br>
        BIT(POWER_DOMAIN_PORT_DDI_D_4_LANES) |          \<br>
+       BIT(POWER_DOMAIN_PORT_DDI_E_2_LANES) <span style="color:#1F497D"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D">[Zhang, Xiong Y] this line put DDI_E_2_LANES into SKL_DISPLAY_POWERWELL_2_POWER_DOMAINS, but the git format-patch doesn’t show
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:#1F497D">#define SKL_DISPLAY_POWERWELL_2_POWER_DOMAINS. So it isn’t easy to review this.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">|          \<br>
        BIT(POWER_DOMAIN_AUX_B) |                       \<br>
        BIT(POWER_DOMAIN_AUX_C) |                       \<br>
        BIT(POWER_DOMAIN_AUX_D) |                       \<br>
@@ -316,6 +317,7 @@ static void hsw_set_power_well(struct drm_i915_private *dev_priv,<br>
 #define SKL_DISPLAY_DDI_A_E_POWER_DOMAINS (            \<br>
        BIT(POWER_DOMAIN_PORT_DDI_A_2_LANES) |          \<br>
        BIT(POWER_DOMAIN_PORT_DDI_A_4_LANES) |          \<br>
+       BIT(POWER_DOMAIN_PORT_DDI_E_2_LANES) |          \<br>
        BIT(POWER_DOMAIN_INIT))<br>
 #define SKL_DISPLAY_DDI_B_POWER_DOMAINS (              \<br>
        BIT(POWER_DOMAIN_PORT_DDI_B_2_LANES) |          \<br>
--<br>
2.1.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></span></p>
</blockquote>
</div>
</div>
</div>
</body>
</html>