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

Update CPU flags for ARM, POWER, and Z #919

Merged
merged 5 commits into from
Oct 17, 2022

Conversation

yselkowitz
Copy link
Contributor

These updates are based on kernel 5.19.4 and glibc 2.36.

  • cpu: update ARM CPU flags
  • cpu: update POWER CPU flags
  • cpu: update S390 CPU flags

Related: #914
Closes: #913

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 13, 2022
@netlify
Copy link

netlify bot commented Oct 13, 2022

Deploy Preview for kubernetes-sigs-nfd ready!

Name Link
🔨 Latest commit cba7ad6
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-nfd/deploys/6349a54cd151b20008b65b1d
😎 Deploy Preview https://deploy-preview-919--kubernetes-sigs-nfd.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@k8s-ci-robot
Copy link
Contributor

Hi @yselkowitz. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 13, 2022
@yselkowitz
Copy link
Contributor Author

/cc @marquiz @mkumatag

@@ -78,6 +87,15 @@ var flagNames_arm64 = map[uint64]string{
CPU_ARM64_FEATURE_ASIMDDP: "ASIMDDP",
CPU_ARM64_FEATURE_SHA512: "SHA512",
CPU_ARM64_FEATURE_SVE: "SVE",
CPU_ARM64_FEATURE_ASIMDFHM: "ASIMDFHM",
CPU_ARM64_FEATURE_DIT: "DIT",

Choose a reason for hiding this comment

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

@yselkowitz Where is the list of arm cpu features coming from? I see this in go, but I don't see all of the flags you're mentioning here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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 for future reference, https://github.com/torvalds/linux/blob/master/arch/s390/include/asm/elf.h is a better source for cpu flags for s390x. Though in the end glibc is probably getting it from there anyway.

Copy link

Choose a reason for hiding this comment

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

Not to pollute the code base.... however. would a comment pointing back to the source be helpful in future maintenance ?

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 13, 2022
@marquiz
Copy link
Contributor

marquiz commented Oct 14, 2022

Thanks @yselkowitz for the update! Looks good to me but I'd like to get thumbs-up from some non-x86 specialist (@mkumatag?) 😊
/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 14, 2022
@jschintag
Copy link
Contributor

s390x: lgtm

Thank you @yselkowitz

@marquiz
Copy link
Contributor

marquiz commented Oct 14, 2022

ping @pmundt arm

@marquiz
Copy link
Contributor

marquiz commented Oct 14, 2022

ping @lubinszARM

Copy link

@prb112 prb112 left a comment

Choose a reason for hiding this comment

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

Confirmed ppc64le
Tested on P10

@@ -78,6 +87,15 @@ var flagNames_arm64 = map[uint64]string{
CPU_ARM64_FEATURE_ASIMDDP: "ASIMDDP",
CPU_ARM64_FEATURE_SHA512: "SHA512",
CPU_ARM64_FEATURE_SVE: "SVE",
CPU_ARM64_FEATURE_ASIMDFHM: "ASIMDFHM",
CPU_ARM64_FEATURE_DIT: "DIT",
Copy link

Choose a reason for hiding this comment

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

Not to pollute the code base.... however. would a comment pointing back to the source be helpful in future maintenance ?

source/cpu/cpuid_ppc64le.go Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 14, 2022
@marquiz
Copy link
Contributor

marquiz commented Oct 14, 2022

Not to pollute the code base.... however. would a comment pointing back to the source be helpful in future maintenance ?

@yselkowitz this would make sense to me. WDYT

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 14, 2022
@yselkowitz
Copy link
Contributor Author

Rebased and added comments with links to the kernel/glibc sources.

Copy link
Contributor

@marquiz marquiz left a comment

Choose a reason for hiding this comment

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

Nice work @yselkowitz. Looks ready from my pov. I'll let somebody else to lgtm 😊

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: marquiz, prb112, yselkowitz

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 14, 2022
@yselkowitz
Copy link
Contributor Author

/assign @mkumatag

@lubinszARM
Copy link
Contributor

arm: lgtm

Good job. @yselkowitz

@marquiz
Copy link
Contributor

marquiz commented Oct 17, 2022

Thanks for all the reviews
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 17, 2022
@k8s-ci-robot k8s-ci-robot merged commit 796403a into kubernetes-sigs:master Oct 17, 2022
@yselkowitz yselkowitz deleted the cpuid branch October 19, 2022 00:20
yselkowitz added a commit to yselkowitz/openshift-node-feature-discovery that referenced this pull request Oct 19, 2022
Backport of kubernetes-sigs/node-feature-discovery#919
including the following upstream commits:

cpu: update ARM CPU flags through v8.3
cpu: update ARM CPU flags through v9.2
cpu: add POWER10 CPU flags
cpu: update S390 CPU flags
cpu: document canonical sources of supported CPU flags
openshift-cherrypick-robot pushed a commit to openshift-cherrypick-robot/node-feature-discovery that referenced this pull request Oct 20, 2022
Backport of kubernetes-sigs/node-feature-discovery#919
including the following upstream commits:

cpu: update ARM CPU flags through v8.3
cpu: update ARM CPU flags through v9.2
cpu: add POWER10 CPU flags
cpu: update S390 CPU flags
cpu: document canonical sources of supported CPU flags
@marquiz marquiz mentioned this pull request Dec 20, 2022
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid feature name 'cpu-cpuid.' warning is shown in nfd-worker pod logs
8 participants