Skip to content

Conversation

@mgsharm
Copy link
Contributor

@mgsharm mgsharm commented Nov 13, 2025

Description of changes:

This PR adds support for AMD GPU drivers to the Bottlerocket kernel kit by introducing two new packages:

  1. linux-firmware-amd: Provides AMD GPU firmware files required for GPU initialization and operation. Uses kernel.org sources with GPG verification and zstd compression.
  2. kmod-6.12-amdgpu: Provides AMD GPU DKMS kernel modules for kernel 6.12. Includes support for AMD GPUs by building out-of-tree drivers from AMD's official DKMS package (version 6.14.14-2226257).

These packages enable AMD GPU support for Bottlerocket instances with AMD hardware accelerators.

Testing done:

  • Successfully built both packages in the kernel kit
  • Verified package dependencies and build requirements
  • Confirmed proper file installation paths and permissions

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.

@@ -0,0 +1,72 @@
%global kernel_major 6.12
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can move this into the kernel-6.12 build so its just included with the rest of the kernel built in one shot.

@@ -0,0 +1,22 @@
[package]
name = "linux-firmware-amd"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had expected this to just be a sub-package of linux-firmware instead of a new top level package. Can we move this logic into the existing package?


%files
%dir %{fwdir}
%{fwdir}/*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we want everything, I think there is a specific set of firmware we want that is only amdgpu related.

[[package.metadata.build-package.external-files]]
url = "https://repo.radeon.com/amdgpu/30.10.2/el/10/main/x86_64/amdgpu-dkms-6.14.14-2226257.el10.noarch.rpm"
sha512 = "ffe054d3673f729786a32cf8a67d69b942348eb12d800073a7efc873fcba8a760485a003ed1bfb5273eda5f7d514263c80a97243371d36bf69ea986137f8c41e"
force-upstream = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can skip this and treat it like a normal source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants