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

cpu: support for detecting nx-gzip coprocessor feature #956

Merged

Conversation

Chandan-Abhyankar
Copy link
Contributor

Signed-off-by: Chandan Abhyankar [email protected]
Adding nx-gzip label support

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 10, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: Chandan-Abhyankar / name: Chandan Abhyankar (a3e72f5)

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Nov 10, 2022
@netlify
Copy link

netlify bot commented Nov 10, 2022

Deploy Preview for kubernetes-sigs-nfd ready!

Name Link
🔨 Latest commit d66096a
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-nfd/deploys/63c79d863e17940009083723
😎 Deploy Preview https://deploy-preview-956--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 k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Nov 10, 2022
@k8s-ci-robot
Copy link
Contributor

Hi @Chandan-Abhyankar. 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 the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Nov 10, 2022
@Chandan-Abhyankar
Copy link
Contributor Author

/easycla

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Nov 10, 2022
@prb112
Copy link

prb112 commented Nov 22, 2022

Hi @adrianchiris @Ethyling
I hope all is well.
Are there any steps we can take to address your comments/concerns?
Many thanks
Paul

@jjacobelli
Copy link
Contributor

Hey @Chandan-Abhyankar @prb112. Is this feature available for every archs or should we move this to an arch dependent file with a stub file for archs that don't support it? Something similar to rdt_amd64.go and rdt_stub.go. I don't have a lot of knowledge about CPU attributes. Otherwise the code looks good to me, but I don't have the hardware to test it

@prb112
Copy link

prb112 commented Nov 22, 2022

Hey @Ethyling it is architecture specific - it'd be similar to the intel flags such as SstFeature. We could move it to a separate file. Do you want us to take that step? Many thanks, Paul

@jjacobelli
Copy link
Contributor

@prb112 Yes, I think we should move this to a separate file so we don't include it for archs that don't have this feature. Thank you

@prb112
Copy link

prb112 commented Nov 22, 2022

@prb112 Yes, I think we should move this to a separate file so we don't include it for archs that don't have this feature. Thank you

We'll take care of it. Thanks @Ethyling

@Chandan-Abhyankar
Copy link
Contributor Author

Hi @Ethyling As changes are architecture specific [Power], I have moved code to cpuid_ppc64le.go.
Kindly have a re-look and let me know if you have any comments.
Thank you

@jjacobelli
Copy link
Contributor

Hey @Chandan-Abhyankar, I don't this this feature is related to cpuid so I thinkg we should move it to its own file (something like nx_ppc64le.go). We should also provide a stub file (i.e. nx_stub.go) for the other archs

@prb112
Copy link

prb112 commented Dec 5, 2022

Hi @Ethyling

nx-gzip is an on-chip accelerator to facilitate compression/decompression on PowerPC. PR from centos elaborates in more detail.

Do you still want us to split this out?

Thank you for the clarification,

Paul

@jjacobelli
Copy link
Contributor

Hi @prb112, yes I still think we should split it in its own file. Let's ask inputs from @marquiz to confirm this

@prb112
Copy link

prb112 commented Dec 6, 2022

Hi @prb112, yes I still think we should split it in its own file. Let's ask inputs from @marquiz to confirm this

Thanks, I'll wait on the confirmation, take care, Paul

@marquiz
Copy link
Contributor

marquiz commented Dec 8, 2022

Thank your for the review @Ethyling. I'm not an expert on power arch so I'm a bit unknowledgeable here 😊 If it's a cpu hw capability I think we could (or even should) put it under cpuid, if the better educated people here think that way.

Talking about rdt those are some very old legacy features that should probably be deprecated and moved under cpuid 🤔

ping @yselkowitz any thoughts from you?

/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 Dec 8, 2022
@yselkowitz
Copy link
Contributor

CPUID should be just that, which this isn't. It should be split out and handled separately (but still under source/cpu), like pstate or security.

Also, be sure to use hostpath.SysfsDir.Path as elsewhere in NFD.

@prb112
Copy link

prb112 commented Dec 9, 2022

Thank you for the feedback @yselkowitz @marquiz we've taken the comments into account and are working on a revision.

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 13, 2022
@k8s-ci-robot k8s-ci-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 12, 2023
@Chandan-Abhyankar
Copy link
Contributor Author

@marquiz , Thanks a lot for your pointers, help and support. I have now integrated all changes in one commit. Kindly have a re-look.

@marquiz
Copy link
Contributor

marquiz commented Jan 12, 2023

Thanks a lot for your pointers, help and support. I have now integrated all changes in one commit. Kindly have a re-look.

Thanks @Chandan-Abhyankar. Still one nit about the commit message body 🙈 Use full sentences, starting with a capital letter and end with a period, e.g. Nest accelerator gzip support for IBM Power systems.

You could also remove the merge commit by rebasing on top of latest master.

@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 Jan 13, 2023
@Chandan-Abhyankar
Copy link
Contributor Author

@marquiz , Kindly review changes. I was facing issues with rebasing on top of latest master, hence followed my usual steps to check-in code.
For features.md and customization-guide.md (inside docs/usage folder), I took latest code from master branch and appended my changes. Hope all is good now. Thanks

@marquiz
Copy link
Contributor

marquiz commented Jan 13, 2023

Thanks @Chandan-Abhyankar for the update. The commit looks a bit strange as it touches unrelated files, in docs for example. Could you do git fetch origin && git rebase origin/master and then re-push to base this on the latest master? Other than that, looks good now

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 16, 2023
Nest accelerator gzip support for IBM Power systems.

Signed-off-by: Chandan Abhyankar <[email protected]>
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.

Thanks @Chandan-Abhyankar, looks good to go to me 👍

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Chandan-Abhyankar, marquiz

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 Jan 18, 2023
@marquiz
Copy link
Contributor

marquiz commented Jan 18, 2023

/retitle cpu: support for detecting nx-gzip coprocessor feature

@k8s-ci-robot k8s-ci-robot changed the title Adding nx-gzip label support cpu: support for detecting nx-gzip coprocessor feature Jan 18, 2023
@Chandan-Abhyankar
Copy link
Contributor Author

@marquiz , Thanks a lot for your help and support.

@jjacobelli
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 18, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 609eb74ff94a3f9bc24014a4d513f0b3d50371ec

@k8s-ci-robot k8s-ci-robot merged commit 23eb337 into kubernetes-sigs:master Jan 18, 2023
@prb112
Copy link

prb112 commented Jan 18, 2023

Thank you all - we appreciate all your review and effort in supporting this feature.

@marquiz marquiz mentioned this pull request Apr 12, 2023
24 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/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants