Skip to content
Commit 766da658 authored by Ang Tien Sung's avatar Ang Tien Sung Committed by Liwei Song
Browse files

HSD #1509151525: fpga: altera-cvp: Truncated bitstream error support

commit e662d33496fc1798c73603b5a8a90baba9557704 from
https://github.com/altera-opensource/linux-socfpga.git

 socfpga-5.15.100-lts.

To support the error handling of a truncated bitstream sent.
The current AIB CvP firmware is not capable of handling a
data stream smaller than 4096bytes. The firmware's limitation
causes a hung-up as it's DMA engine waits forever for the
completion of the instructed 4096bytes.
To resolve this design limitation, both firmware and CvP
driver made several changes. At the CvP driver, we just
have to ensure that anything lesser than 4096bytes are
padded with extra bytes. The CvP will then, initiate the
tear-down by clearing the START_XFER and CVP_CONFIG bits.
We should also check for CVP_ERROR during the CvP completion.
A send_buf which is always 4096bytes is used to copy the
data during every transaction.

Signed-off-by: default avatarAng Tien Sung <tien.sung.ang@intel.com>
Signed-off-by: default avatarLiwei Song <liwei.song@windriver.com>
parent cd7bebc3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment