fix(libkernel): skip storage temperature queries on RAID buses #16061

Merged
Ducengarth merged 2 commits from upstream-pr/16061 into main 2026-11-12 12:24:20 +00:00
Ducengarth commented 2026-11-05 13:57:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Ducengarth on 2026-11-05T13:57:00Z.


What

On Windows, ReadStorageTemperature now reads each drive's bus type first and skips the temperature query on a RAID bus or when the bus type cannot be read.

IOCTL_STORAGE_QUERY_PROPERTY with StorageDeviceTemperatureProperty never returned for a Samsung 970 PRO 1TB (firmware 1B2QEXP7) behind Intel RST Premium 17.5.0.1017 on a Z390 board, and Windows stopped responding until a hard reset. guest_thermal_sensors froze the machine on all 3 runs, and a standalone probe sending only that query reproduced it. SATA and USB drives on the same machine returned an error at once. Whether the driver or the firmware is at fault is unknown.

Drives behind RST now report no temperature, which is recorded in the debt file.

Tested

Windows 11 26H2 build 26300, WinLibs GCC 15.2.0, on main at d23df92b38, rebuilding only the guest_thermal_sensors_tests target. guest_thermal_sensors passes 4 of 4 runs with this change. public_headers, conventions_pr_template and check_conventions.py pass. test_registration fails here on the symlink privilege (WinError 1314), with or without this change. The Linux build was not run locally, and neither was the full test suite on this base.

pr_overlap.py reports overlaps only in docs/dev/debt/libkernel.md.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5172750923 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/16061). Originally posted by [Ducengarth](https://github.com/Ducengarth) on 2026-11-05T13:57:00Z. --- ### What On Windows, `ReadStorageTemperature` now reads each drive's bus type first and skips the temperature query on a RAID bus or when the bus type cannot be read. `IOCTL_STORAGE_QUERY_PROPERTY` with `StorageDeviceTemperatureProperty` never returned for a Samsung 970 PRO 1TB (firmware 1B2QEXP7) behind Intel RST Premium 17.5.0.1017 on a Z390 board, and Windows stopped responding until a hard reset. `guest_thermal_sensors` froze the machine on all 3 runs, and a standalone probe sending only that query reproduced it. SATA and USB drives on the same machine returned an error at once. Whether the driver or the firmware is at fault is unknown. Drives behind RST now report no temperature, which is recorded in the debt file. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Windows 11 26H2 build 26300, WinLibs GCC 15.2.0, on `main` at d23df92b38, rebuilding only the `guest_thermal_sensors_tests` target. `guest_thermal_sensors` passes 4 of 4 runs with this change. `public_headers`, `conventions_pr_template` and `check_conventions.py` pass. `test_registration` fails here on the symlink privilege (`WinError 1314`), with or without this change. The Linux build was not run locally, and neither was the full test suite on this base. `pr_overlap.py` reports overlaps only in `docs/dev/debt/libkernel.md`. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
boykopovar/AnyPS5!16061
No description provided.