<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 - sna driver ignores DisplaySize setting in xorg.conf"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90842">90842</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>sna driver ignores DisplaySize setting in xorg.conf
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>xorg
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>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>Driver/intel
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>chris@chris-wilson.co.uk
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>Martin@Lichtvoll.de
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=116282" name="attach_116282" title="xorg log with sna enabled where the driver does not seem to use DisplaySize setting">attachment 116282</a> <a href="attachment.cgi?id=116282&action=edit" title="xorg log with sna enabled where the driver does not seem to use DisplaySize setting">[details]</a></span>
xorg log with sna enabled where the driver does not seem to use DisplaySize
setting

In order to try whether it helps with

[<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - [4.1-rc6] gpu hang: ecode 6:-1:0x00000000, Kicking stuck semaphore on render ring"
   href="show_bug.cgi?id=90835">Bug 90835</a>] New: [4.1-rc6] gpu hang: ecode 6:-1:0x00000000, Kicking stuck
semaphore on render ring

I tried removing

AccelMethod "uxa"

setting.

Now despite:

martin@merkaba:~> cat /etc/X11/xorg.conf.d/anzeige.conf 
Section "Device"
        Identifier      "Grafikkern"

        Driver          "intel"

        # Monitore
        Option          "Monitor-LVDS1" "Notebook-Display"

        # Optionen
        #Option         "AccelMethod"   "uxa"
EndSection

Section "Monitor"
        Identifier      "Notebook-Display"

        DisplaySize     340 192
EndSection

which would give me a nice 143x143 dpi setting, I get:

martin@merkaba:~> xdpyinfo | grep dots
  resolution:    96x96 dots per inch

I see:

[     9.526] (II) intel(0): SNA compiled: xserver-xorg-video-intel 2:2.99.917-1
(Vincent Cheng <<a href="mailto:vcheng@debian.org">vcheng@debian.org</a>>)
[     9.535] (II) intel(0): SNA initialized with Sandybridge (gen6, gt2)
backend
[…]
[     9.628] (II) intel(0): switch to mode <a href="mailto:1920x1080@60.0">1920x1080@60.0</a> on LVDS1 using pipe
0, position (0, 0), rotation normal, reflection none
[     9.633] (II) intel(0): switch to mode <a href="mailto:1920x1080@60.0">1920x1080@60.0</a> on DP2 using pipe 1,
position (0, 0), rotation normal, reflection none
[     9.638] (II) intel(0): Setting screen physical size to 508 x 285


in Xorg.0.log in that case.

With UXA I get:

[ 13202.437] (**) intel(0): Option "AccelMethod" "uxa"
[ 13202.494] (II) UXA(0): Driver registered support for the following
operations:
[ 13202.494] (II)         solid
[ 13202.494] (II)         copy
[ 13202.494] (II)         composite (RENDER acceleration)
[ 13202.494] (II)         put_image
[ 13202.494] (II)         get_image

[ 13202.560] (II) intel(0): Setting screen physical size to 340 x 192


Thing is: I *know* it better. 143x143 dpi is just about right for ThinkPad T520
with 15 inch display, I measured the display size.

I think what may happen here that sna driver somehow takes second display into
account. I have:

martin@merkaba:~> xrandr
Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 32767 x 32767
LVDS1 connected primary 1920x1080+0+0 (normal left inverted right x axis y
axis) 344mm x 193mm
   1920x1080     60.00*+  59.93    50.00  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1280x1024     60.02  
   1440x900      59.89  
   1280x960      60.00  
   1360x768      59.80    59.96  
   1152x864      60.00  
   1024x768      60.00  
   800x600       60.32    56.25  
   640x480       59.94  
DP1 disconnected (normal left inverted right x axis y axis)
DP2 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 531mm
x 299mm
   1920x1080     60.00*+  50.00    50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.95  
   1600x900      59.98  
   1280x1024     75.02    60.02  
   1440x900      59.89  
   1280x720      60.00    50.00    59.94  
   1024x768      75.08    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
DP3 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
HDMI3 disconnected (normal left inverted right x axis y axis)
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)


Basically not even exactly that. Intel SNA driver just seems to do guesswork.
Xrandr seem to report good sizes.

Okay, so I will remove DisplaySize setting and see whether it helps.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>