Commit Graph

3 Commits

  • feat(adreno): grow object, queue and job tables with demand
    No fixed object count: the handle index, the VM's mappings and ranges,
    a client's entries and its BO views grow with memory only. Queues grow
    as msm's submitqueues do; each client owns a 2^32 range of the shared
    queue space. Jobs are bounded by ring space: a full ring answers
    kIOReturnBusy, as msm waits for room. A BO is limited by the client's
    GPU address window, which Query reports as max_bo_bytes; the 256 MiB
    budget and the ABI's queue and size constants are gone.
  • 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>