Skip to content

Commit 58f477a

Browse files
committed
m1n1.fw.agx: Misc initdata/etc fixes
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent 3d28ac4 commit 58f477a

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

proxyclient/m1n1/agx/initdata.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ def iomap(phys, size, range_size, rw):
100100
gpu_fast_die0_sensor_mask64_alt = 0x12,
101101
gpu_fast_die0_sensor_present = 0x01,
102102
shared1_tab = [
103-
-1, 0x7282, 0x50ea, 0x370a, 0x25be, 0x1c1f, 0x16fb
104-
] + ([-1] * 10),
103+
0x7282, 0x50ea, 0x370a, 0x25be, 0x1c1f, 0x16fb
104+
] + ([-1] * 9) + [0xffff],
105105
shared1_a4 = 0xffff,
106106
shared2_tab = [0x800, 0x1555, -1, -1, -1, -1, -1, -1, 0, 0],
107-
shared2_unk_508 = 0xc0007,
107+
shared2_unk_508 = 0xc00007,
108108
unk_3cf4 = [1000.0, 0, 0, 0, 0, 0, 0, 0],
109109
unk_3d14 = [45.0, 0, 0, 0, 0, 0, 0, 0],
110110
unk_118ec = None,
@@ -136,7 +136,7 @@ def iomap(phys, size, range_size, rw):
136136
gpu_fast_die0_sensor_mask64 = 0x80808080,
137137
gpu_fast_die0_sensor_mask64_alt = 0x90909090,
138138
gpu_fast_die0_sensor_present = 0x0f,
139-
shared1_tab = [0] + ([0xffff] * 16),
139+
shared1_tab = [0xffff] * 16,
140140
shared1_a4 = 0xffff,
141141
shared2_tab = [-1, -1, -1, -1, 0x2aa, 0xaaa, -1, -1, 0, 0],
142142
shared2_unk_508 = 0xcc00001,
@@ -177,7 +177,7 @@ def iomap(phys, size, range_size, rw):
177177
gpu_fast_die0_sensor_mask64 = 0x8080808080808080,
178178
gpu_fast_die0_sensor_mask64_alt = 0x9090909090909090,
179179
gpu_fast_die0_sensor_present = 0xff,
180-
shared1_tab = [0] + ([0xffff] * 16),
180+
shared1_tab = [0xffff] * 16,
181181
shared1_a4 = 0xffff,
182182
shared2_tab = [-1, -1, -1, -1, 0x2aa, 0xaaa, -1, -1, 0, 0],
183183
shared2_unk_508 = 0xcc00001,
@@ -220,7 +220,7 @@ def iomap(phys, size, range_size, rw):
220220
gpu_fast_die0_sensor_mask64 = 0x6800,
221221
gpu_fast_die0_sensor_mask64_alt = 0x6800,
222222
gpu_fast_die0_sensor_present = 0x02,
223-
shared1_tab = [0] + ([0xffff] * 16),
223+
shared1_tab = [0xffff] * 16,
224224
shared1_a4 = 0,
225225
shared2_tab = [-1, -1, -1, -1, -1, -1, -1, -1, 0xaa5aa, 0],
226226
shared2_unk_508 = 0xc00000,

proxyclient/m1n1/fw/agx/cmdqueue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class EventControl(ConstructClass):
8383
"in_list" / Int32ul,
8484
Ver("G >= G14", "unk_98_g14_0" / HexDump(Bytes(0x14))),
8585
"list_head" / LinkedListHead,
86-
Ver("G >= G14", "unk_a8_g14_0" / Padding(4)),
86+
Ver("G >= G14", "unk_a8_g14_0" / ZPadding(4)),
8787
Ver("V >= V13_0B4", "unk_buf" / EventControlUnkBuf),
8888
)
8989

proxyclient/m1n1/fw/agx/initdata.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(self):
3838

3939
class AGXHWDataShared1(ConstructClass):
4040
subcon = Struct(
41-
"table" / Array(17, Int32sl),
41+
"table" / Array(16, Int32sl),
4242
"unk_44" / HexDump(Bytes(0x60)),
4343
"unk_a4" / Int32ul,
4444
"unk_a8" / Int32ul,
@@ -635,6 +635,7 @@ class AGXHWDataA(ConstructClass):
635635
Ver("V < V13_0B4", "unk_1638" / Array(2, Int32ul)),
636636
"unk_1640" / HexDump(Bytes(0x2000)),
637637
"unk_3640" / Int32ul,
638+
"unk_3644" / Int32ul,
638639
"hws1" / AGXHWDataShared1,
639640
Ver("V >= V13_0B4", "unk_pad1" / HexDump(Bytes(0x20))),
640641
"hws2" / AGXHWDataShared2,
@@ -951,6 +952,7 @@ def __init__(self, sgx, chip_info):
951952
self.unk_1638 = [0, 1]
952953
self.unk_1640 = bytes(0x2000)
953954
self.unk_3640 = 0
955+
self.unk_3644 = 0xffffffff
954956
self.hws1 = AGXHWDataShared1(chip_info)
955957
self.unk_pad1 = bytes(0x20)
956958
self.hws2 = AGXHWDataShared2(chip_info)
@@ -1692,6 +1694,7 @@ class InitData_RegionC(ConstructClass):
16921694
Ver("V >= V13_0B4", "unk_89f4_0" / HexDump(Bytes(0x8))),
16931695
Ver("V >= V13_0B4", "unk_89f4_8" / Int32ul),
16941696
Ver("V >= V13_0B4", "unk_89f4_c" / HexDump(Bytes(0x50))),
1697+
"unk_89f4" / Int32ul,
16951698
"hws1" / AGXHWDataShared1,
16961699
"hws2" / AGXHWDataShared2,
16971700
"hws3" / AGXHWDataShared3,
@@ -1814,6 +1817,7 @@ def __init__(self, sgx, chip_info):
18141817
self.unk_89f4_0 = bytes(8)
18151818
self.unk_89f4_8 = 1
18161819
self.unk_89f4_c = bytes(0x50)
1820+
self.unk_89f4 = 0
18171821
self.hws1 = AGXHWDataShared1(chip_info)
18181822
self.hws2 = AGXHWDataShared2(chip_info)
18191823
self.hws3 = AGXHWDataShared3(chip_info)

proxyclient/m1n1/fw/agx/microsequence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ class StartTACmdStruct2(ConstructClass):
491491
"unk_f8" / Int64ul,
492492
"unk_100" / Array(3, Hex(Int64ul)),
493493
"unk_118" / Int32ul,
494-
Ver("G >= G14", Padding(8 * 9)),
494+
Ver("G >= G14", ZPadding(8 * 9)),
495495
)
496496

497497
class StartTACmdStruct3(ConstructClass):

0 commit comments

Comments
 (0)