IFS multi test image support and misc changes
Status from this message: The following commit has been merged into the x86/microcode branch of tip:
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
Changes in v3 from the cover letter · 16 lines
- Rebased ontop of v6.1-rc5
- Added reviewed-by tags from Sohil and Hans
Boris
- Moved dynamic memory allocation from scan_chunks_sanity_check() to driver init (patch 4)
- Split v2's Expose microcode_sanity_check(), into 2 separate patches (patch 7 and patch8).
- Add kerneldoc style comment to intel_microcode_sanity_check() and change parameter name to hdr_type instead of hdr_ver (patch 8)
- Remove ifs_ prefix from static functions (patch 10, patch11)
- Rename macro names more appropriately (patch10, patch8, patch12)
- Remove obvious "what" from certain commit messages
- Fix typos and wordings
Dave
- Use union to describe ifs meta_data structure and use u32 types
Sohil
- Use unsigned int to store current_batch (patch 11, patch 14)
- Fix an inadvertent mistake in microcode_sanity_check (patch 7)
- Fix wordings
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | platform/x86/intel/ifs: Remove unused selectiondrivers/ | +0 | 0 replies | |
| 2/16 | platform/x86/intel/ifs: Return a more appropriate Error codedrivers/ | +3 | 0 replies | |
| 3/16 | platform/x86/intel/ifs: Remove image loading during initdrivers/ drivers/ drivers/ | +2 | 0 replies | |
| 4/16 | platform/x86/intel/ifs: Remove memory allocation from load pathdrivers/ drivers/ drivers/ | +17 | 1 reply | |
| 4/16 | platform/x86/intel/ifs: Remove memory allocation from load pathdrivers/ drivers/ drivers/ | +16 | 1 reply | |
| 4/16 | platform/x86/intel/ifs: Remove memory allocation from load pathdrivers/ drivers/ drivers/ | +22 | 2 replies | |
| 5/16 | x86/microcode/intel: Reuse find_matching_signature()arch/ arch/ arch/ | +38 | 0 replies | |
| 6/16 | x86/microcode/intel: Use appropriate type in microcode_sanity_check()arch/ | +3 | 0 replies | |
| 7/16 | x86/microcode/intel: Reuse microcode_sanity_check()arch/ arch/ arch/ | +102 | 0 replies | |
| 8/16 | x86/microcode/intel: Add hdr_type to intel_microcode_sanity_check()arch/ arch/ arch/ +1 more | +20 | 0 replies | |
| 9/16 | x86/microcode/intel: Use a reserved field for metasizearch/ | +2 | 0 replies | |
| 10/16 | platform/x86/intel/ifs: Add metadata supportdrivers/ | +32 | 0 replies | |
| 11/16 | platform/x86/intel/ifs: Use generic microcode headers and functionsarch/ drivers/ | +20 | 0 replies | |
| 11/16 | platform/x86/intel/ifs: Use generic microcode headers and functionsarch/ drivers/ | +21 | 0 replies | |
| 12/16 | platform/x86/intel/ifs: Add metadata validationdrivers/ drivers/ | +59 | 0 replies | |
| 12/16 | platform/x86/intel/ifs: Add metadata validationdrivers/ drivers/ | +59 | 0 replies | |
| 13/16 | platform/x86/intel/ifs: Remove reload sysfs entrydrivers/ | +0 | 0 replies | |
| 14/16 | platform/x86/intel/ifs: Add current_batch sysfs entrydrivers/ drivers/ drivers/ +2 more | +74 | 0 replies | |
| 15/16 | Documentation/ABI: Update IFS ABI docDocumentation/ | +16 | 0 replies | |
| 16/16 | Revert "platform/x86/intel/ifs: Mark as BROKEN"drivers/ | +0 | 0 replies |
Reviews trailers per patch
All 20 patches have a Reviewed-by or Acked-by.
| Patch | Tony Luck | Sohil Mehta | Hans de Goede | Ashok Raj |
|---|---|---|---|---|
| 1/16 | R-b | R-b | R-b | |
| 2/16 | R-b | R-b | R-b | |
| 3/16 | R-b | R-b | R-b | |
| 4/16 | R-b R-b R-b | R-b | ||
| 4/16 | R-b R-b R-b | R-b | ||
| 4/16 | R-b R-b R-b | R-b | ||
| 5/16 | R-b | R-b | R-b | |
| 6/16 | R-b | R-b | R-b | |
| 7/16 | R-b | R-b | R-b | |
| 8/16 | R-b | R-b | ||
| 9/16 | R-b | R-b | R-b | |
| 10/16 | R-b | R-b | R-b | |
| 11/16 | R-b R-b | R-b R-b | R-b R-b | |
| 11/16 | R-b R-b | R-b R-b | R-b R-b | |
| 12/16 | R-b R-b | R-b R-b | R-b R-b | |
| 12/16 | R-b R-b | R-b R-b | R-b R-b | |
| 13/16 | R-b | R-b | R-b | |
| 14/16 | R-b | R-b | R-b | |
| 15/16 | R-b | R-b | R-b | |
| 16/16 | R-b | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH v3 00/16] IFS multi test image support and misc changes
Changes in v3
- Rebased ontop of v6.1-rc5
- Added reviewed-by tags from Sohil and Hans
Boris
- Moved dynamic memory allocation from scan_chunks_sanity_check() to driver init (patch 4)
- Split v2's Expose microcode_sanity_check(), into 2 separate patches (patch 7 and patch8).
- Add kerneldoc style comment to intel_microcode_sanity_check() and change parameter name to hdr_type instead of hdr_ver (patch 8)
- Remove ifs_ prefix from static functions (patch 10, patch11)
- Rename macro names more appropriately (patch10, patch8, patch12)
- Remove obvious "what" from certain commit messages
- Fix typos and wordings
Dave
- Use union to describe ifs meta_data structure and use u32 types
Sohil
- Use unsigned int to store current_batch (patch 11, patch 14)
- Fix an inadvertent mistake in microcode_sanity_check (patch 7)
- Fix wordings
v2 patches available from
Changes in v2
- Rebased ontop of v6.1-rc4
Boris
- Moved exported functions (microcode_sanity_check(), find_matching_signature ) from microcode/intel.c to cpu/intel.c (patch4,6)
- Removed microcode metadata specific code changes to microcode_sanity_check() (patch6)
- Moved find_meta_data() from common to IFS driver (Patch 8)
Sohil
- Dropped portions of Patch2 from v1 and folded remaining to Patch12
- Rewording multiple commits
- Avoid meta prefix in fields of metadata_header (patch8)
- Defining MICROCODE_HEADER_VER* into common location (patch6, 9)
- Elaborating error messages w.r.t processor flags (patch9)
- Changed sysfs_emit() parameter (patch 11)
v1 patches available from
Initial implementation of IFS driver assumed a single IFS test image file with a fixed name.
Subsequently, it became evident that supporting more than one test image file is needed to provide more comprehensive test coverage. (Test coverage in this scenario refers to testing more transistors in the core to identify faults).
This series makes the driver aware of multiple scan test image files, modifies IFS test image file headers to make it fully compatible with microcode headers and adds a few other bug fixes and changes.
Patch organization:
Patches 1, and 2: bug fixes
Patch 3: Removes image loading during init path
Patch 4: Move memory allocation from load to init path Patch 5, 6, 7, 8: exports a couple of microcode/intel.c functions
for use by driver
Rest of them are IFS driver changes
Patch 9,10 and 12: microcode/IFS metadata section related Patches 11: IFS header format changes to make it fully compatible
to intel microcode header format
Patches 13, 14 and 15: native support for multiple scan test image files Patch 16: reverts the broken flag
Ashok Raj (1):
platform/x86/intel/ifs: Add metadata support
Jithu Joseph (15):
platform/x86/intel/ifs: Remove unused selection platform/x86/intel/ifs: Return a more appropriate Error code platform/x86/intel/ifs: Remove image loading during init platform/x86/intel/ifs: Remove memory allocation from load path x86/microcode/intel: Reuse find_matching_signature() x86/microcode/intel: Use appropriate type in microcode_sanity_check() x86/microcode/intel: Reuse microcode_sanity_check() x86/microcode/intel: Add hdr_type to intel_microcode_sanity_check() x86/microcode/intel: Use a reserved field for metasize platform/x86/intel/ifs: Use generic microcode headers and functions platform/x86/intel/ifs: Add metadata validation platform/x86/intel/ifs: Remove reload sysfs entry platform/x86/intel/ifs: Add current_batch sysfs entry Documentation/ABI: Update IFS ABI doc
Revert "platform/x86/intel/ifs: Mark as BROKEN"
arch/x86/include/asm/cpu.h | 2 + arch/x86/include/asm/microcode_intel.h | 5 +- drivers/platform/x86/intel/ifs/ifs.h | 27 ++- arch/x86/kernel/cpu/intel.c | 141 +++++++++++ arch/x86/kernel/cpu/microcode/intel.c | 146 +----------- drivers/platform/x86/intel/ifs/core.c | 14 +- drivers/platform/x86/intel/ifs/load.c | 218 ++++++++++-------- drivers/platform/x86/intel/ifs/runtest.c | 10 +- drivers/platform/x86/intel/ifs/sysfs.c | 41 ++-- .../ABI/testing/sysfs-platform-intel-ifs | 30 +-- drivers/platform/x86/intel/ifs/Kconfig | 4 - 11 files changed, 356 insertions(+), 282 deletions(-)
base-commit: 094226ad94f471a9f19e8f8e7140a09c2625abaa
Signature · 1 line
2.25.1