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

sys-kernel/coreos-modules: Enable TPM TIS drivers for arm64 #1755

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

pothos
Copy link
Member

@pothos pothos commented Mar 15, 2024

The arm64 kernel didn't have TPM support for the qemu TPM2 TIS software TPM.
This moves the TPM TIS kernel module enablement to the common config of both architectures. In addition it enables the SPI and I2C drivers.

How to use

This should make the clevis test work on arm64 as it does on amd64.

Note that there is still a service error message on first boot which causes kola to mark the test failed.

Testing done

TODO: When the build succeeds we could try the (fixed) kola test or do a manual test

CONFIG_TCG_TIS_I2C_ATMEL=m
CONFIG_TCG_TIS_I2C_INFINEON=m
CONFIG_TCG_TIS_I2C_NUVOTON=m
CONFIG_TCG_TIS_SPI=m
Copy link
Contributor

Choose a reason for hiding this comment

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

the CI failed

 ERROR: sys-kernel/coreos-modules-6.6.21::coreos failed (configure phase):
2024-03-15T19:58:51.4682912Z  *   Requested options not enabled in build:
2024-03-15T19:58:51.4683239Z  *     CONFIG_TCG_TIS_SPI

Most likely, because CONFIG_SPI is required for this flag. Maybe we can add I2C and SPI later on, if needed. Adding these two options seem to enable a kernel tree that might bulk up the size.

The arm64 kernel didn't have TPM support for the qemu TPM2 TIS software TPM.
This moves the TPM TIS kernel module enablement to the common config of both
architectures.

Authored-by: Kai Lueke <kailuke@microsoft.com>
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
@jepio
Copy link
Member

jepio commented Mar 18, 2024

@pothos I've pushed an amended commit that drops the I2C/SPI enablement.

Copy link

github-actions bot commented Mar 18, 2024

Build action triggered: https://github.com/flatcar/scripts/actions/runs/8682904445

@jepio
Copy link
Member

jepio commented Mar 18, 2024

On arm64 the tpm is now correctly detected:

[    1.694668] tpm_tis MSFT0101:00: 2.0 TPM (device-id 0x1, rev-id 1)

Copy link
Contributor

@ader1990 ader1990 left a comment

Choose a reason for hiding this comment

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

LGTM, fixes the ARM64 tpm test (the one it is supposed to fix).

@dongsupark
Copy link
Member

Should we merge this PR to fix the arm64 CI failures?

@dongsupark dongsupark merged commit b89c18d into main Mar 19, 2024
6 of 7 checks passed
@dongsupark dongsupark deleted the kai/arm64-tpm branch March 19, 2024 13:32
pothos added a commit that referenced this pull request Apr 15, 2024
sys-kernel/coreos-modules: Enable TPM TIS drivers for arm64
@pothos
Copy link
Member Author

pothos commented Apr 15, 2024

Cherry-picked for 3913

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
4 participants