m1n1.agx: Increase available VM size and reduce usage

Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
Asahi Lina 2023-02-25 16:06:34 +09:00
parent 25813d91b4
commit b7fb8d98d8
2 changed files with 12 additions and 12 deletions

View file

@ -59,20 +59,20 @@ class AGX:
self.asc.mgmt.verbose = 0
self.kobj = GPUAllocator(self, "kernel",
self.kern_va_base, 0x10000000,
AttrIndex=MemoryAttr.Shared, AP=1, guard_pages=4)
self.kern_va_base, 0x20000000,
AttrIndex=MemoryAttr.Shared, AP=1, guard_pages=1)
self.cmdbuf = GPUAllocator(self, "cmdbuf",
self.kern_va_base + 0x10000000, 0x10000000,
AttrIndex=MemoryAttr.Shared, AP=0, guard_pages=4)
self.kern_va_base + 0x20000000, 0x20000000,
AttrIndex=MemoryAttr.Shared, AP=0, guard_pages=1)
self.kshared = GPUAllocator(self, "kshared",
self.kern_va_base + 0x20000000, 0x10000000,
AttrIndex=MemoryAttr.Shared, AP=1, guard_pages=4)
self.kern_va_base + 0x40000000, 0x20000000,
AttrIndex=MemoryAttr.Shared, AP=1, guard_pages=1)
self.kshared2 = GPUAllocator(self, "kshared2",
self.kern_va_base + 0x30000000, 0x100000,
AttrIndex=MemoryAttr.Shared, AP=0, PXN=1, guard_pages=4)
self.kern_va_base + 0x60000000, 0x100000,
AttrIndex=MemoryAttr.Shared, AP=0, PXN=1, guard_pages=1)
self.io_allocator = Heap(self.kern_va_base + 0x38000000,
self.kern_va_base + 0x40000000,
self.io_allocator = Heap(self.kern_va_base + 0x68000000,
self.kern_va_base + 0x70000000,
block=self.PAGE_SIZE)
self.mon = None

View file

@ -32,11 +32,11 @@ class GPUContext:
# 32K VA pages since buffer manager needs that
self.uobj = GPUAllocator(agx, "Userspace", 0x1600000000, 0x100000000, ctx=None,
guard_pages=16,
guard_pages=1,
va_block=32768, nG=1, AP=0, PXN=1, UXN=1)
self.gobj = GPUAllocator(agx, "GEM", 0x1500000000, 0x100000000, ctx=None,
guard_pages=16, nG=1, AP=0, PXN=1, UXN=1)
guard_pages=1, nG=1, AP=0, PXN=1, UXN=1)
self.pipeline_base = 0x1100000000
self.pipeline_size = 1 << 32