[PR #64] [MERGED] Harden generic probe admission and callback regressions #134

Closed
opened 2026-10-31 07:02:03 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/pull/64
Author: @impacifist
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @impacifist

Base: main ← Head: fix/probe-admission-review


📝 Commits (3)

  • e5dd826 Probe: capture a card on a non-01 PCI bus; record the PciIo attribute cache
  • b18dd91 Harden probe records and callback regressions; defer benchmark bus changes
  • 0673f92 Merge main and retain both probe and PROM safety change records

📊 Changes

9 files changed (+192 additions, -6 deletions)

View changed files

📝 CHANGES.md (+19 -0)
📝 docs/NEW-MACHINE.en.md (+5 -1)
📝 internal-boot/boot/probe.c (+17 -1)
📝 internal-boot/boot/test-diagnostic.ps1 (+11 -0)
📝 internal-boot/boot/test_probe_generic.c (+46 -2)
📝 research/profile/build-probe.ps1 (+3 -1)
📝 research/profile/make-profile.py (+19 -0)
📝 research/profile/test_make_profile.py (+10 -0)
📝 research/profile/test_probe_records.py (+62 -1)

📄 Description

Problem and result

The generic probe's deep-read check only accepts PCI bus 01, and local-profile admission cannot detect a firmware attribute-cache mismatch until a later release attempt. Carry forward the diagnostic work from #48, then harden its record parser and service-return tests.

The original contribution by Jura Shekhanov is retained as an authored commit. This is a maintainer-prepared, reviewed alternative based on current main; the original PR and contributor branch remain unchanged.

Scope

  • Allow a selected nonzero PCI bus only in the diagnostic probe, retaining the default BDF and all identity/BAR/MEM/BME checks. Generated write profiles still require bus 01.
  • Record Attributes(Get) before the final state recheck; refuse missing, failed, ambiguous or malformed records during local-profile generation, including damaged records beside a valid one.
  • Test callback changes to MEM, BME, full configuration, BDF and interface identity, plus failure with a plausible partial output value.
  • Defer the benchmark bus option: its native executables still require bus 01. The benchmark runner has no net change against main.

No fixed profile, reviewed envelope, release/transaction code or installer change. No prerequisite PR, network download or privileged action is required for the tests. Older captures without the new attribute record are deliberately refused; no hardware rerun was performed for this review.

Validation and limits

Windows Clang 20.1.8/MSVC RAM-only diagnostics passed 1,040 checks and compile-negative controls. Synthetic capture-record tests (7) and PE-bound tests (7) passed. An independent read-only source/diff review found no remaining blocker in this scope. Diff/scope and a nine-file secret scan passed.

Private-capture generator/replay suites, real EFI/GPU operations and sanitizer runs were not performed. Host checks do not establish additional hardware support. Draft for owner review; not merged and does not close #48.

한국어 검토 요약

#48의 기여자 커밋과 저자 정보를 보존하면서 파서·실패 경로 검증을 보완했습니다. 미완성 벤치마크 버스 옵션은 제외했습니다. 비01 버스 진단이 가능해져도 쓰기 프로필 허용 범위를 넓히지는 않습니다. 호스트 검사와 독립 소스 리뷰를 통과한 Draft이며, 실장비 실행이나 기존 PR 변경·머지는 하지 않았습니다.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/pull/64 **Author:** [@impacifist](https://github.com/impacifist) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@impacifist](https://github.com/impacifist) **Base:** `main` ← **Head:** `fix/probe-admission-review` --- ### 📝 Commits (3) - [`e5dd826`](https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/commit/e5dd8261152d77d907ad7bb2a97d09bd5ae1d143) Probe: capture a card on a non-01 PCI bus; record the PciIo attribute cache - [`b18dd91`](https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/commit/b18dd91bd55b4880779158cbebd6f8164bd39329) Harden probe records and callback regressions; defer benchmark bus changes - [`0673f92`](https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/commit/0673f9207cde2b6c0a9f51fc28bf53451d75d7cd) Merge main and retain both probe and PROM safety change records ### 📊 Changes **9 files changed** (+192 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `CHANGES.md` (+19 -0) 📝 `docs/NEW-MACHINE.en.md` (+5 -1) 📝 `internal-boot/boot/probe.c` (+17 -1) 📝 `internal-boot/boot/test-diagnostic.ps1` (+11 -0) 📝 `internal-boot/boot/test_probe_generic.c` (+46 -2) 📝 `research/profile/build-probe.ps1` (+3 -1) 📝 `research/profile/make-profile.py` (+19 -0) 📝 `research/profile/test_make_profile.py` (+10 -0) 📝 `research/profile/test_probe_records.py` (+62 -1) </details> ### 📄 Description ## Problem and result The generic probe's deep-read check only accepts PCI bus 01, and local-profile admission cannot detect a firmware attribute-cache mismatch until a later release attempt. Carry forward the diagnostic work from #48, then harden its record parser and service-return tests. The original contribution by Jura Shekhanov is retained as an authored commit. This is a maintainer-prepared, reviewed alternative based on current main; the original PR and contributor branch remain unchanged. ## Scope - Allow a selected nonzero PCI bus only in the diagnostic probe, retaining the default BDF and all identity/BAR/MEM/BME checks. Generated write profiles still require bus 01. - Record Attributes(Get) before the final state recheck; refuse missing, failed, ambiguous or malformed records during local-profile generation, including damaged records beside a valid one. - Test callback changes to MEM, BME, full configuration, BDF and interface identity, plus failure with a plausible partial output value. - Defer the benchmark bus option: its native executables still require bus 01. The benchmark runner has no net change against main. No fixed profile, reviewed envelope, release/transaction code or installer change. No prerequisite PR, network download or privileged action is required for the tests. Older captures without the new attribute record are deliberately refused; no hardware rerun was performed for this review. ## Validation and limits Windows Clang 20.1.8/MSVC RAM-only diagnostics passed 1,040 checks and compile-negative controls. Synthetic capture-record tests (7) and PE-bound tests (7) passed. An independent read-only source/diff review found no remaining blocker in this scope. Diff/scope and a nine-file secret scan passed. Private-capture generator/replay suites, real EFI/GPU operations and sanitizer runs were not performed. Host checks do not establish additional hardware support. Draft for owner review; not merged and does not close #48. ## 한국어 검토 요약 #48의 기여자 커밋과 저자 정보를 보존하면서 파서·실패 경로 검증을 보완했습니다. 미완성 벤치마크 버스 옵션은 제외했습니다. 비01 버스 진단이 가능해져도 쓰기 프로필 허용 범위를 넓히지는 않습니다. 호스트 검사와 독립 소스 리뷰를 통과한 Draft이며, 실장비 실행이나 기존 PR 변경·머지는 하지 않았습니다. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 07:02:03 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
windows-GPU-UNLOCK/Windows-GPU-UNLOCK#134
No description provided.