Skip to content

DAK native hardware: GPU/NVML, ONNX model inspection, WAV routing and driver lifecycle - #350

Open
Ivan-VHS wants to merge 3 commits into
mainfrom
feat/hardware-runtime-and-dabi64-userland-v1
Open

Ivan-VHS wants to merge 3 commits into
mainfrom
feat/hardware-runtime-and-dabi64-userland-v1

Conversation

@Ivan-VHS

@Ivan-VHS Ivan-VHS commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Scope

This extends DAK's existing native hardware services rather than creating parallel mocks.

Implemented

  • Optional NVIDIA NVML telemetry, dynamically loaded only from the Windows System32 or NVIDIA NVSMI install paths: system GPU utilization, memory utilization and VRAM, temperature, power, and graphics clock. DXGI/PDH stays the cross-vendor host telemetry path; NPU usage remains explicitly unknown when the OS/driver publishes no NPU counter.
  • Bounded WAV parsing and selected-endpoint WASAPI playback for PCM 8/16/24/32-bit and IEEE float32, mono–8 channels, 8–192 kHz, max 10 seconds / 64 MiB. Routing remains DAK-stream-only and does not change the Windows default endpoint.
  • ONNX model signature inspection (names, element types, static/dynamic shapes), input metadata display, and generation of editable sample tensors. Scalar inputs are accepted; dynamic axes use a visible initial value of 1.
  • Selected-device signed INF workflow: stage a local non-symlink INF, enumerate compatible driver entries, then call DiInstallDevice for the selected safe-class device only. No force downgrade. Windows signature/trust policy remains authoritative.
  • Selected-device driver rollback through DiRollbackDriver and Windows' prior-driver backup, with restart status surfaced.
  • Fixed the native hardware test's undefined inference variable, added ORT model-signature assertions and a portable WAV-parser contract test.
  • Updated hardware and DABI64 host-boundary docs.

Safety

  • Driver install/rollback and enable/disable require elevated administrator rights and explicit UI confirmation.
  • INF package install uses no force-install flag; no signing enforcement bypass and no arbitrary package uninstall.
  • Protected keyboard, display, storage, system and network classes remain excluded.
  • NVML is loaded only from known system/vendor install paths. If it is absent or a sensor is unsupported, the value is Unknown; not zero.
  • Audio is limited to DAK-owned streams and bounded user-selected WAV files.
  • AI remains local ONNX Runtime inference. The new model inspector prepares tensors; it is not an LLM chat/tokenizer service. GPU/NPU execution still depends on installed compatible ONNX Runtime providers.

Kernel-owned desktop boundary

This PR does not claim that host Qt is kernel-owned. The x86-64 kernel still needs ring-3 address spaces, user-mode entry/return, validated user-memory copying, syscall-bound peer identity/capability resolution, an active kernel DABI64 endpoint, and compositor/display/input ownership. Existing DABI64 frame/queue/capability pieces remain foundations until this kernel path is connected and tested.

Verification

CI runs the Linux and Windows native desktop matrix. Windows enables ONNX Runtime CPU + DirectML + plugin EP. native-hardware-adapters now exercises the ONNX signature contract and malformed/valid WAV parsing; Windows tests inventory and state APIs without automatically changing devices.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-02T15:59:58.842651Z
We couldn’t complete this review. Comment @codex review to try again.
cb5a15b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

This branch has not been deployed

No deployments
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