Bug 111103

Summary: [Patch] to compile amdgpu-dkms 19.20 on debian stretch & buster
Product: DRI Reporter: Fab Stz <fabstz-it>
Component: DRM/AMDgpu-proAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: medium    
Version: DRI git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
[Patch] to compile amdgpu-dkms 19.20 on debian stretch & buster
none
[Patch] to compile amdgpu-dkms 19.20 on debian stretch & buster (v2) none

Description Fab Stz 2019-07-11 06:55:55 UTC
Created attachment 144757 [details] [review]
[Patch] to compile amdgpu-dkms 19.20 on debian stretch & buster

Hello,

Please find attached a patch so that one can compile the amdgpu-dkms 19.20 driver toward kernel 4.19 on debian stretch (with stretch-backports), and also on debian buster (version 10) which runs linux-4.19

The patch is made of:
 - a change to the Makefile so that it can compile well on debian and find the kernel version (using [make kernelversion])
 - a few changes to the code in file amdgpu_mn.c

Appearently, in 19.20 there are still some problems to compile towards 4.19 because some #ifdef don't seem correct because "mmu_notifier_range" doesn't exist in 4.19.
Comment 1 Fab Stz 2019-07-17 07:03:04 UTC
Created attachment 144809 [details] [review]
[Patch] to compile amdgpu-dkms 19.20 on debian stretch & buster (v2)

Same patch as before but using #if to manage different kernel versions
Comment 2 Jeremy Newton 2019-07-29 20:00:40 UTC
Hi thanks for the patch!

We are re-hauling the dkms package for 19.40, so please hold tight. In the future, it should work on more kernels without patches.

Closing as WONTFIX for now

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.