chore(deck): Use more aggressive workaround on 64GB eMMC

This commit is contained in:
Kyle Gospodnetich 2023-08-15 13:20:03 -07:00
parent e0e4c7e22e
commit d40a22854a

View File

@ -53,9 +53,16 @@ if [[ ":Jupiter:" =~ ":$SYS_ID:" ]]; then
NEEDED_KARGS="$NEEDED_KARGS --append=initcall_blacklist=simpledrm_platform_driver_init"
fi
if [[ ! $KARGS =~ "default_ps_max_latency_us" ]] && grep -q '64GB' <<< $(lsblk -o MODEL); then
echo "64GB eMMC detected, adding workaround for firmware issue"
NEEDED_KARGS="$NEEDED_KARGS --append=nvme_core.default_ps_max_latency_us=5500"
if grep -q '64GB' <<< $(lsblk -o MODEL); then
if [[ ! $KARGS =~ "default_ps_max_latency_us" ]]; then
echo "64GB eMMC detected, adding default_ps_max_latency_us workaround for firmware issue"
NEEDED_KARGS="$NEEDED_KARGS --append=nvme_core.default_ps_max_latency_us=0"
fi
if [[ ! $KARGS =~ "pci_aspm" ]]; then
echo "64GB eMMC detected, adding pci_aspm workaround for firmware issue"
NEEDED_KARGS="$NEEDED_KARGS --append=pci_aspm=performance"
fi
fi
fi