-
Notifications
You must be signed in to change notification settings - Fork 93
make gim compatible with kernel >= 5.0 #24
base: master
Are you sure you want to change the base?
Conversation
kernel 5.0 removed some deprecated timespec/timeval functions so conditionally convert everything to timespec64 Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
|
Hi flumm
You’d better make your change compatible with pre-5.0 kernel:
[cid:image001.jpg@01D52B73.5E340AC0]
Look your change would break old kernel , e.g. 4.13
Maybe you can use MACROS to differentiate whether use timespec or TIMESPECTYPE
/Monk
From: flumm <notifications@github.com>
Sent: Tuesday, June 25, 2019 4:06 AM
To: GPUOpen-LibrariesAndSDKs/MxGPU-Virtualization <MxGPU-Virtualization@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: [GPUOpen-LibrariesAndSDKs/MxGPU-Virtualization] make gim compatible with kernel >= 5.0 (#24)
kernel 5.0 removed some deprecated timespec/timeval functions
so conditionally convert everything to timespec64
Signed-off-by: Dominik Csapak d.csapak@proxmox.com<mailto:d.csapak@proxmox.com>
…________________________________
You can view, comment on, or merge this pull request online at:
#24
Commit Summary
* make gim compatible with kernel >= 5.0
File Changes
* M drv/gim_adapter.c<https://github.com/GPUOpen-LibrariesAndSDKs/MxGPU-Virtualization/pull/24/files#diff-0> (38)
* M drv/gim_adapter.h<https://github.com/GPUOpen-LibrariesAndSDKs/MxGPU-Virtualization/pull/24/files#diff-1> (36)
* M drv/gim_dma.c<https://github.com/GPUOpen-LibrariesAndSDKs/MxGPU-Virtualization/pull/24/files#diff-2> (8)
* M drv/gim_irqmgr.c<https://github.com/GPUOpen-LibrariesAndSDKs/MxGPU-Virtualization/pull/24/files#diff-3> (8)
* M drv/gim_monitor.c<https://github.com/GPUOpen-LibrariesAndSDKs/MxGPU-Virtualization/pull/24/files#diff-4> (2)
* M drv/gim_monitor_ioctl.c<https://github.com/GPUOpen-LibrariesAndSDKs/MxGPU-Virtualization/pull/24/files#diff-5> (2)
* M drv/gim_monitor_ioctl.h<https://github.com/GPUOpen-LibrariesAndSDKs/MxGPU-Virtualization/pull/24/files#diff-6> (2)
Patch Links:
* https://github.com/GPUOpen-LibrariesAndSDKs/MxGPU-Virtualization/pull/24.patch
* https://github.com/GPUOpen-LibrariesAndSDKs/MxGPU-Virtualization/pull/24.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#24?email_source=notifications&email_token=AG4GO4LSGZ7OV5LRK6CMPDDP4HGVDA5CNFSM4H3FR5X2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G3PGZ7A>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AG4GO4IEY3IFW3V46RDFKDTP4HGVDANCNFSM4H3FR5XQ>.
|
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 blocks. also i can build and load it here on an debian stretch with kernel 4.9.0 without problems |
|
oh, sorry,didn't look into othe files yet
获取 Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: flumm <notifications@github.com>
Sent: Wednesday, June 26, 2019 3:35:01 AM
To: GPUOpen-LibrariesAndSDKs/MxGPU-Virtualization
Cc: Liu, Monk; Comment
Subject: Re: [GPUOpen-LibrariesAndSDKs/MxGPU-Virtualization] make gim compatible with kernel >= 5.0 (#24)
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
―
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#24?email_source=notifications&email_token=AG4GO4M7JNKL4X67AORAW53P4ML2LA5CNFSM4H3FR5X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYST55Q#issuecomment-505757430>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AG4GO4OVW7Q7YYMC5E6HLSLP4ML2LANCNFSM4H3FR5XQ>.
|
|
Oh no problem |
|
Pretty please @ljymonk ? |
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 <d.csapak@proxmox.com>
|
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' |
|
Could you please make GIM compatible with newer Kernels? 5.9+ https://github.com/fabianishere/pve-edge-kernel Thank you. |
kernel 5.0 removed some deprecated timespec/timeval functions
so conditionally convert everything to timespec64
Signed-off-by: Dominik Csapak d.csapak@proxmox.com