-
Notifications
You must be signed in to change notification settings - Fork 4
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
I also get an error w.r.t. copy_struct_from_user() but on RHEL 8.3 (4.18.0-240.el8.x86_64) #4
Comments
Hi C-newman, kernel versions prior to v5.4 (where copy_struct_from_user() is not defined). You may have to use the following change in the driver.
or backport patches to bring support for copy_struct_from_user() Note: This driver is accepted in the upstream kernel |
Found that copy_to_user is also outdated for Linux version 4.14.313-235.533.amzn2.x86_64 using Amazon Linux 2 instances.
|
Hi wkneewalden, copy_to_user is available in 4.14 kernel. But, #include <linux/uaccess.h> needs to be added in amd_hsmp.c From 5.2 kernel onwards, linux/uaccess.h is added by include/linux/sched/task.h file, so this was not needed to be added separately. Hence no compilation issue from 5.2 kernel onwards. from ./include/linux/sched/task.h:11, But for kernels < 5.2 that header file inclusion is needed. So you will have to add below line in your amd_hsmp.c. #include <linux/uaccess.h> |
Thanks! That solved the build issue. Tried installing and got errors in output:
Loading module gave this error:
Currently using a g4ad instance from AWS which supports GPU but is only 2nd generation AMD EPYC processors. No options are currently available that have GPU support and 3rd generation AMD if that is an issue. |
|
The text was updated successfully, but these errors were encountered: