Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make gim compatible with kernel >= 5.0 #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

flumm
Copy link

@flumm flumm commented Jun 25, 2019

kernel 5.0 removed some deprecated timespec/timeval functions
so conditionally convert everything to timespec64

Signed-off-by: Dominik Csapak [email protected]

kernel 5.0 removed some deprecated timespec/timeval functions
so conditionally convert everything to timespec64

Signed-off-by: Dominik Csapak <[email protected]>
@ljymonk
Copy link

ljymonk commented Jun 25, 2019 via email

@flumm
Copy link
Author

flumm commented Jun 26, 2019

Maybe you can use MACROS to differentiate whether use timespec or TIMESPECTYPE

but i am doing exactly this?

in gim_adapter.h i define TIMESPECTYPE as timespec for kernels < 5 and as timespec64 for kernels >= 5

i did this to avoid dozens of
#if LINUX_VERSION_CODE <... .. #else ... #endif

blocks.

also i can build and load it here on an debian stretch with kernel 4.9.0 without problems

@ljymonk
Copy link

ljymonk commented Jun 26, 2019 via email

@flumm
Copy link
Author

flumm commented Jun 26, 2019

Oh no problem

@tuxis-ie
Copy link

Pretty please @ljymonk ?

kasperlewau added a commit to kasperlewau/MxGPU-Virtualization that referenced this pull request Mar 2, 2020
nothing from pci-aspm.h was used and this was removed in kernel 5.4,
so simply drop the include

Signed-off-by: Dominik Csapak <[email protected]>
@srinivamd
Copy link

Does gim support 5.x kernel?

@flumm
Copy link
Author

flumm commented May 15, 2020

Does gim support 5.x kernel?

well i'm using it with this pull request since quite some time up to kernel 5.4 (cannot say for newer kernels), so i'd say it works, but since nobody from amd commented yet, i do not know if its 'supported'

@mac-linux-free
Copy link

Could you please make GIM compatible with newer Kernels? 5.9+

https://github.com/fabianishere/pve-edge-kernel

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants