Skip to content

Commit 0ebd774

Browse files
committed
drm/asahi: hw/t602x: Increase meta/preempt sizes for G14D
meta2,meta3 confirmed, meta4 conservative guess (it's small anyway). Not sure yet if max_splits also needs to be doubled. Compute preempt just conservatively doubled. Since that one is a bit larger, use the smaller size for <= G14C. Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent d38b3c8 commit 0ebd774

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

drivers/gpu/drm/asahi/hw/t602x.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ pub(crate) const HWCONFIG_T6022: super::HwConfig = HwConfig {
6565
preempt1_size: 0x540,
6666
preempt2_size: 0x280,
6767
preempt3_size: 0x40,
68-
compute_preempt1_size: 0x25980, // CHECK for T6022
68+
compute_preempt1_size: 0x25980 * 2, // Conservative guess
6969
clustering: Some(HwClusteringConfig {
7070
meta1_blocksize: 0x44,
71-
meta2_size: 0xc0 * 8,
72-
meta3_size: 0x280 * 8,
73-
meta4_size: 0x10 * 64,
71+
meta2_size: 0xc0 * 16,
72+
meta3_size: 0x280 * 16,
73+
meta4_size: 0x10 * 128,
7474
max_splits: 64,
7575
}),
7676

@@ -155,6 +155,7 @@ pub(crate) const HWCONFIG_T6021: super::HwConfig = HwConfig {
155155

156156
num_dies: 1,
157157
max_num_clusters: 4,
158+
compute_preempt1_size: 0x25980,
158159
unk_hws2_4: Some(f32!([1.0, 0.8, 0.2, 0.9, 0.1, 0.25, 0.7, 0.9])),
159160
fast_sensor_mask: [0x40005000c000d00, 0],
160161
fast_sensor_mask_alt: [0x140015001d001d00, 0],

0 commit comments

Comments
 (0)