FAST-PATHS: what an NVIDIA host whose type 0 reads right loses to the Shared dma-buf refusal
This commit is contained in:
1 parent
08e90bbf5e
commit
4da77d8518
1 file changed
+7
-3
+7
-3
@@ -2418,10 +2418,14 @@ driver's. Each is open work.
|
||||
the caller's own mapping, and a type without `HOST_COHERENT` promises nothing of what that
|
||||
mapping and the device see of each other's writes. So on NVIDIA, whose udmabuf order takes
|
||||
type 0 (no property flag) first, a `Shared` dma-buf import is refused with no import tried, and
|
||||
what it would back is a copy of its pages, as where a driver refuses the dma-buf
|
||||
(`HostMemory::with_dma_buf`; `tests::export_after_dma_buf`'s
|
||||
what it would back takes the runtime's other paths, as where a driver refuses the dma-buf
|
||||
(`HostMemory::with_dma_buf`): the pages' pointer import where the driver takes it, else a copy
|
||||
of them (`tests::export_after_dma_buf`'s
|
||||
`a_shared_dma_buf_import_is_host_coherent_or_refused_untried`). Its `Private` imports take type
|
||||
0 as before. 615.71.09 also refuses
|
||||
0 as before. The refusal goes by the types' flags alone, so it holds on every NVIDIA host,
|
||||
those where type 0 reads right today included (a host whose IOMMU snoops the GPU's accesses to
|
||||
system memory, an RTX 3090's): there too a `Shared` object over such pages loses its dma-buf
|
||||
import for the pointer import or the copy, a cost not yet measured. 615.71.09 also refuses
|
||||
most udmabufs of scattered pages dedicated to nothing, of 16 KiB to 63 MiB, and takes them
|
||||
dedicated to their buffer (measured on an RTX 5080 Laptop GPU: 4346 of the leak probe's 6000
|
||||
imports). So an import tries first the form and type its kind (what it backs, and its class)
|
||||
|
||||
Reference in new issue
Block a user