Re: Why amdgpu pro does not work on kernel 4.10?
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
On Mon, 13 Feb 2017 05:26:50 +0330, Ali Aminian said:
Thank you for your response. It does not work means: 1_ I have downloaded amdgpu-pro driver from AMD website and installed it.
Complain to AMD then, because..
2_ I have compiled linux kernel 4.10 and 4.9 with oldconfig.
error: too many arguments to function ‘ttm_bo_reserve’ return ttm_bo_reserve(bo, interruptible, no_wait, false, ticket);
However, include/drm/ttm/ttm_bo_driver.h has this definition: static inline int __ttm_bo_reserve(struct ttm_buffer_object *bo, bool interruptible, bool no_wait, struct ww_acquire_ctx *ticket) { which means AMD is close to a year out of date with respect to upstream: commit dfd5e50ea43ca4a89de061fb69618299760eb682 Author: Christian K?nig <christian.koenig@amd.com> Date: Wed Apr 6 11:12:03 2016 +0200 drm/ttm: remove use_ticket parameter from ttm_bo_reserve Not used any more. Reviewed-by: Sinclair Yeh <syeh@vmware.com> Signed-off-by: Christian K?nig <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Or you can fix it yourself, I've provided enough hints already. :) (Fixing the other issues should be equally easy)
participants (2)
-
Ali Aminian -
valdis.kletnieks@vt.edu