<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 - Many different installation problems with amdgpu-pro-18.40-676022-rhel-6 driver in CentOS 6.10"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=108882">108882</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Many different installation problems with amdgpu-pro-18.40-676022-rhel-6 driver in CentOS 6.10
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </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>DRM/AMDgpu-pro
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>elmar@yasara.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=142636" name="attach_142636" title="The various logs">attachment 142636</a> <a href="attachment.cgi?id=142636&action=edit" title="The various logs">[details]</a></span>
The various logs

Dear AMD Team,

unfortunately installation of your amdgpu-pro-18.40-676022-rhel-6 driver in
CentOS 6.10 goes wrong at many spots.

So far I had been using fglrx happily, but now I needed Vulkan support, so I
decided to upgrade.
Since I got a AMD Radeon R9 290X I followed instructions at 
<a href="https://amdgpu-install.readthedocs.io/en/latest/">https://amdgpu-install.readthedocs.io/en/latest/</a>
and used

amdgpu-pro-install --opencl=legacy

the script ran through, I rebooted, and got a black screen.
Logging in remotely and looking at /var/log/Xorg.0.log I saw lots of entries
about fglrx.
Since your instructions don't mention uninstalling old drivers, and your
amdgpu-pro-install doesn't complain, I don't think that's my fault.

Next, I uninstalled fglrx, to be sure also amdgpu-pro-uninstall, rebooted, and
went for another

amdgpu-pro-install --opencl=legacy

After another reboot, a 'startx' finally gave me a running X-server, but no
OpenGL/GLX (running glxinfo yielded 'no GLX visual found').

Next I checked what amdgpu-pro-install did to my /etc/X11/xorg.conf and found
this:

Section "ServerLayout"
   Identifier   "Main"
   Option "AIGLX" "false"
EndSection

Section "Device"
        Identifier "Videocard0"
        Driver "radeon"
EndSection

This doesn't look like it's a proper xorg.conf for amdgpu-pro. After some
googling, I replaced xorg.conf with this file:
/usr/share/X11/xorg.conf.d/00-amdgpu-pro.conf 

After an X-server restart, 'glxinfo' in a terminal gave a different error:

libGL error: failed to open drm device: Permission denied
libGL error: failed to load driver: radeonsi             
libGL error: failed to open drm device: Permission denied
libGL error: failed to load driver: radeonsi             
libGL error: failed to open drm device: Permission denied
libGL error: failed to load driver: radeonsi             

Whenever there is a permission problem, I try again as 'root', and indeed,
things worked.
After some googling, I did

cd /dev/dri
ls -l
crw-rw----+ 1 root video 226,   0 Nov 27 23:06 card0
crw-rw----. 1 root video 226,  64 Nov 27 23:06 controlD64
crw-rw----+ 1 root video 226, 128 Nov 27 23:06 renderD128

Then I did
chmod a+rw *
and got

crw-rw-rw-+ 1 root video 226,   0 Nov 27 23:06 card0
crw-rw-rw-. 1 root video 226,  64 Nov 27 23:06 controlD64
crw-rw-rw-+ 1 root video 226, 128 Nov 27 23:06 renderD128

And magically, after many hours of fiddling, OpenGL and OpenCL worked for a
normal user. Yupppie!

So I figured it's time to file a bug report, ended up at

<a href="https://amdgpu-install.readthedocs.io/en/latest/install-bugrep.html#generating-a-bug-report">https://amdgpu-install.readthedocs.io/en/latest/install-bugrep.html#generating-a-bug-report</a>

This page shows countless commands to run to save my system config. And
amazingly, each command is shown with a '$' in front.
This means that I cannot just copy the entire script into a terminal, but
instead have to do it line-by-line manually, or copy it to a text editor and
cut the $s out.
Seriously?

Hope this report helped to improve things...

Regards,
Elmar</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>