author | Peter Ujfalusi <peter.ujfalusi@ti.com> | |
Fri, 12 Oct 2018 09:56:13 +0000 (12:56 +0300) | ||
committer | Tero Kristo <t-kristo@ti.com> | |
Tue, 16 Oct 2018 09:10:41 +0000 (12:10 +0300) | ||
commit | 5194c913786c35c6301e6b527be09a77c9d4da72 | |
tree | e6498fd1a3704201924e5b9cd2f730383e4c5c36 | tree | snapshot (tar.xz tar.gz zip) |
parent | 5ee9dcf6f9cccb2ad2ef0121403a8114ba3d07fe | commit | diff |
soc: ti: cppi5: Fix TR packet size calculation
The correct way to calculate size needed for a given TR descriptor:
1 x tr_size : the first 16 bytes is used by the packet info block +
tr_count x tr_size : Transfer Request Records +
tr_count x sizeof(struct cppi5_tr_resp) : Transfer Response Records
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
The correct way to calculate size needed for a given TR descriptor:
1 x tr_size : the first 16 bytes is used by the packet info block +
tr_count x tr_size : Transfer Request Records +
tr_count x sizeof(struct cppi5_tr_resp) : Transfer Response Records
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
include/linux/soc/ti/cppi5.h | diff | blob | history |