Commit Graph

2 Commits

  • feat(adreno): on-demand GPU page tables and a 2^ias address space
    Each GPU address space takes its table pages one at a time from the
    system (NativeAdrenoTablePages) instead of a 1027-page pool, so the
    aperture is the bank's whole input size: ias from ID2.UBS as Linux
    arm_smmu_id_size_to_bits reads it. Every process maps from
    ADRENO_VM_START (4 GiB) to 2^ias, as msm's adreno_private_vm_size.
    The GMU keeps its 0..2 GiB space. The alias scratch belongs to each
    VM and grows with its range table. A map that cannot get a table page
    is undone and returns kIOReturnNoMemory without poisoning the VM.
    Host tests cover a sparse 48-bit space and the refusal.
  • Import NativeAdreno
    Co-authored-by: rpone <rponeawa@qq.com>