Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8644c963 authored by Jack Pham's avatar Jack Pham
Browse files

usb: f_gsi: Increase ADPL buffer depth to 30



During high embedded throughput workloads having ADPL enabled
may impact performance as it becomes a bottleneck for IPA if
log packets are not drained quickly enough. To alleviate this,
increase the number of buffers allocated for the ADPL GSI pipe
to 30 allow for the USB host to consume log packets from the
ADPL endpoint as fast as possible.

Change-Id: I33102608367e71a4e75837f8d2a396f20f386b7a
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent c0a8ba67
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3153,8 +3153,8 @@ static int gsi_bind(struct usb_configuration *c, struct usb_function *f)
		info.ss_desc_hdr = qdss_gsi_ss_data_only_desc;
		info.in_epname = "gsi-epin";
		info.out_epname = "";
		info.in_req_buf_len = 16384;
		info.in_req_num_buf = GSI_NUM_IN_BUFFERS;
		info.in_req_buf_len = GSI_IN_DPL_BUFF_SIZE;
		info.in_req_num_buf = GSI_NUM_IN_DPL_BUFFERS;
		info.notify_buf_len = sizeof(struct usb_cdc_notification);
		break;
	case IPA_USB_GPS:
+2 −0
Original line number Diff line number Diff line
@@ -31,10 +31,12 @@

#define GSI_NUM_IN_RNDIS_BUFFERS 50
#define GSI_NUM_IN_RMNET_BUFFERS 50
#define GSI_NUM_IN_DPL_BUFFERS 30
#define GSI_NUM_IN_BUFFERS 15
#define GSI_IN_BUFF_SIZE 2048
#define GSI_IN_RMNET_BUFF_SIZE 31744
#define GSI_IN_RNDIS_BUFF_SIZE 16384
#define GSI_IN_DPL_BUFF_SIZE 16384
#define GSI_NUM_OUT_BUFFERS 14
#define GSI_OUT_AGGR_SIZE 24576