Files
nvdriver/tools
morebrackets 72543d1e2e fix(drm): harden DMABUF scanout/export guards and mark nvkms export PORTED (23/24 DRM) (#515)
- Harden nv_rs_fb_create() and nv_rs_crtc_atomic_flush() so imported
  NV_RS_GEM_DMABUF objects always validate single-segment contiguous sgt
  backing and scan out via import_sgt rather than kms_mem.
- Return -EOPNOTSUPP in nv_rs_ioctl_gem_export_nvkms_memory() if the
  export_memory_fd hook is unavailable instead of silently succeeding.
- Validate arguments and import_sgt in nv_rs_ioctl_gem_export_dmabuf_memory()
  and return -EOPNOTSUPP until an RM external DMA-BUF memory wrapper with
  independent attachment lifetime retention exists (avoiding a fake 0x003e
  sysmem allocation or premature drm_prime_gem_destroy on GEM close).
- Update tools/build_parity_ledger.py and docs/PARITY_LEDGER.md to mark
  nv_drm_gem_export_nvkms_memory_ioctl PORTED (backed by RM 0x00003d05)
  and keep nv_drm_gem_export_dmabuf_memory_ioctl honestly PARTIAL (23/24).

Co-authored-by: morebrackets <19673572+morebrackets@users.noreply.github.com>
2026-12-04 17:03:12 -08:00
..