> > On 7/22/22 03:19, Avri Altman wrote: > >>> Note: the maximum data buffer size supported by the UFSHCI > >>> specification is 65535 * 256 MiB or about 16 TiB. > > > > Can you help me find this limit in UFSHCI? > > From the UFSHCI 3.0 specification: > * PRDT length is a sixteen bit field so the maximum value is 65535 (entries). > * The maximum length of a single descriptor is 256 KiB. See also the DBC (Data > Byte Count) field. > > So the maximum amount of data that can be transferred at once is 65535 * > 256 KiB or about 16 GiB (and not what I wrote in my previous message). The transfer-length of rw10 is 2 bytes, and I am not even sure that rw16 support is mandatory. Maybe it would be more practical, instead of 16GB to use 255MiB instead? Thanks, Avri