FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix: AMD Ryzen/Threadripper skipping the AMD Vanilla kernel patches on Windows by Epic34-cyberdudder · Pull Request #68 · riftaway7-code/hackmate · GitHub

Fix: AMD Ryzen/Threadripper skipping the AMD Vanilla kernel patches on Windows - #68

Closed
Epic34-cyberdudder wants to merge 1 commit into
riftaway7-code:mainfrom
Epic34-cyberdudder:fix/amd-cpu-detection
Closed

Fix: AMD Ryzen/Threadripper skipping the AMD Vanilla kernel patches on Windows#68
Epic34-cyberdudder wants to merge 1 commit into
riftaway7-code:mainfrom
Epic34-cyberdudder:fix/amd-cpu-detection

Conversation

Copy link
Copy Markdown

Problem

_detect_cpu_windows() sets the vendor from the marketing name string:

vendor = "intel" if "intel" in name.lower() else "amd" if "amd" in name.lower() else "unknown"

Some CPUs (engineering samples, a few OEM strings) don't contain "intel" or "amd" → vendor = "unknown" → the build is treated as Intel → no AMD Vanilla kernel patches → kernel panic on an AMD box.

Fix

  • When the name string is ambiguous, fall back to Win32_Processor.Manufacturer (AuthenticAMD / GenuineIntel).
  • config_gen._amd_kernel_patches() now hard-returns [] for any non-AMD CPU as a guard — an AMD Radeon GPU on an Intel host must never pull in these XNU patches (they patch cpuid/XCPM paths that only exist the AMD way and panic an Intel kernel), and this makes that impossible regardless of how the caller is reached.

Two files, ~17 lines. No test changes needed.

AMD Vanilla (AMD-OSX/AMD_Vanilla, vendored in amd_patches.plist) is an XNU
*processor* patch set. It is applied when profile.cpu_vendor == "amd" and
must never be applied on an Intel CPU — an AMD Radeon GPU on an Intel host
needs no kernel patch.

- hardware.py: when the Windows CPU marketing name contains neither "intel"
  nor "amd", fall back to Win32_Processor.Manufacturer (AuthenticAMD /
  GenuineIntel) so a Ryzen/Threadripper still routes into the AMD path.
- config_gen.py: _amd_kernel_patches() now returns [] for any non-AMD CPU
  as a hard guard, plus a comment on why GPU vendor is irrelevant here.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
(cherry picked from commit 389e8f47aa007528acb3368b158510434dbdddfe)
Epic34-cyberdudder closed this by deleting the head repository Aug 27, 2026
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
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.

1 participant


Back | FazBrowse Home | New Git URL