Why amdgpu pro does not work on kernel 4.10?
Ali Aminian
aminian.opensource at gmail.com
Sun Feb 12 20:56:50 EST 2017
Thank you for your response.
It does not work means:
1_ I have downloaded amdgpu-pro driver from AMD website and installed it.
2_ I have compiled linux kernel 4.10 and 4.9 with oldconfig.
3_ then I booted to new kernel and see login screen is distorted.
4_ I tried to login but it loops back to login screen again.
5_ Ctrl Alt F1-F6 results in a blank screen.
6_ I sshed into the system and check if amdgpu is loaded by "lsmod | grep amd"
and yes it is loaded.
7_ I uninstalled and installed amdgpu-pro again and i got dkms error
and it refered me to
/var/lib/dkms/amdgpu-pro/16.40-348864/build/make.log for further
details.
and here is the log file:
DKMS make.log for amdgpu-pro-14.40-348864 for kernel 4.10.0-rc7+ (x86_64)
Mon Feb 13 03:53:09 IRST 2017
LD /var/lib/dkms/amdgpu-pro/16.40-348864/build/built-in.o
LD /var/lib/dkms/amdgpu-pro/16.40-348864/build/amd/amdgpu/built-in.o
CC [M] /var/lib/dkms/amdgpu-pro/16.40-348864/build/amd/amdgpu/amdgpu_drv.o
In file included from
/var/lib/dkms/amdgpu-pro/16.40-348864/build/amd/amdgpu/../backport/backport.h:8:0,
from <command-line>:0:
/var/lib/dkms/amdgpu-pro/16.40-348864/build/amd/amdgpu/../backport/include/kcl/kcl_drm.h:68:72:
error: operator '+' has no right operand
&& LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0) && (UBUNTU_BUILD_NUM < 36)) \
^
In file included from
/var/lib/dkms/amdgpu-pro/16.40-348864/build/amd/amdgpu/../backport/backport.h:9:0,
from <command-line>:0:
/var/lib/dkms/amdgpu-pro/16.40-348864/build/amd/amdgpu/../backport/include/kcl/kcl_ttm.h:
In function ‘kcl_ttm_bo_reserve’:
/var/lib/dkms/amdgpu-pro/16.40-348864/build/amd/amdgpu/../backport/include/kcl/kcl_ttm.h:109:9:
error: too many arguments to function ‘ttm_bo_reserve’
return ttm_bo_reserve(bo, interruptible, no_wait, false, ticket);
^
In file included from
/var/lib/dkms/amdgpu-pro/16.40-348864/build/amd/amdgpu/../backport/include/kcl/kcl_ttm.h:6:0,
from
/var/lib/dkms/amdgpu-pro/16.40-348864/build/amd/amdgpu/../backport/backport.h:9,
from <command-line>:0:
./include/drm/ttm/ttm_bo_driver.h:875:19: note: declared here
static inline int ttm_bo_reserve(struct ttm_buffer_object *bo,
^
In file included from
/var/lib/dkms/amdgpu-pro/16.40-348864/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
from
/var/lib/dkms/amdgpu-pro/16.40-348864/build/amd/amdgpu/../backport/backport.h:10,
from <command-line>:0:
/var/lib/dkms/amdgpu-pro/16.40-348864/build/amd/amdgpu/../amdgpu/amdgpu.h:
At top level:
/var/lib/dkms/amdgpu-pro/16.40-348864/build/amd/amdgpu/../amdgpu/amdgpu.h:37:25:
fatal error: linux/fence.h: No such file or directory
compilation terminated.
scripts/Makefile.build:294: recipe for target
'/var/lib/dkms/amdgpu-pro/16.40-348864/build/amd/amdgpu/amdgpu_drv.o'
failed
make[4]: *** [/var/lib/dkms/amdgpu-pro/16.40-348864/build/amd/amdgpu/amdgpu_drv.o]
Error 1
scripts/Makefile.build:553: recipe for target
'/var/lib/dkms/amdgpu-pro/16.40-348864/build/amd/amdgpu' failed
make[3]: *** [/var/lib/dkms/amdgpu-pro/16.40-348864/build/amd/amdgpu] Error 2
Makefile:1490: recipe for target
'_module_/var/lib/dkms/amdgpu-pro/16.40-348864/build' failed
make[2]: *** [_module_/var/lib/dkms/amdgpu-pro/16.40-348864/build] Error 2
More information about the Kernelnewbies
mailing list