Bug 2571782

Summary: Review Request: reach - Cached reachability query for DMA-BUF buffers on i915
Product: [Fedora] Fedora Reporter: Americo Simoes <amexsimoes>
Component: Package ReviewAssignee: Nobody's working on this, feel free to take it <nobody>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: package-review
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 177841    

Description Americo Simoes 2026-11-11 17:39:07 UTC
Spec URL: https://copr-be.cloud.fedoraproject.org/results/simoesctt/reach/srpm-builds/11307429/reach.spec
SRPM URL: https://copr-be.cloud.fedoraproject.org/results/simoesctt/reach/srpm-builds/11307429/reach-0.1.0-1.src.rpm

Description:
reach answers one question cheaply: can this device reach this
chipmem buffer, and will the access be zero-copy or copied?

DRM_IOCTL_PRIME_FD_TO_HANDLE costs ~7 us per call on Skylake-U /
kernel 7.2.13 (median 7021-8390 ns, p99 ~22.9 us), warm or cold, and
returns a GEM handle without telling the caller whether the subsequent
access will be zero-copy or copied. reach caches the reachability
answer per (buffer, device) pair and records the cost class once, so a
hot path pays the import once (~7 us) instead of per call. Measured
cached query: ~43 ns (mean 40-43 ns over 1000 runs), ~175x cheaper
than the ioctl.

Not a restored kernel primitive: the import ioctl is the reachability
test. reach adds a cache, because the ioctl is expensive, and a
cost-class answer, because the ioctl cannot give one.

Fedora Account System Username: SimoesCTT

Comment 1 Americo Simoes 2026-11-11 17:42:19 UTC
The bundling MUST item is acknowledged and is the real blocker:
vendor/chipmem is a copy of the-level, which is under review at bug
2569282. reach will switch to BuildRequires: the-level-devel and drop
vendor/ once the-level is accepted. Until then this package cannot
close its review.

%check in mock:
  SKIP: no /dev/dri/renderD128; the reach test requires a render node
The test runs where the node exists (local rpmbuild) and skips with an
explicit note where it does not.

Comment 2 Americo Simoes 2026-11-11 17:53:35 UTC
Same MUST items as bug 2571398 (copperlist), same answers:

- Bundled libraries: vendor/chipmem is a copy of the-level, under
  review at bug 2569282. reach will switch to
  BuildRequires: the-level-devel and drop vendor/ once the-level is
  accepted. Until then this package cannot close its review.

- License / unknown-license files: the 29 files licensecheck cannot
  classify are the vendored sources. Same dependency; resolved by the
  same unbundling.

- Header in non-devel package: reach ships reach.h in the base
  package, matching the-level's shape (bug 2569282), which Artur
  reviewed without making it a blocker. If a reviewer wants the
  -devel split, it should be done across the-level, copperlist, and
  reach together, not on one package alone.

%check in mock:
  SKIP: no /dev/dri/renderD128; the reach test requires a render node
The test runs where the node exists (local rpmbuild) and skips with an
explicit note where it does not.