[Zuma] set mte_tcf_preferred to sync for little and mid cores

SYNC mode increases report quality. It slightly degrades performance
over ASYNC, but for early dogfooding we value debuggability over
performance, as performance is not representative yet.

SYNC is prohibitively slow on the big core.

Test: cat /sys/devices/system/cpu/cpu?/mte_tcf_preferred
Bug: 239832365
Change-Id: I71f552898808ffceba13de74526b7e50538e290f
This commit is contained in:
Florian Mayer 2023-01-31 17:00:38 -08:00
parent 9b6a17e071
commit 0a55c41d15

View file

@ -316,6 +316,20 @@ on init
chown system system /sys/devices/platform/13120000.pcie/link_stats/link_recovery_failures
chown system system /sys/devices/platform/13120000.pcie/link_stats/link_up_failures
# Write MTE config
# Little Cores:
write /sys/devices/system/cpu/cpu0/mte_tcf_preferred sync
write /sys/devices/system/cpu/cpu1/mte_tcf_preferred sync
write /sys/devices/system/cpu/cpu2/mte_tcf_preferred sync
write /sys/devices/system/cpu/cpu3/mte_tcf_preferred sync
# Mid Cores:
write /sys/devices/system/cpu/cpu4/mte_tcf_preferred sync
write /sys/devices/system/cpu/cpu5/mte_tcf_preferred sync
write /sys/devices/system/cpu/cpu6/mte_tcf_preferred sync
write /sys/devices/system/cpu/cpu7/mte_tcf_preferred sync
# Big Core: sync more performance is prohibitively bad
write /sys/devices/system/cpu/cpu8/mte_tcf_preferred asymm
on post-fs
# Ensure device is ready and start storageproxyd
wait /dev/sg1