<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 - hard system freeze with mesa 18.1.1 and 18.1.2 on AMD RX 580"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107001">107001</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>hard system freeze with mesa 18.1.1 and 18.1.2 on AMD RX 580
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </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>Other
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>claude@mathr.co.uk
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I'm running Debian Buster, quite happily with my AMD RX 580, until Monday when
I did a routine upgrade and got Mesa 18.1.1 and my system then became
unreliable, with randomly occuring hard freezes (sshd disconnects, nothing in
logs, no mouse cursor, no caps/numlock led function, even SysRq key combo
doesn't work).  Nothing particular seems to trigger it, the system is under
light load (firefox, thunderbird, a few terminals and other apps).

I tried 18.1.2 from unstable repository, it didn't fix the issue.  Uptime has
ranged between 10mins and 10 hours between lockups.

$ uname -a
Linux eiskaffee 4.16.0-2-amd64 #1 SMP Debian 4.16.12-1 (2018-05-27) x86_64
GNU/Linux
(I believe this version means amdgpu.dc=0 because I haven't set anything
manually)

$ sudo lspci | grep VGA
1d:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
Ellesmere [Radeon RX 470/480] (rev e7)

$ clinfo | grep Device\ Name | head -n 1
  Device Name                                     Radeon RX 580 Series
(POLARIS10 / DRM 3.23.0 / 4.16.0-2-amd64, LLVM 6.0.0)

I downgraded to Mesa 18.0.5 and all seems fine again.

$ apt-cache policy mesa-common-dev 
mesa-common-dev:
  Installed: 18.0.5-1
  Candidate: 18.1.1-1
  Version table:
     18.1.2-1 500
        500 <a href="http://ftp.uk.debian.org/debian">http://ftp.uk.debian.org/debian</a> unstable/main amd64 Packages
     18.1.1-1 990
        990 <a href="http://ftp.uk.debian.org/debian">http://ftp.uk.debian.org/debian</a> buster/main amd64 Packages
 *** 18.0.5-1 100
        100 /var/lib/dpkg/status

I selected 1 package arbitrarily, all the corresponding Debian binary packages
for Mesa 18.0.5 are installed. The 18.0.5-1 is built and installed by me from
source following this recipe:

mkdir work
cd work
sudo apt-get build-dep mesa
git clone <a href="https://salsa.debian.org/xorg-team/lib/mesa.git">https://salsa.debian.org/xorg-team/lib/mesa.git</a>
cd mesa
git checkout mesa-18.0.5-1
dpkg-buildpackage -us -uc
cd ..
sudo dpkg -i *.deb</pre>
        </div>
      </p>


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

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