Skip to content

Commit f986241

Browse files
hoshinolinamarcan
authored andcommitted
tunables_static: Add t600x GPU tunables
Signed-off-by: Asahi Lina <[email protected]>
1 parent e6ffbb0 commit f986241

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

src/tunables_static.c

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,23 @@ struct entry t8103_agx_tunables[] = {
2626
{0x800, 0x100, 0x100}, {-1, 0, 0},
2727
};
2828

29+
// TODO: check masks
30+
struct entry t600x_agx_tunables[] = {
31+
{0x0, 0x1, 0x1},
32+
{0x10, 0xfff0000, 0xd0000},
33+
{0x14, 0x3, 0x1},
34+
{0x18, 0x3, 0x1},
35+
{0x1c, 0x3, 0x3},
36+
{0x20, 0x3, 0x3},
37+
{0x24, 0x3, 0x3},
38+
{0x28, 0x3, 0x3},
39+
{0x2c, 0x3, 0x3},
40+
{0x400, 0x400103ff, 0x40010001},
41+
{0x600, 0x1ffffff, 0x1ffffff},
42+
{0x800, 0x100, 0x100},
43+
{-1, 0, 0},
44+
};
45+
2946
static void tunables_apply(u64 base, struct entry *entry)
3047
{
3148
while (entry->offset != UINT32_MAX) {
@@ -59,6 +76,11 @@ int tunables_apply_static(void)
5976
case T8103:
6077
ret |= power_and_apply("/arm-io/sgx", 0x205000000, t8103_agx_tunables);
6178
break;
79+
case T6000:
80+
case T6001:
81+
case T6002:
82+
ret |= power_and_apply("/arm-io/sgx", 0x405000000, t600x_agx_tunables);
83+
break;
6284
default:
6385
break;
6486
}

0 commit comments

Comments
 (0)