-
Notifications
You must be signed in to change notification settings - Fork 482
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
Fix driver compilation for 5.11 kernel #5867
Conversation
rbramand-xilinx
commented
Sep 28, 2021
> Made changes to fix compilation issues of driver with 5.11 kernel version. > In 5.11 kernel drm_driver structure is changed, added changes in drm framework accordingly. > Features missing : p2p support changes are missing.
Build Passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good. Couple of comments.
@@ -537,6 +542,14 @@ static struct drm_driver mm_drm_driver = { | |||
.date = driver_date, | |||
}; | |||
|
|||
const struct drm_gem_object_funcs xocl_gem_object_funcs = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add 5.11 check here as well. I am not sure whether this gets compiled other Kernels or not.
.vmap = xocl_gem_prime_vmap, | ||
.vunmap = xocl_gem_prime_vunmap, | ||
.vm_ops = &xocl_vm_ops, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please maintain same order as < 5.11 sothat it is easy to compare.
.get_sg_table = xocl_gem_prime_get_sg_table, | ||
.vmap = xocl_gem_prime_vmap, | ||
.vunmap = xocl_gem_prime_vunmap, | ||
.vm_ops = &xocl_vm_ops, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gem_prime_export is missing from this ops. Please check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chvamshi-xilinx made changes as suggested. Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks
Build Passed! |
* Fix driver compilation for 5.11 kernel > Made changes to fix compilation issues of driver with 5.11 kernel version. > In 5.11 kernel drm_driver structure is changed, added changes in drm framework accordingly. > Features missing : p2p support changes are missing. * Fix comments on PR
* Fix driver compilation for 5.11 kernel > Made changes to fix compilation issues of driver with 5.11 kernel version. > In 5.11 kernel drm_driver structure is changed, added changes in drm framework accordingly. > Features missing : p2p support changes are missing. * Fix comments on PR
* Fix driver compilation for 5.11 kernel > Made changes to fix compilation issues of driver with 5.11 kernel version. > In 5.11 kernel drm_driver structure is changed, added changes in drm framework accordingly. > Features missing : p2p support changes are missing. * Fix comments on PR
* Fix driver compilation for 5.11 kernel > Made changes to fix compilation issues of driver with 5.11 kernel version. > In 5.11 kernel drm_driver structure is changed, added changes in drm framework accordingly. > Features missing : p2p support changes are missing. * Fix comments on PR
I need to bring some Champagne! :-) But I think it is unsuitable at work... |
* Fix driver compilation for 5.11 kernel > Made changes to fix compilation issues of driver with 5.11 kernel version. > In 5.11 kernel drm_driver structure is changed, added changes in drm framework accordingly. > Features missing : p2p support changes are missing. * Fix comments on PR
* Fix driver compilation for 5.11 kernel > Made changes to fix compilation issues of driver with 5.11 kernel version. > In 5.11 kernel drm_driver structure is changed, added changes in drm framework accordingly. > Features missing : p2p support changes are missing. * Fix comments on PR
* Fix driver compilation for 5.11 kernel > Made changes to fix compilation issues of driver with 5.11 kernel version. > In 5.11 kernel drm_driver structure is changed, added changes in drm framework accordingly. > Features missing : p2p support changes are missing. * Fix comments on PR (cherry picked from commit 966b459)