<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 - Xorg server crash when initializing secondary discrete Radeon HD 8730M GPU"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=99180">99180</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Xorg server crash when initializing secondary discrete Radeon HD 8730M GPU
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>7.7 (2012.06)
          </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>Driver/Radeon
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>xorg-driver-ati@lists.x.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>unientity@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>xorg-team@lists.x.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=128628" name="attach_128628" title="Xorg intialization log with crash">attachment 128628</a> <a href="attachment.cgi?id=128628&action=edit" title="Xorg intialization log with crash">[details]</a></span>
Xorg intialization log with crash

I have an HP 850 Elitebook laptop with Intel GPU and secondary discrete AMD HD
8730M GPU.

With the following contents (that worked for a long time) of
/etx/X11/xorg.conf.d/20-gpu.conf:

ection "Device"
        Identifier "intel"
        Driver     "intel"
        Option     "DRI"          "3"
        Option     "VSync"        "False"
        BusID      "PCI:0:2:0"
        Screen     0
EndSection

Section "Device"
        Identifier "radeon"
        Driver     "radeon"
        Option     "VSync"           "False"
        Option     "DRI"             "3"
        BusID      "PCI:3:0:0"
        Screen     1
EndSection

my Xorg server crashes during intialization stage with the following backtrace:

[    42.673] (EE) Backtrace:
[    42.673] (EE) 0: /usr/libexec/Xorg (OsLookupColor+0x139) [0x59e7d9]
[    42.674] (EE) 1: /lib64/libpthread.so.0 (__restore_rt+0x0) [0x7ff7a1c705bf]
[    42.674] (EE) 2: /usr/libexec/Xorg (xf86SetDepthBpp+0x5d0) [0x4839c0]
[    42.674] (EE) 3: /usr/lib64/xorg/modules/drivers/radeon_drv.so
(_init+0x3e6e6) [0x7ff79cd26c16]
[    42.674] (EE) 4: /usr/libexec/Xorg (InitOutput+0xb5d) [0x47d78d]
[    42.674] (EE) 5: /usr/libexec/Xorg (InitFonts+0x216) [0x43ae06]
[    42.674] (EE) 6: /lib64/libc.so.6 (__libc_start_main+0xf1) [0x7ff7a18b9401]
[    42.674] (EE) 7: /usr/libexec/Xorg (_start+0x2a) [0x424cfa]
[    42.675] (EE) 8: ? (?+0x2a) [0x2a]
[    42.675] (EE) 
[    42.675] (EE) Segmentation fault at address 0x0
[    42.675] (EE) 
Fatal server error:
[    42.675] (EE) Caught signal 11 (Segmentation fault). Server aborting
[    42.675] (EE) 

It seems that radeon_drv dislikes config with depth=24 bpp and fb=32 bpp. If I
add the following section to my 20-gpu.conf:

Section "Screen"
    Identifier     "def_screen"
    Device         "intel"
    GPUDevice      "radeon"
    DefaultDepth   24
    DefaultFbBpp   24
EndSection

forcing fpbbb=24, then crash disappears (Xorg seems to initialize fine) but the
screen is completely blank. If at the same time I change driver to
"modesetting" then Xorg crashes again.

This behaviour seems to be introduced with kernel 4.8 and still remains in 4.9.</pre>
        </div>
      </p>


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

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>