Why amdgpu pro does not work on kernel 4.10?

valdis.kletnieks at vt.edu valdis.kletnieks at vt.edu
Sun Feb 12 22:28:23 EST 2017


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 at 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 at vmware.com>
    Signed-off-by: Christian K?nig <christian.koenig at amd.com>
    Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher at amd.com>

Or you can fix it yourself, I've provided enough hints already. :)

(Fixing the other issues should be equally easy)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 484 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170212/b42c5e0c/attachment.bin 


More information about the Kernelnewbies mailing list