Displaying 2 results from an estimated 2 matches for "gk20a_vm_map_sg_iommu".
2015 Apr 16
2
[PATCH 6/6] mmu: gk20a: implement IOMMU mapping for big pages
...SHIFT;
> + addr |= BIT_ULL(plat->gpu->iommu.phys_addr_bit);
> +
> + gk20a_vm_map(vma, pgt, mem, pte, addr);
> +
> + p = *priv;
> + p->node = node;
> + p->iova = node->offset << PAGE_SHIFT;
> +}
> +
> +static void
> +gk20a_vm_map_sg_iommu(struct nvkm_vma *vma, struct nvkm_gpuobj *pgt,
> + struct nvkm_mem *mem, u32 pte, struct sg_page_iter *iter,
> + void **priv)
> +{
> + struct nvkm_vm *vm = vma->vm;
> + struct nvkm_mmu *mmu = vm->mmu;
> + struct nvkm_mm_node *nod...
2015 Apr 16
15
[PATCH 0/6] map big page by platform IOMMU
Hi,
Generally the the imported buffers which has memory type TTM_PL_TT are
mapped as small pages probably due to lack of big page allocation. But the
platform device which also use memory type TTM_PL_TT, like GK20A, can
*allocate* big page though the IOMMU hardware inside the SoC. This is a try
to map the imported buffers as big pages in GMMU by the platform IOMMU. With
some preparation work to