Home
last modified time | relevance | path

Searched hist:"83 ef8698f9d1477c892cad15b4e48574ed634903" (Results 1 – 1 of 1) sorted by relevance

/rk3399_ARM-atf/drivers/ufs/
H A Dufs.c83ef8698f9d1477c892cad15b4e48574ed634903 Wed Feb 22 09:41:18 UTC 2023 Jorge Troncoso <jatron@google.com> fix(ufs): flush the entire PRDT

Previously, if the image being read exceeded 12,800 KB (or 50 PRDT
entries of size 256 KB), the UFS driver would not flush the entire
Physical Region Descriptor Table (PRDT). This would cause the UFS host
controller to read empty PRDT entries, which eventually would make the
system crash. This change updates the UFS driver to flush the entire
PRDT, irrespective of the size of the image being read.

This change also throws an error if the memory allocated for UFS
descriptors is not sufficient to hold the entire Physical Region
Descriptor Table (PRDT).

Signed-off-by: Jorge Troncoso <jatron@google.com>
Change-Id: I291dc62748992481be3cc156ce1474a6e3990ea9