-
Notifications
You must be signed in to change notification settings - Fork 67
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
[Deepin-Kernel-SIG] [linux 6.6-y] [Upstream] x86/cpufeatures: Make AVX-VNNI depend on AVX #624
[Deepin-Kernel-SIG] [linux 6.6-y] [Upstream] x86/cpufeatures: Make AVX-VNNI depend on AVX #624
Conversation
mainline inclusion from mainline-v6.14-rc4 category: bugfix The 'noxsave' boot option disables support for AVX, but support for the AVX-VNNI feature was still declared on CPUs that support it. Fix this. Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: Dave Hansen <[email protected]> Link: https://lore.kernel.org/r/[email protected] (cherry picked from commit 517120728484df1ab8b71cba8d2cad19f52f18a1) Signed-off-by: Wentao Guan <[email protected]>
Reviewer's Guide by SourceryThis pull request fixes an issue where the AVX-VNNI feature could be enabled even when AVX was disabled (e.g., via the 'noxsave' boot option). The fix adds a dependency between AVX-VNNI and AVX in the Updated class diagram for cpuid_dep structclassDiagram
class cpuid_dep {
X86_FEATURE feature
X86_FEATURE dependency
}
note for cpuid_dep "This struct defines the dependencies between CPU features."
cpuid_dep : { X86_FEATURE_AVX_VNNI, X86_FEATURE_AVX }
note for cpuid_dep "AVX_VNNI now depends on AVX"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @opsiff - I've reviewed your changes - here's some feedback:
Overall Comments:
- This looks like a straightforward and necessary fix.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sourcery-ai[bot] The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
mainline inclusion
from mainline-v6.14-rc4
category: bugfix
The 'noxsave' boot option disables support for AVX, but support for the AVX-VNNI feature was still declared on CPUs that support it. Fix this.
Cc: Dave Hansen [email protected]
Link: https://lore.kernel.org/r/[email protected] (cherry picked from commit 517120728484df1ab8b71cba8d2cad19f52f18a1)
Summary by Sourcery
Bug Fixes: