USB: ci13xxx: Add extra allocation size to use APF feature for IN eps
APF feature requires the software to allocate additional 256
bytes for TX/IN buffers. This is required because optimized
pre-fetching makes hardware to read outside the allocated buffer.
To protect out of boundary access, SW needs to allocate an
extra 128 bytes or more to make sure the neighbouring region
is not protected by TZ or MSA. Introduce an extra_alloc_buf
in usb gadget which can indicate this extra allocation. Enable
this only if APF is enabled.
Change-Id: Ifff3c0c41b5cd4a326d721e8bacc66262d1985a5
Signed-off-by:
Sujeet Kumar <ksujeet@codeaurora.org>
Loading
Please register or sign in to comment