From 81d9bef7e6c95d4be648e994de7960f46a23a078 Mon Sep 17 00:00:00 2001 From: Skylar Chang Date: Tue, 12 Apr 2016 16:53:17 -0700 Subject: msm: ipa3: use user parameter for GSI ring len Calculate GSI ring length based on the input parameter to setup pipe API. Change-Id: I151400624f374262a955a04d211a96c43feb6d98 CRs-Fixed: 996292 Acked-by: Ady Abraham Signed-off-by: Skylar Chang --- include/linux/ipa.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/linux') diff --git a/include/linux/ipa.h b/include/linux/ipa.h index 3a87177b623f..0dd2f0bf9c23 100644 --- a/include/linux/ipa.h +++ b/include/linux/ipa.h @@ -524,7 +524,11 @@ struct ipa_ext_intf { * in system-BAM mode * @ipa_ep_cfg: IPA EP configuration * @client: the type of client who "owns" the EP - * @desc_fifo_sz: size of desc FIFO + * @desc_fifo_sz: size of desc FIFO. This number is used to allocate the desc + * fifo for BAM. For GSI, this size is used by IPA driver as a + * baseline to calculate the GSI ring size in the following way: + * For PROD pipes, GSI ring is 4 * desc_fifo_sz. + For PROD pipes, GSI ring is 2 * desc_fifo_sz. * @priv: callback cookie * @notify: callback * priv - callback cookie -- cgit v1.2.3