• Lucas Stach's avatar
    drm/etnaviv: mmuv2: allocate 2nd level page tables on demand · a1fb6f20
    Lucas Stach authored
    With etnaviv not being tied into the IOMMU framework anymore, the MMU
    functions will only be called under sleeping locks. Thus we are able
    to allocate the memory for the 2nd level page tables on demand without
    having to deal with memory allocation in atomic context.
    
    This speeds up driver intitialization on MMUv2 GPU cores, as we don't
    need to preallocate all the page table memory and also reduces memory
    consumption for most workloads, as most of them won't use the full
    GPU virtual address space.
    Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
    Reviewed-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
    a1fb6f20
etnaviv_iommu_v2.c 9.35 KB