https://bugs.freedesktop.org/show_bug.cgi?id=91704
--- Comment #11 from Andy Furniss adf.lists@gmail.com --- (In reply to Andy Furniss from comment #10)
(changing the includes to <libdrm/amdgpu_drm.h> etc. won't build.
Oh NVM it will build with system headers as long as I remember to specify the lib :-)
So outside X it works (assuming silence is success) as user and root.
Inside X it only works as root, device_initialization fails as user - which prompted me to try startx as root - this works with amdgpu (unless its a fluke because root got twm and I use fluxbox).
Starting X as root with modesetting starts but I see the same as the modesetting log I posted.
So maybe some permissions issue.
Permissions seems to be a red herring - It's possible for startx as root to fail in the same way as user. So startx may work as root but only if I am lucky - repeated testing and it mostly fails now.