Bug 2571782 - Review Request: reach - Cached reachability query for DMA-BUF buffers on i915
Summary: Review Request: reach - Cached reachability query for DMA-BUF buffers on i915
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: FE-NEEDSPONSOR
TreeView+ depends on / blocked
 
Reported: 2026-11-11 17:39 UTC by Americo Simoes
Modified: 2026-11-13 01:05 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.