You are not logged in.

#1 2016-10-19 14:19:31

HighSpeedLowV
Member
Registered: 2016-10-19
Posts: 4

[SOLVED] AMDGPU-PRO 16.30.3 driver failing

I should preface this by saying that my machine has an AMD RX 470 and I'm using the amdgpu-pro driver from the AUR.  I updated my system this morning using pacman -Syu.  I rebooted and noticed that Gnome wasn't working.  All I saw was a black screen and my cursor.  I am using the cogl-amdgpu-pro patch.  I tried to rebuild cogl-amdgpu-pro and amdgpu-pro.  I didn't have any issues with cogl-amdgpu-pro.  However, when rebuilding the amdgpu-pro package, I see the following:

:: Running post-transaction hooks...
(1/1) Install DKMS modules
==> dkms install -m amdgpu-pro-16.30.3 -v 315407 -k 4.8.2-1-ARCH
Error! Bad return status for module build on kernel: 4.8.2-1-ARCH (x86_64)
Consult /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/make.log for more information.

Here is the contents of make.log:

DKMS make.log for amdgpu-pro-16.30.3-315407 for kernel 4.8.2-1-ARCH (x86_64)
Wed Oct 19 09:05:46 CDT 2016
make: Entering directory '/usr/lib/modules/4.8.2-1-ARCH/build'
  LD      /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/built-in.o
  LD      /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/built-in.o
  CC [M]  /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_drv.o
  CC [M]  /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_device.o
  CC [M]  /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_kms.o
  CC [M]  /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_atombios.o
  CC [M]  /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/atombios_crtc.o
  CC [M]  /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_connectors.o
  CC [M]  /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/atom.o
  CC [M]  /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_fence.o
  CC [M]  /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.o
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.c: In function ‘amdgpu_move_blit’:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.c:291:18: error: incompatible type for argument 4 of ‘ttm_bo_move_accel_cleanup’
           evict, no_wait_gpu, new_mem);
                  ^~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_ttm.h:6:0,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:9,
                 from <command-line>:0:
./include/drm/ttm/ttm_bo_driver.h:1032:12: note: expected ‘struct ttm_mem_reg *’ but argument is of type ‘bool {aka _Bool}’
 extern int ttm_bo_move_accel_cleanup(struct ttm_buffer_object *bo,
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.c:290:6: error: too many arguments to function ‘ttm_bo_move_accel_cleanup’
  r = ttm_bo_move_accel_cleanup(bo, fence,
      ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_ttm.h:6:0,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:9,
                 from <command-line>:0:
./include/drm/ttm/ttm_bo_driver.h:1032:12: note: declared here
 extern int ttm_bo_move_accel_cleanup(struct ttm_buffer_object *bo,
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.c: In function ‘amdgpu_move_vram_ram’:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.c:337:6: error: too few arguments to function ‘ttm_bo_move_ttm’
  r = ttm_bo_move_ttm(bo, true, no_wait_gpu, new_mem);
      ^~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_ttm.h:6:0,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:9,
                 from <command-line>:0:
./include/drm/ttm/ttm_bo_driver.h:979:12: note: declared here
 extern int ttm_bo_move_ttm(struct ttm_buffer_object *bo,
            ^~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.c: In function ‘amdgpu_move_ram_vram’:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.c:370:2: error: the address of ‘tmp_mem’ will always evaluate as ‘true’ [-Werror=address]
  r = ttm_bo_move_ttm(bo, true, no_wait_gpu, &tmp_mem);
  ^
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.c:370:6: error: too few arguments to function ‘ttm_bo_move_ttm’
  r = ttm_bo_move_ttm(bo, true, no_wait_gpu, &tmp_mem);
      ^~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_ttm.h:6:0,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:9,
                 from <command-line>:0:
./include/drm/ttm/ttm_bo_driver.h:979:12: note: declared here
 extern int ttm_bo_move_ttm(struct ttm_buffer_object *bo,
            ^~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.c: In function ‘amdgpu_bo_move’:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.c:432:7: error: too few arguments to function ‘ttm_bo_move_memcpy’
   r = ttm_bo_move_memcpy(bo, evict, no_wait_gpu, new_mem);
       ^~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_ttm.h:6:0,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:9,
                 from <command-line>:0:
./include/drm/ttm/ttm_bo_driver.h:1002:12: note: declared here
 extern int ttm_bo_move_memcpy(struct ttm_buffer_object *bo,
            ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [scripts/Makefile.build:290: /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.o] Error 1
make[1]: *** [scripts/Makefile.build:440: /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu] Error 2
make: *** [Makefile:1471: _module_/var/lib/dkms/amdgpu-pro-16.30.3/315407/build] Error 2
make: Leaving directory '/usr/lib/modules/4.8.2-1-ARCH/build'

I believe the driver and the kernel were updated.  It seems like an issue with the driver.  Any thoughts on how to fix this or at least get gnome up and running?  I tried uninstalling amdgpu-pro using pacman -R amdgpu-pro, but it doesn't seem like it gets everything because when I try to install amdgpu, I get an error that it breaks some dependencies related to amdgpu-pro.  Any thoughts or pointers would be greatly appreciated.

Last edited by HighSpeedLowV (2016-10-19 21:01:59)

Offline

#2 2016-10-19 20:59:55

HighSpeedLowV
Member
Registered: 2016-10-19
Posts: 4

Re: [SOLVED] AMDGPU-PRO 16.30.3 driver failing

I at least partially fixed the problem by downgrading the kernel from 4.8.2 to 4.7.6.  Now, I don't get the error when building amdgpu-pro.  However, GDM still wouldn't start for me.  When I try to startx, it shuts down without any errors in the logs.  Just says xinit: connection to X server lost.  Luckily, I'm doing development work today so a tty works fine.  I'll mark this as solved.  I guess I'll just wait a while to update the kernel.

Offline

Board footer

Powered by FluxBB