Skip to content

Commit 825fbaf

Browse files
committed
m1n1.agx.initdata: Split buffer manager mappings between GPU/FW
Signed-off-by: Asahi Lina <[email protected]>
1 parent 817b48d commit 825fbaf

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

proxyclient/m1n1/agx/initdata.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,12 @@ def build_initdata(agx):
482482
regionB.unk_1c8 = agx.kobj.new_buf(0x1000, "RegionB.unkptr_1c8").push()
483483

484484
# Size: 0x4000
485-
regionB.buffer_mgr_ctl = agx.klow.new(InitData_BufferMgrCtl, track=True).push()
486-
regionB.buffer_mgr_ctl_gpu_addr = regionB.buffer_mgr_ctl._addr
485+
regionB.buffer_mgr_ctl = agx.kshared.new(InitData_BufferMgrCtl, track=True).push()
486+
487+
agx.uat.iomap_at(0, 0x420000000, regionB.buffer_mgr_ctl._paddr_align, 0x4000,
488+
AttrIndex=MemoryAttr.Shared, AP=0, UXN=1, PXN=1)
489+
490+
regionB.buffer_mgr_ctl_gpu_addr = 0x420000000 + (regionB.buffer_mgr_ctl._addr & 0x3fff)
487491

488492
regionB.unk_6a80 = 0
489493
regionB.gpu_idle = 0

0 commit comments

Comments
 (0)