The Raspberry Pi Should See Much Better SPI Performance On Linux 5.4+

Written by Michael Larabel in Raspberry Pi on 25 September 2019 at 06:28 AM EDT. 3 Comments
RASPBERRY PI
The SPI (Serial Peripheral Interface) pull requests to the Linux kernel normally don't get us excited, but they do when it comes with word of big performance enhancements. There are several SPI performance improvements this round but exciting us the most is the work done on the Broadcom SPI driver for Raspberry Pi hardware.

The SPI changes for Linux 5.4 come with "a big performance enhancement" for the Raspberry Pi driver to help with performance for devices connected via SPI. The patches to the driver note that when an Ethernet chip was attached to the SPI controller, there was a 30us reduction in ping time with the optimizations and a 2% reduction in CPU time.

SPI displays and other devices connected via SPI should benefit as well with faster performance. The optimization principally comes down to clearing the RX FIFO and zero-filling the TX FIFO.

More details on this work within the SPI pull request that also notes Freescale driver work improving performance and other enhancements.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week