Skip to content

Commit 4cf2b68

Browse files
authored
am_smi: fix init for newer versions (tinygrad#9559)
1 parent a6a5c0a commit 4cf2b68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: extra/amdpci/am_smi.py

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ def _init_from_d0(self):
7979
self.psp:AM_PSP = AM_PSP(self)
8080
self.smu:AM_SMU = AM_SMU(self)
8181

82+
for ip in [self.soc, self.gmc, self.ih, self.psp, self.smu]: ip.init_sw()
83+
8284
def read_pci_state(self):
8385
with open(f"/sys/bus/pci/devices/{self.pcibus}/power_state", "r") as f: return f.read().strip().rstrip()
8486

0 commit comments

Comments
 (0)