-
Notifications
You must be signed in to change notification settings - Fork 52
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
[rock-dkms-bin] Fix DRM_VER in dkms Makefile #244
Conversation
Can anyone else comment on the validity/test this out? Just for ref here is the previous patch we had. https://github.com/rocm-arch/rocm-arch/blob/master/rock-dkms/Makefile.patch Would this be a patch that upstream would be interested in? If so I recommend trying to create a PR there and getting their review as well. |
Thank you for working on this @agravgaard. I also don't know why Kernel 5.7 was added the arch repos yesterday. I think we have to wait for AMD to fix |
Makes sense, I'll create an issue (and/or merge request) to rock during the weekend, if there isn't one already. As I haven't written much PKGBUILDs for general use. Is patch files preferred to sed fixes? Or is it just a matter of convenience and size of the patch? |
Sweet. I'll be willing to merge this in much more quickly if a PR is made upstream regarding this. Also considering this concern does not have its own issue, it would be best if an issue is created so that further discussion on this can be made there and the PR specific discussion occurs in the associated PR.
I personally prefer patch files, since they help modularize the issue out of the PKGBUILD, even if the change can be accomplished with a simple |
@agravgaard thx for creating the upstream issue and PR. Can you now change your commits here so that instead of using See the following PKGBUILD on how to do so if you are not familiar: https://github.com/ros-noetic-arch/ros-noetic-moveit-ros-planning-interface/blob/master/PKGBUILD#L46 You can get the link by just adding |
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.
I get the following error:
==> Starting package()...
/home/acxz/vcs/git/github/agravgaard/rocm-arch/rock-dkms-bin/PKGBUILD: line 26: filterdiff: command not found
==> ERROR: A failure occurred in package().
Can things be done without using filterdiff
?
Thanks for the Yep, I'll find a way to do without filterdiff. It seems 5.6 and 4.19 still works fine with this change.
Other than the above, there are some warnings, but no other errors in the log. So I can't quite guess why EDIT: Turns out 5.7 broke this: anbox/anbox-modules#49 |
With the recent changes to the upstream PR (ROCm/ROCK-Kernel-Driver#95), this seems to be working with 5.7. (Not particularly pretty with the grep'ing, I know, but I couldn't find a cleaner way that didn't require excessive bash scripting.) |
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.
Sweet thats great! LGTM
Thank you for your great work @agravgaard! I've successfully compiled the module and can confirm that it runs on my machine (Ryzen 2700X, Vega 56 with Arch Linux, kernel 5.7.2). Still, only OpenCL 2.0 works. I tried some OpenCL 2.2 examples but they didn't compile. For a collection of OpenCL examples from AMDAPP SDK, see here |
@tpkessler Yeah, it's odd... Since clinfo doesn't report spir support either (see here) I was originally thinking it'll either require a driver update, or that maybe it's only supported on the server type gpus (or yet-to-be-released gpus). However, I think the platform should report 2.2 (if they truly have added support*) even if the device doesn't support it (?) *Do you know if anyone has tried on one of the officially supported platforms yet? |
I tried the |
I installed ROCm on Ubuntu 18.04 LTS and |
Let us move this conversation to a separate issue, since it should not be happening on a PR. See: #267 |
DRM_VER
will only be defined for a hardcoded selection of OS names. Arch (and Manjaro) is not in that list, so the dkms compilation will fail.This change patches the makefile to provide a default, which assumes same conditions as under some other OS names. That condition being that
$(kdir)
is defined and that it contains a Makefile withVERSION
andPATCHLEVEL
This compiles successfully with 4.19 and 5.6 but not 5.7
(Because pci_platform_rom was removed in 5.7 )
5.6 boots normally with the module installed, but I'm not sure how to check if it was actually loaded, or if it's still using the one in the kernel?
P.S. Unfortunately clinfo still reports opencl 2.0 (with rocm-opencl-runtime) so, unless the rock module didn't actually load, this wasn't the solution to that problem...
Related issue:
ROCK-Kernel-Driver#94