Add support for Hygon family 18h models 4h-8h
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest5 patches 2 repliesIn review
- v45 patches 2 repliesSuperseded
- v37 patches 12 repliesApplied
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 8 patches | 13 replies | Applied | |
| v1 | 8 patches | 10 replies | Superseded |
Changes in v5 from the cover letter
- Add HYPERVISOR check for patch x86/cpu/hygon.
- Refine the commit messages for the third patch.
- Use per-CPU MSR read for microcode revision retrieval.
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | x86/cpu/hygon: Adjust the die_id and logical_die_id for Hygon models 0x4 through 0x8arch/ | +14 | 0 replies | |
| 2/5 | x86/cpu: Get LLC ID for Hygon processor models 0x6 through 0x8arch/ | +18 | 0 replies | |
| 3/5 | x86/cpu/hygon: Remove Spectral Chicken for Hygon processorsarch/ | +0 | 0 replies | |
| 4/5 | perf/x86/uncore: Add L3 PMU support for Hygon family 18h model 6harch/ arch/ | +55 | 2 replies | |
| 5/5 | x86/microcode/hygon: Add microcode loading support for Hygon processorsarch/ arch/ arch/ +2 more | +889 | 0 replies |
Reviews trailers per patch
None of the 5 patches has a Reviewed-by or Acked-by.
| Patch | Tingyin Duan |
|---|---|
| 1/5 | |
| 2/5 | |
| 3/5 | |
| 4/5 | T-b |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/5] Add support for Hygon family 18h models 4h-8h
This patch series introduce support for the new-generation Hygon processor models 0x4–0x8, addressing five key areas:
1. CPU Topology Updates
The new processor introduces a revised CPU topology hierarchy compared to previous generations. This patch updates the kernel's topology detection logic to correctly identify core/socket relationships and cache sharing patterns.
2. L3 Performance Monitoring Updates
The L3 perf registers of model 6h differ from those of the previous processor.
3. Microcode loading
Add microcode loading support for Hygon processor.
4. Audio Controller Driver
Add initial support for the integrated HD-Audio controller. This patch has been accepted and merged into mainline.
5. New SB IOAPIC information support
The southbridge IOAPIC of Hygon's new-generation processors is located at 00:0b.0.
This patch has been accepted and merged into mainline.
v4->v5:
- Add HYPERVISOR check for patch x86/cpu/hygon.
- Refine the commit messages for the third patch.
- Use per-CPU MSR read for microcode revision retrieval.
v3->v4:
- Rebase to 7.2-rc2.
- Refine the commit messages and comments for patch x86/cpu/hygon.
- Add bounds checks to the microcode patch.
- The HD-Audio patch has been applied to for-next branch.
v2->v3:
- Refine the commit messages for patch x86/cpu/hygon.
- Update the logic for deriving the LLC ID from the APIC ID on Hygon processors.
- Clean up and refine Hygon microcode support code.
- Refine the code of Hygon HD-Audio device ID.
- The iommu/hygon patch has been accepted and merged into iommu branch.
v1->v2:
- Refine the patch x86/cpu/hygon.
- Do a separate compilation unit on hygon microcode loading support.
- Use "access_sdnctl_in_dword" instead of "hygon_dword_acess" for accessing the HDA registers.
Fu Hao (5):
x86/cpu/hygon: Adjust the die_id and logical_die_id for Hygon models
0x4 through 0x8
x86/cpu: Get LLC ID for Hygon processor models 0x6 through 0x8 x86/cpu/hygon: Remove Spectral Chicken for Hygon processors perf/x86/uncore: Add L3 PMU support for Hygon family 18h model 6h x86/microcode/hygon: Add microcode loading support for Hygon
processors
arch/x86/Kconfig | 2 +- arch/x86/events/amd/uncore.c | 48 +- arch/x86/include/asm/perf_event.h | 8 + arch/x86/kernel/cpu/cacheinfo.c | 21 +- arch/x86/kernel/cpu/hygon.c | 20 +- arch/x86/kernel/cpu/microcode/Makefile | 1 + arch/x86/kernel/cpu/microcode/core.c | 17 +- arch/x86/kernel/cpu/microcode/hygon.c | 851 +++++++++++++++++++++++ arch/x86/kernel/cpu/microcode/internal.h | 20 + 9 files changed, 976 insertions(+), 12 deletions(-) create mode 100644 arch/x86/kernel/cpu/microcode/hygon.c
Signature · 1 line
2.34.1