<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - VGA detection fails Intel i915"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=97013">97013</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>VGA detection fails Intel i915
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DRM/Intel
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ben.antin@endlessm.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=125185" name="attach_125185" title="dmesg output from X441SA w/VGA connected">attachment 125185</a> <a href="attachment.cgi?id=125185&action=edit" title="dmesg output from X441SA w/VGA connected">[details]</a></span>
dmesg output from X441SA w/VGA connected

- system architecture: x86_64
- kernel version: 4.4.0
- Linux distribution: Ubuntu
- Machine or mother board model: Asus X441SA Braswell (Valleyview)
- Display connector: VGA

The driver fails to recognize an attached VGA port. On this particular SoC, it
appears that VGA is connected to a displayPort via an adapter. As far as I
know, this problem is specific to the Asus X441SA, as the X540SA correctly
recognizes the displayPort.

Comparing output of dmesg between Asus X540SA and X441SA reveals that the
displayPort for VGA output is connected to Port B:

[    2.908763] [drm:intel_dp_init_connector] Adding DP connector on port B
[    2.908853] [drm:intel_dp_aux_init] registering DPDDC-B bus for card0-DP-1

There is no mention of DP-1 on the logs from the X441SA.

Adding some print statements it seems that the following line is executed on
the X540SA but not on the X541SA:

_________________________
if (I915_READ(VLV_DP_B) & DP_DETECTED ||
       intel_dp_is_edp(dev, PORT_B))
                        intel_dp_init(dev, VLV_DP_B, PORT_B);
__________________________

This is from drivers/gpu/drm/i915/intel_display.c

It seems that the I915_READ() bit is 1 on the X540SA but 0 on the X441SA.
This seems somewhat similar to
<a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - [CHV] HDMI detection fails, black screen after boot"
   href="show_bug.cgi?id=96321">https://bugs.freedesktop.org/show_bug.cgi?id=96321</a>

Full dmesg output attached for X441SA.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are on the CC list for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>