Add basic optimisations for ODROID N2 / G12b family (#2124)
Based on 5030cef51c
This commit is contained in:
parent
7a59407557
commit
dd96b62275
@ -98,6 +98,17 @@ prepare_board() {
|
||||
echo 8 >/proc/irq/$(awk -F":" "/ethernet/ {print \$1}" </proc/interrupts | sed 's/\ //g' | head -1)/smp_affinity 2>/dev/null
|
||||
echo 7 >/sys/class/net/eth0/queues/rx-0/rps_cpus
|
||||
;;
|
||||
meson-g12b) # S922X/A311D: ODROID N2, possibly VIM3, cpu0/cpu1 are the little ones
|
||||
# MMC on cpu1, USB3 on cpu2, Ethernet on cpu3, rdma on cpu4, vsync on cpu5
|
||||
for i in $(awk -F':' '/mmc/{print $1}' </proc/interrupts | sed 's/\ //g'); do
|
||||
echo 1 >/proc/irq/$i/smp_affinity_list
|
||||
done
|
||||
echo 2 >/proc/irq/$(awk -F":" "/xhci-hcd/ {print \$1}" </proc/interrupts | sed 's/\ //g')/smp_affinity_list
|
||||
echo 3 >/proc/irq/$(awk -F":" "/eth0/ {print \$1}" </proc/interrupts | sed 's/\ //g')/smp_affinity_list
|
||||
# mainline kernel might lack those
|
||||
[[ -n $(cat /proc/interrupts | grep "rdma") ]] && echo 4 >/proc/irq/$(awk -F":" "/rdma/ {print \$1}" </proc/interrupts | sed 's/\ //g')/smp_affinity_list
|
||||
[[ -n $(cat /proc/interrupts | grep "osd-vsync") ]] echo 5 >/proc/irq/$(awk -F":" "/ osd-vsync/ {print \$1}" </proc/interrupts | sed 's/\ //g')/smp_affinity_list
|
||||
;;
|
||||
mvebu*) # Clearfog/Turris/Helios4/Espressobin: Send network IRQs to cpu1 on both kernels
|
||||
for i in $(awk -F':' '/mwlwifi|mvneta|eth0/{print $1}' /proc/interrupts | sed 's/\ //g'); do
|
||||
echo 2 >/proc/irq/$i/smp_affinity
|
||||
|
||||
Loading…
Reference in New Issue
Block a user