Skip to content

Laptop and delta fixes - #11

Open
Myp3a wants to merge 4 commits into
arcnmx:v0.2.xfrom
Myp3a:master
Open

Myp3a wants to merge 4 commits into
arcnmx:v0.2.xfrom
Myp3a:master

Conversation

@Myp3a

@Myp3a Myp3a commented Jun 2, 2023

Copy link
Copy Markdown

Fixed that set_vfp_table was setting twice the deltas.

Also, fixes that are needed to run on my 3070Ti Mobile:

  • Use system VFP table as base, otherwise VF curve applying fails with NVAPI_ERROR
  • Defined more error types, for example, NVAPI_GPU_NOT_POWERED - appears when discrete laptop GPU isn't powered at the moment instead of returning generic NVAPI_ERROR

@arcnmx
arcnmx changed the base branch from master to v0.2.x June 13, 2023 18:05
@arcnmx arcnmx added this to the v0.2.0 milestone Jun 13, 2023
physicsdolphin added a commit to Skyworks-Neo/nvapi-rs that referenced this pull request Aug 27, 2026
- #15 QueryInterface fn-pointer cache: AtomicUsize -> AtomicPtr<c_void>;
  nvapi_QueryInterface now returns *mut c_void (null sentinel instead of
  magic 0), nvapi! macro transmutes pointer->fn directly — no usize
  round-trips left on the entry-point path. Examples adapted.
- arcnmx#12 NvVersion::new size assert: REJECTED after triage — the >64KiB RE'd
  mega-structs (pstates V4 / clk-vf-points V3 / power-policies V1) rely on
  the driver building the same lossy size|ver<<16 dword from its own
  struct, so truncation compares equal on both sides; assert would fire on
  hardware-verified paths. Documented the semantics instead; layout drift
  stays pinned by nvversion! `= size` literals + layout tests.
- #16 zeroed(): doc stack-hazard notes on both nvstruct arms (Box::new_zeroed
  for >=1MiB structs) + #[inline] on the unchecked arm
- arcnmx#11 status.rs: module-level doc on the deliberate dual-track design
  (bare c_int ABI vs typed Status; unknown codes -> NvapiError::raw_status)
- arcnmx#9 remainder: NvEnum/NvBits aliases are load-bearing in macro codegen
  (scout's zero-use claim wrong) — documented instead of removed
- hi/: leftover empty stub (hi/.gitignore + empty src/) removed

Co-Authored-By: Claude <noreply@anthropic.com>

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.

2 participants