mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 22:03:17 +01:00
This will be used by the Tyr driver to create and modify the page table of each address space on the GPU. Each time a mapping gets created or removed by userspace, Tyr will call into GPUVM, which will figure out which calls to map_pages and unmap_pages are required to map the data in question in the page table so that the GPU may access those pages when using that address space. The Rust type wraps the struct using a raw pointer rather than the usual Opaque+ARef approach because Opaque+ARef requires the target type to be refcounted. Signed-off-by: Asahi Lina <[email protected]> Acked-by: Boris Brezillon <[email protected]> Reviewed-by: Daniel Almeida <[email protected]> Tested-by: Deborah Brouwer <[email protected]> Co-developed-by: Alice Ryhl <[email protected]> Signed-off-by: Alice Ryhl <[email protected]> Reviewed-by: Gary Guo <[email protected]> Reviewed-by: Danilo Krummrich <[email protected]> [joro: Fixed up Rust import style] Signed-off-by: Joerg Roedel <[email protected]>
6 lines
90 B
Rust
6 lines
90 B
Rust
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
//! Rust support related to IOMMU.
|
|
|
|
pub mod pgtable;
|