Repository navigation
Conversation
Limit the experimental ioctl to 8086:7F23 / 1043:88EF, preserve normal transfer behavior, and document unresolved firmware ownership races. Include offline model/mutation tests and a warning-free Pawn compile check. Prepared by OpenAI Codex (gpt-6-astra, xhigh; runtime 0.164.0-alpha.11.1) on behalf of aluzin. Not independently human-reviewed or hardware validated.
Trust only the known checkout for the git rev-parse invocation; leave global configuration unchanged. Module compilation and offline tests had already passed.
|
IMO, I think a better solution would be to just remove this line: Line 613 in 24425a5 Which would still wait ~80ms for a transaction to finish under normal circumstances, and then if it doesn't get unlocked we ignore it and continue. We also check |
@Steve-Tech Thanks for reviewing! I'll revise this PR following your suggestion: remove the timeout return after the INUSE wait, retain the existing HOST_BUSY check, and drop the separate recovery ioctl. I'll add regression tests for these paths and report hardware validation separately. |
Follow Steve-Tech's review of PR namazso#137: retain the 80 ms wait and HOST_BUSY preflight check, but do not return a timeout solely for persistent INUSE. Remove the separate recovery ioctl and document normal cleanup after best-effort acquisition. Add offline regression coverage of the actual acquisition/preflight/access bodies: 28 simple/block cases and six rejected mutations. No hardware execution. Prepared by OpenAI Codex on behalf of aluzin.
|
Cool! That seems more reasonable to me. |
@Steve-Tech Thanks! I'll keep the regression tests in a separate branch of my fork and trim this PR to SmbusI801.p only, with a link to the validation results. |
Preserve regression tests and their workflow on validation/i801-inuse at 6825e30. Remove only fork-side test infrastructure from the PR; the validated SmbusI801.p blob is unchanged. Follow Steve-Tech's review preference for a single-file patch. Prepared by OpenAI Codex on behalf of aluzin.
|
@Steve-Tech Done: the PR now changes only 28 offline cases, six rejected mutations and Pawn compilation passed, as did the standard build of the trimmed PR. No hardware testing has been performed. |
Steve-Tech
left a comment
There was a problem hiding this comment.
Code looks good, and I've tested this on my hardware by reading HSTSTS (which sets INUSE) before running my SMBus test script.
I believe now that it's been tested on hardware, you should be fine to mark this PR as ready.
Persistent i801 INUSE causes boot-time SMBus transfers to fail on an ASUS Z890 system. Following Steve-Tech's suggestion, this patch retains the existing ~80 ms wait but removes the STATUS_IO_TIMEOUT return when INUSE remains set. The existing HOST_BUSY preflight check and normal cleanup remain in place.
Only
SmbusI801.pis changed. Comments and the debug message now describe best-effort acquisition. No new ioctl, driver backend or board-specific recovery path is introduced.Validation
Regression tests and their workflow are kept separately in the fork's validation/i801-inuse branch. Its
SmbusI801.pis byte-for-byte identical to the file in this PR (blobfbbf4aafe77ad80eb7090e39f04bbda91a3df791).The observed system is ASUS TUF GAMING Z890-PRO WIFI / Core Ultra 7 265K, BIOS 2207, using signed SmbusI801 0.2.11. Kernel capture reported INUSE held by BIOS/ACPI before FanControl started. A separately authorized vendor-driver status clear restored access through the unchanged PawnIO module; the timeout recurred after reboot. This is evidence motivating the patch, not validation of this candidate.
HOST_BUSY is a snapshot, not complete firmware synchronization. The existing cleanup still clears INUSE | STATUS_FLAGS even after preflight rejects HOST_BUSY. The tests document this behavior without claiming semaphore ownership. A signed test build for a bounded hardware trial would be appreciated.
AI authorship
Code, tests and text were prepared by OpenAI Codex on behalf of @aluzin at his explicit request. The original submission session reported model
gpt-6-astra, reasoningxhigh, Codex runtime0.164.0-alpha.11.1. Independent human hardware-code review remains outstanding.