From a615b9d781d8170f2f6748eede953cc3f7c81637 Mon Sep 17 00:00:00 2001 From: nimlgen <138685161+nimlgen@users.noreply.github.com> Date: Sun, 8 Feb 2026 17:38:48 +0300 Subject: [PATCH] am: f8_mode for gfx94x only (#14620) --- tinygrad/runtime/support/am/ip.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tinygrad/runtime/support/am/ip.py b/tinygrad/runtime/support/am/ip.py index d068b1c777..eeefca2202 100644 --- a/tinygrad/runtime/support/am/ip.py +++ b/tinygrad/runtime/support/am/ip.py @@ -264,7 +264,8 @@ class AM_GFX(AM_IP): self.adev.regGRBM_CNTL.update(read_timeout=0xff, inst=xcc) for i in range(0, 16): self._grbm_select(vmid=i, inst=xcc) - self.adev.regSH_MEM_CONFIG.write(**({'initial_inst_prefetch':3} if self.adev.ip_ver[am.GC_HWIP][0]>=10 else {'retry_disable':1, 'f8_mode':1}), + self.adev.regSH_MEM_CONFIG.write(**({'initial_inst_prefetch':3} if self.adev.ip_ver[am.GC_HWIP][0]>=10 else {'retry_disable':1}), + **({'f8_mode':1} if self.adev.ip_ver[am.GC_HWIP][:2]==(9,4) else {}), address_mode=self.adev.soc.module.SH_MEM_ADDRESS_MODE_64, alignment_mode=self.adev.soc.module.SH_MEM_ALIGNMENT_MODE_UNALIGNED, inst=xcc) # Configure apertures: