However, we quickly noticed an issue: the SPI data write speed is extremely slow, causing the image refresh to take about one minute (while it only takes around five seconds on other platforms). During SPI writes, dmesg continuously reports the following error messages:
[ 662.625431] tcc-spi 16900000.spi: [ERROR][SPI] Exceeded maximum data length [max: 8188, req: 1]
[ 662.634244] tcc-spi 16900000.spi: [ERROR][SPI] Exceeded maximum data length [max: 8188, req: 1]
[ 662.643054] tcc-spi 16900000.spi: [ERROR][SPI] Exceeded maximum data length [max: 8188, req: 1]
[ 662.651866] tcc-spi 16900000.spi: [ERROR][SPI] Exceeded maximum data length [max: 8188, req: 1]
[ 662.660677] tcc-spi 16900000.spi: [ERROR][SPI] Exceeded maximum data length [max: 8188, req: 1]
[ 662.669488] tcc-spi 16900000.spi: [ERROR][SPI] Exceeded maximum data length [max: 8188, req: 1]
[ 662.678299] tcc-spi 16900000.spi: [ERROR][SPI] Exceeded maximum data length [max: 8188, req: 1]
Since I don’t have access to the kernel source code, I can’t identify the root cause. As we need to showcase this at an exhibition at the end of November, may I ask if you could help us resolve this issue? Thank you!
I’m use Ubuntu 22.04 image which from your download page. it’s kernel 5.10.
Which kernel and dts is the suitable for my case, and any suggestion for the quickly issue fix?
No, that video was recorded after waiting for almost a minute (you can think of it as an edited version), because the initial waiting time was too long and not suitable for a demo.
I’m not referring to the image refresh speed — the issue is that writing data to the e-paper through SPI takes about one minute, and only after that does the screen start refreshing.
During that one minute, it keeps reporting the “SPI Error” message mentioned above.
I’ll download the kernel and try to investigate the driver issue myself. If you have any suggestions or directions, please feel free to share them. Otherwise, it’ll be difficult for me to demo this to the customer. Thank you.
I already fix this issue!
It seems that the D3-G indeed has poor performance when processing SPI data written one byte at a time (it appears to be a DMA issue). After I changed it to write 4096 bytes of data at once, the e-paper display worked normally. Anyway, thank you all!