[RFC] Add read-only DDR5 SPD5118 register module for Intel i801 - #113
Draft
AllxSmr wants to merge 1 commit into
Draft
[RFC] Add read-only DDR5 SPD5118 register module for Intel i801#113AllxSmr wants to merge 1 commit into
AllxSmr wants to merge 1 commit into
Conversation
Contributor
|
This seems unnecessary. The name is also misleading as it's not a "Ddr5" but rather a specific Intel access. I would not test this on my hardware, but I also did not check the code as it's quite unreadable. Feel free to test this on your own hardware and report back if it has survived it. |
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Request for review
Draft/RFC: add a small DDR5 SPD5118 register-read module for a monitoring client that must not expose generic SMBus writes. I am requesting architecture/security review and guidance on the hardware acceptance work needed before this could be considered for merging and subsequent upstream signing/release. This candidate has not been run in the Windows kernel or on real hardware. Please do not treat it as ready to deploy.
Scope and interface
Ddr5ReadOnly.p; existing modules, headers and CI are unchanged.ioctl_ddr5_read, with exactly four input cells[address, direction, register, protocol]and one output cell.unloadonly releases the fixed mapping.0x50..0x57, direction1, word reads (protocol3) at0x00,0x03,0x31, and byte reads (protocol2) at0x05,0x0b,0x1a."Read-only" is a restriction on this module's exported operations, intended to execute in PawnIO's kernel-resident interpreter. It is not a claim that stock PawnIO, other signed modules, other handles/drivers or an administrator cannot write hardware. It is not a dedicated read-only driver or a machine-wide write prohibition.
Reproducible local evidence
tests/ddr5-readonly/contains a standalone C mock host and a Windows PowerShell/CMake build entry point. All hardware natives are mocked; no driver installation, UAC, security-setting change or hardware access is involved.Executed against this submission's module and headers from base
52a7e536dff3e53c96917a28caac5e0fa6510696:-C64 -;+ -(+ -p: module compilation completed with no warnings.8E3644DE53D116D2212013759133BA72DA69C358363B34B3053F0B2C515CBFF3.The harness verifies the upstream compiler source ZIP hash and documents two generated compiler/VM compatibility corrections for modern MinGW/Windows LLP64. It does not alter module bytecode. The repository's Linux compiler CI is a separate check; local mock results are not a claim of upstream CI success or kernel/hardware safety.
Open acceptance questions
Access_SMBUS.HTP.Methodacross its scan and verify SPD5118 identity/capabilities/page/sensor state before interpreting temperatures. The module returns raw registers, not DIMM identification or converted temperatures.References and license
Added module and test-harness code: LGPL-2.1-or-later, under the repository's
COPYING. The implementation and mock harness were prepared with AI assistance; independent review and actual hardware validation remain outstanding.