mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 23:18:04 -05:00
am: mi300 48bit address space (#14004)
* am: mi300 48bit address space * fix
This commit is contained in:
@@ -57,8 +57,8 @@ class AM_GMC(AM_IP):
|
|||||||
|
|
||||||
self.trans_futher = self.adev.ip_ver[am.GC_HWIP] < (10, 0, 0)
|
self.trans_futher = self.adev.ip_ver[am.GC_HWIP] < (10, 0, 0)
|
||||||
|
|
||||||
# GFX11/GFX12 has 44-bit address space
|
# mi3xx has 48-bit, others have 44-bit address space
|
||||||
self.address_space_mask = (1 << 44) - 1
|
self.address_space_mask = (1 << (48 if self.adev.ip_ver[am.GC_HWIP][:2] == (9,4) else 44)) - 1
|
||||||
|
|
||||||
self.memscratch_xgmi_paddr = self.adev.paddr2xgmi(self.adev.mm.palloc(0x1000, zero=False, boot=True))
|
self.memscratch_xgmi_paddr = self.adev.paddr2xgmi(self.adev.mm.palloc(0x1000, zero=False, boot=True))
|
||||||
self.dummy_page_xgmi_paddr = self.adev.paddr2xgmi(self.adev.mm.palloc(0x1000, zero=False, boot=True))
|
self.dummy_page_xgmi_paddr = self.adev.paddr2xgmi(self.adev.mm.palloc(0x1000, zero=False, boot=True))
|
||||||
|
|||||||
Reference in New Issue
Block a user