Skip to content
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

add support for CPU microcode updates #1827

Merged
merged 2 commits into from
Nov 17, 2021

Conversation

bcressey
Copy link
Contributor

Issue number:
N/A

Description of changes:
Adds support for updating AMD and Intel CPU microcode, using the Linux kernel's early loading feature.

Testing done:
Verified that microcode is loaded early on an x86_64 variant.

# dmesg|head -n1
[    0.000000] microcode: microcode updated early to revision 0x5003102, date = 2021-03-08

Verified that the expected license files are included on an x86_64 variant.

# ls -l /usr/share/licenses/microcode/
-rw-r--r--. 1 root root 3758 Nov 16 02:02 LICENSE.amd-ucode
-rw-r--r--. 1 root root 1677 Nov 16 02:02 LICENSE.intel-ucode
lrwxrwxrwx. 1 root root   17 Nov 16 02:02 LicenseRef-scancode-amd-linux-firmware-export -> LICENSE.amd-ucode
lrwxrwxrwx. 1 root root   19 Nov 16 02:02 LicenseRef-scancode-intel-mcu-2018 -> LICENSE.intel-ucode
-rw-r--r--. 1 root root  222 Nov 16 02:02 attribution.txt

Verified that the attribution file looks reasonable.

# cat /usr/share/licenses/microcode/attribution.txt
bottlerocket-x86_64-microcode - https://github.com/bottlerocket-os/bottlerocket/tree/develop/packages/microcode
SPDX-License-Identifier: LicenseRef-scancode-amd-linux-firmware-export AND LicenseRef-scancode-intel-mcu-2018

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.

Signed-off-by: Ben Cressey <bcressey@amazon.com>
Signed-off-by: Ben Cressey <bcressey@amazon.com>
Copy link
Contributor

@zmrow zmrow left a comment

Choose a reason for hiding this comment

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

🐻

Copy link
Contributor

@cbgbt cbgbt left a comment

Choose a reason for hiding this comment

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

Nice! ⛵

@bcressey bcressey merged commit 067d65f into bottlerocket-os:develop Nov 17, 2021
@bcressey bcressey deleted the microcode branch November 17, 2021 00:47
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.

5 participants