-
Notifications
You must be signed in to change notification settings - Fork 37
Amd gpu support dkms #320
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
base: develop
Are you sure you want to change the base?
Amd gpu support dkms #320
Conversation
bcressey
left a comment
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.
When aarch64 fails, that's a sign that cross-compiling might not be set up correctly. It's not always true, but it's the theory you should work hard to disprove.
Based on that I'd say you should get the aarch64 build at least to the point where it fails from some source-level compatibility. Otherwise I don't trust that the x86_64 build is doing what we think, meaning the configure / make logic may not be correct.
9efa41a to
f0a45e3
Compare
packages/kernel-6.12/2000-amd-dkms-Disable-configure-drm_get_panel_min_brightness_quirk.patch
Outdated
Show resolved
Hide resolved
f1f4319 to
677ca98
Compare
677ca98 to
ed8a298
Compare
74d21fb to
3acf425
Compare
578101c to
bc4b69a
Compare
bc4b69a to
c7c08d7
Compare
Disable CONFIG_DRM_AMDGPU and remove related kernel modules from packaging to allow DKMS AMD driver to take precedence. Signed-off-by: Gaurav Sharma <[email protected]>
- Add new kmod-6.12-amdgpu package with DKMS driver support - Update kernel 1006 patch to include additional DRM helpers for AMD GPU Signed-off-by: Gaurav Sharma <[email protected]>
c7c08d7 to
9509795
Compare
|
Added linux-firmware dependency for amd gpu to initialize - |
| %global kernel_sources %{_cross_usrsrc}/kernels/6.12 | ||
| %define _kernel_version %(cat %{kernel_sources}/include/config/kernel.release) | ||
| %global _cross_kmoddir %{_cross_libdir}/modules/%{_kernel_version} | ||
| %global amdgpu_kmoddir %{_cross_kmoddir}/kernel/drivers/extra/gpu/drm/amd/amdgpu |
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 use updates instead of extra:
| %global amdgpu_kmoddir %{_cross_kmoddir}/kernel/drivers/extra/gpu/drm/amd/amdgpu | |
| %global amdgpu_kmoddir %{_cross_kmoddir}/kernel/drivers/updates/gpu/drm/amd/amdgpu |
Description of changes:
This PR adds AMD GPU DKMS driver support for Bottlerocket kernel 6.12, enabling users to run newer AMD GPU hardware with the latest out-of-tree drivers. It also includes systemd services to ensure proper driver initialization before dependent services start.
Dependencies
This PR requires AMD GPU firmware support to be merged first. The firmware files are necessary for the AMD GPU drivers to initialize properly.
Changes
Why: Out-of-tree DKMS drivers typically support newer GPU hardware faster than in-tree drivers and receive updates independently of kernel releases.
What changed:
What: New kmod-6.12-amdgpu package that builds AMD GPU drivers from upstream DKMS source.
Key features:
Testing
Build Validation
Hardware Validation
Tested on AMD GPU instance with 8 GPUs (device ID 75a3 - MI300X):
Driver Initialization
All GPUs initialized successfully:
Package Installation
Service Status and Integration
All services running correctly:
Terms of Contribution
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.