I use TX2, the bsp version is R32.3.1, I found memory leak when I modify spi clock rate. I use spidev test the test code like below. After test the Slab memory increase 2.5MB. I think there is something wrong with clock-tree subsystem. Please help me fix this issue, thanks.
#!/bin/bash echo "before test" cat /proc/meminfo | grep Slab for((i=0;i<10000;i++)) do ./spidev_test.out -D /dev/spidev0.1 -s 2000000 -p "1111111111" # 2Mbps ./spidev_test.out -D /dev/spidev0.1 -s 10000000 -p "1111111111" // 10Mbps b=$(( $i % 100 )) if [ $b -eq 0 ]; then echo "while count: $i" fi done echo "after test" cat /proc/meminfo | grep Slab