Skip to content

Conversation

@YBronst
Copy link
Contributor

@YBronst YBronst commented Feb 10, 2026

🟢 Pull Request Title

📄 Summary

This PR introduces a set of improvements focused on memory reporting, SMBIOS accuracy, and modern CPU support, with special attention to MacPro7,1 systems. The changes enhance correctness, compatibility with real hardware behavior, and overall robustness without altering existing stable logic.

✨ Key changes

🔹 SMBIOS & Memory

  • Corrected Type 16 (Physical Memory Array) for MacPro7,1:
    • Enabled ECC (MultiBitECC).
    • Set correct MaximumCapacity = 1.5 TB.
  • Improved Type 17 (Memory Device):
    • Proper handling of ECC widths (72/64) for MacPro7,1.
    • Corrected device/bank locators and memory type for empty slots.
    • Disabled channel interleaving logic where not applicable (MacPro7,1).
    • Preserved trustSMBIOS behavior.

🔹 CPU Model Detection

  • Extended Nehalem-based logic to include Nehalem-EX, Westmere, and Westmere-EX.
  • Added support for Tiger Lake, Alder Lake, Raptor Lake, Meteor Lake, Arrow Lake families.
  • Improved default SMBIOS selection:
    • i9 CPUs → iMac20,2.
    • Modern desktop CPUs → MacPro7,1.

🔹 SMBIOS Type 4 Accuracy

  • Correctly set processor family for Core i9 and Xeon based on BrandString.

🔹 Graphics Injection Logic

  • Fixed GPU injection detection by scanning the full GPU list instead of only the first two entries.

🔹 Code Quality

  • Replaced non-English comments with clear English equivalents.
  • Minor cleanups and typo fixes (sucсesssuccess), no logic changes.
  • Improved formatting for better readability and comprehension.

🧪 Testing

  • Tested manually on real hardware.
  • No regressions observed on existing platforms.
  • All changes are limited to rEFIt_UEFI and preserve existing behavior outside the affected paths.

📌 Notes

These changes aim to improve real-world accuracy and compatibility while maintaining Clover’s established behavior model. No risky refactoring or behavioral changes were introduced.

Adjusted Type16 settings (ECC, MaximumCapacity, minimum slots) only for the MacPro71, without affecting other models.
Configured MacPro71-specific Type17 logic: reading memory type, channel order, width, locators, and slots.
DDR4 is displayed for populated slots and only for the MacPro71.
- Translated technical comments from Russian to English in ConfigManager.
- Simplified MLB and ROM selection logic by removing redundant branches.
- Added fallbacks for RtROM using System UUID if no network card is found.
- Cleaned up redundant manual GPU vendor checks in applySettings()
  in favor of more robust loop-based detection.
- Unified code style for Turbo and Graphics injection settings.
One duplicate line and an unused variable were highlighted.
Improved formatting for better readability and comprehension
@YBronst YBronst deleted the branch CloverHackyColor:master February 10, 2026 21:48
@YBronst YBronst closed this Feb 10, 2026
@YBronst YBronst deleted the master branch February 10, 2026 21:48
@YBronst YBronst restored the master branch February 10, 2026 21:57
@YBronst YBronst reopened this Feb 10, 2026
@jzrodriguez98
Copy link

Did the proposed improvements regarding memory settings for MacPro 7,1 SMBIOS work well when tested?

### 📄 Summary
This PR introduces a set of improvements focused on memory reporting, SMBIOS accuracy, and modern CPU support, with special attention to **MacPro7,1** systems. The changes enhance correctness, compatibility with real hardware behavior, and overall robustness without altering existing stable logic.

### ✨ Key changes

#### 🔹 SMBIOS & Memory
*   **Corrected Type 16 (Physical Memory Array) for MacPro7,1:**
    *   Enabled ECC (`MultiBitECC`).
    *   Set correct `MaximumCapacity` = 1.5 TB.
*   **Improved Type 17 (Memory Device):**
    *   Proper handling of ECC widths (72/64) for MacPro7,1.
    *   Corrected device/bank locators and memory type for empty slots.
    *   Disabled channel interleaving logic where not applicable (MacPro7,1).
    *   Preserved `trustSMBIOS` behavior.

#### 🔹 CPU Model Detection
*   Extended Nehalem-based logic to include **Nehalem-EX**, **Westmere**, and **Westmere-EX**.
*   Added support for **Tiger Lake**, **Alder Lake**, **Raptor Lake**, **Meteor Lake**, **Arrow Lake** families.
*   **Improved default SMBIOS selection:**
    *   i9 CPUs → `iMac20,2`.
    *   Modern desktop CPUs → `MacPro7,1`.

#### 🔹 SMBIOS Type 4 Accuracy
*   Correctly set processor family for **Core i9** and **Xeon** based on `BrandString`.

#### 🔹 Graphics Injection Logic
*   Fixed GPU injection detection by scanning the full GPU list instead of only the first two entries.

#### 🔹 Code Quality
*   Replaced non-English comments with clear English equivalents.
*   Minor cleanups and typo fixes (*sucсess* → *success*), no logic changes.
*   Improved formatting for better readability and comprehension.

### 🧪 Testing
*   Tested manually on real hardware.
*   No regressions observed on existing platforms.
*   All changes are limited to `rEFIt_UEFI` and preserve existing behavior outside the affected paths.

### 📌 Notes
These changes aim to improve real-world accuracy and compatibility while maintaining Clover’s established behavior model. No risky refactoring or behavioral changes were introduced.
@YBronst YBronst deleted the branch CloverHackyColor:master February 11, 2026 00:16
@YBronst YBronst closed this Feb 11, 2026
@YBronst YBronst deleted the master branch February 11, 2026 00:16
@YBronst YBronst reopened this Feb 11, 2026
@YBronst YBronst closed this Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants