<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 - amdgpu: crash when PCI rescan discovers new card"
href="https://bugs.freedesktop.org/show_bug.cgi?id=97313">97313</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>amdgpu: crash when PCI rescan discovers new card
</td>
</tr>
<tr>
<th>Product</th>
<td>xorg
</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>Driver/AMDgpu
</td>
</tr>
<tr>
<th>Assignee</th>
<td>xorg-driver-ati@lists.x.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jimijames.bove@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>xorg-team@lists.x.org
</td>
</tr></table>
<p>
<div>
<pre>This is semi-related to another bug:
<a href="https://bugzilla.kernel.org/show_bug.cgi?id=150731">https://bugzilla.kernel.org/show_bug.cgi?id=150731</a>
And by semi, I mean it's either completely related or completely not related,
and I don't know which yet.
If I boot my computer with my AMD video card bound to a driver besides amdgpu
(like vfio-pci for my Windows virtual machine), then unbind it from that
driver, intending to bind to to amdgpu for Linux gaming...
EXPECTED BEHAVIOR: I can unbind, remove the card, rescan (echo 1 >
/sys/bus/pci/rescan), then bind the card to amdgpu, using DRI3 and the
DRI_PRIME variable for games. This is a process that some successfully do with
the radeon driver on older AMD cards.
ACTUAL BEHAVIOR: At the moment that I rescan (echo 1 > /sys/bus/pci/rescan), X
crashes and restarts, booting me back to the login screen, and something (I
guess either the kernel or X) has automatically bound the card to amdgpu on its
own, without me entering those echo commands (echo "<card's vendor ID>"
"<card's device ID>" > /sys/bus/pci/drivers/amdgpu/new_id) to bind it.
DESIRED BEHAVIOR: I can get my card bound to amdgpu, whether it's automatic or
by my own typed bind commands, WITHOUT a boot-me-to-login-screen X crash.
The X crash log is at <a href="https://bugzilla.kernel.org/attachment.cgi?id=228411">https://bugzilla.kernel.org/attachment.cgi?id=228411</a>
The crash, starting at [456.336], has no errors. It seems to be just
reconfiguring the graphics because it noticed a new available card, and somehow
that resulted in me being booted back to the login screen.
The log that was made after the crash, when I logged back in, is at
<a href="https://bugzilla.kernel.org/attachment.cgi?id=228421">https://bugzilla.kernel.org/attachment.cgi?id=228421</a></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>