-
Notifications
You must be signed in to change notification settings - Fork 105
[Deepin-Kernel-SIG] [linux 6.6-y] [Hygon] Hygon: Update drivers' support for Hygon model 4h, 6h~8h and 10h processors #601
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
Merged
opsiff
merged 18 commits into
deepin-community:linux-6.6.y
from
Avenger-285714:linux-6.6.y
Feb 17, 2025
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
02e57d5
pinctrl: Add device HID for Hygon GPIO controller
liaoxuan123 8dc8801
Add set_guest_pat_wb parameter for non-passthrough application scenarios
liaoxuan123 42b9ec6
x86/amd_nb: Fix northbridge init warning in guest for Hygon family 18…
liaoxuan123 3e9c72d
EDAC/amd64: Fix the calculation of cs id for Hygon family 18h model 4h
liaoxuan123 054d5a3
EDAC/amd64: Use u16 for some umc variables for Hygon family 18h model 4h
liaoxuan123 e7aa049
EDAC/amd64: Fix the calculation of instance id for Hygon family 18h m…
liaoxuan123 3290b2d
EDAC/amd64: Get intlv_num_dies from F0x60 for Hygon family 18h model 6h
liaoxuan123 7ad8c82
EDAC/mce_amd: Add LS and IF mce types for Hygon family 18h model 7h
liaoxuan123 6195d54
x86/amd_nb: Get DF ID from F5 device for Hygon family 18h model 7h
liaoxuan123 ce14052
iommu/hygon: Add support for Hygon family 18h model 10h IOAPIC
liaoxuan123 a8f1ab7
x86/amd_nb: Add helper function to identify Hygon family 18h model 10h
liaoxuan123 94e8c1c
EDAC/amd64: Adjust address translation for Hygon family 18h model 10h
liaoxuan123 c376a43
EDAC/amd64: Check if umc channel is enabled for Hygon family 18h mode…
liaoxuan123 6a39d22
EDAC/amd64: Get correct memory type for Hygon family 18h model 10h
liaoxuan123 8804da9
EDAC/amd64: Get instance id for Hygon family 18h model 10h
liaoxuan123 defd20a
x86/amd_nb: Add support for Hygon family 18h model 8h
liaoxuan123 e06110e
EDAC/amd64: Add support for Hygon family 18h model 8h
liaoxuan123 fc26d71
perf/x86/amd/core: Fix performance monitor for Hygon family 18h proce…
liaoxuan123 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
issue (complexity): Consider creating a helper function to abstract repeated Hygon variant checks.
Consider abstracting the repeated Hygon variant checks into helper functions to simplify the control flow. For example, you can create an inline helper to cover both conditions:
Then replace:
with:
Similarly, where you check both positive and negative conditions related to Hygon functions, reuse the helper:
This isolates the configuration‐specific logic from the main flow and minimizes duplicated branches while preserving functionality.