MxGPU-Virtualization icon indicating copy to clipboard operation
MxGPU-Virtualization copied to clipboard

make gim compatible with kernel >= 5.0

Open flumm opened this issue 6 years ago • 8 comments
trafficstars

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

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

flumm avatar Jun 25 '19 08:06 flumm

Hi flumm

You’d better make your change compatible with pre-5.0 kernel: [cid:[email protected]]

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 [email protected] Sent: Tuesday, June 25, 2019 4:06 AM To: GPUOpen-LibrariesAndSDKs/MxGPU-Virtualization [email protected] Cc: Subscribed [email protected] 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 [email protected]mailto:[email protected]


You can view, comment on, or merge this pull request online at:

https://github.com/GPUOpen-LibrariesAndSDKs/MxGPU-Virtualization/pull/24

Commit Summary

  • make gim compatible with kernel >= 5.0

File Changes

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 GitHubhttps://github.com/GPUOpen-LibrariesAndSDKs/MxGPU-Virtualization/pull/24?email_source=notifications&email_token=AG4GO4LSGZ7OV5LRK6CMPDDP4HGVDA5CNFSM4H3FR5X2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G3PGZ7A, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AG4GO4IEY3IFW3V46RDFKDTP4HGVDANCNFSM4H3FR5XQ.

ljymonk avatar Jun 25 '19 20:06 ljymonk

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

flumm avatar Jun 26 '19 07:06 flumm

oh, sorry,didn't look into othe files yet

获取 Outlook for Androidhttps://aka.ms/ghei36


From: flumm [email protected] 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 GitHubhttps://github.com/GPUOpen-LibrariesAndSDKs/MxGPU-Virtualization/pull/24?email_source=notifications&email_token=AG4GO4M7JNKL4X67AORAW53P4ML2LA5CNFSM4H3FR5X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYST55Q#issuecomment-505757430, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AG4GO4OVW7Q7YYMC5E6HLSLP4ML2LANCNFSM4H3FR5XQ.

ljymonk avatar Jun 26 '19 11:06 ljymonk

Oh no problem

flumm avatar Jun 26 '19 18:06 flumm

Pretty please @ljymonk ?

tuxis-ie avatar Aug 28 '19 12:08 tuxis-ie

Does gim support 5.x kernel?

srinivamd avatar May 15 '20 18:05 srinivamd

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'

flumm avatar May 15 '20 19:05 flumm

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

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

Thank you.

mac-linux-free avatar Dec 29 '20 10:12 mac-linux-free