From: Greg KH <gregkh@linuxfoundation.org>
To: Srikanth Chary Chennoju <srikanth.chary-chennoju@amd.com>
Cc: Thinh.Nguyen@synopsys.com, m.grzeschik@pengutronix.de,
Chris.Wulff@biamp.com, tiwai@suse.de, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org, punnaiah.choudary.kalluri@amd.com
Subject: Re: [PATCH 3/3] usb: gadget: f_sourcesink: Addition of SSP endpoint companion for Isochronous transfers
Date: Fri, 4 Jul 2025 14:03:59 +0200 [thread overview]
Message-ID: <2025070432-mustard-mongoose-1716@gregkh> (raw)
In-Reply-To: <20250704114013.3396795-4-srikanth.chary-chennoju@amd.com>
On Fri, Jul 04, 2025 at 05:10:13PM +0530, Srikanth Chary Chennoju wrote:
> This patch is created to support super speed plus endpoint for
> Isochronous transfers. Now super speed endpoint companion is
> accompanied by super speed plus endpoint companion.
> With this change we could see the Isoc IN and OUT performance
> reaching to ~749MB/sec which is 96K per uframe.
> The performance numbers are confirmed through Lecroy trace.
You do have a full 72 characters wide, you can use it :)
>
> Signed-off-by: Srikanth Chary Chennoju <srikanth.chary-chennoju@amd.com>
> ---
> drivers/usb/gadget/function/f_sourcesink.c | 23 ++++++++++++++++++++--
> 1 file changed, 21 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/usb/gadget/function/f_sourcesink.c b/drivers/usb/gadget/function/f_sourcesink.c
> index 84f3b3bc7669..6499e95e0e9c 100644
> --- a/drivers/usb/gadget/function/f_sourcesink.c
> +++ b/drivers/usb/gadget/function/f_sourcesink.c
> @@ -232,6 +232,12 @@ static struct usb_ss_ep_comp_descriptor ss_iso_source_comp_desc = {
> .wBytesPerInterval = cpu_to_le16(1024),
> };
>
> +static struct usb_ssp_isoc_ep_comp_descriptor ssp_iso_source_comp_desc = {
> + .bLength = USB_DT_SSP_ISOC_EP_COMP_SIZE,
> + .bDescriptorType = USB_DT_SSP_ISOC_ENDPOINT_COMP,
> + .dwBytesPerInterval = cpu_to_le32(1024),
> +};
> +
> static struct usb_endpoint_descriptor ss_iso_sink_desc = {
> .bLength = USB_DT_ENDPOINT_SIZE,
> .bDescriptorType = USB_DT_ENDPOINT,
> @@ -250,6 +256,12 @@ static struct usb_ss_ep_comp_descriptor ss_iso_sink_comp_desc = {
> .wBytesPerInterval = cpu_to_le16(1024),
> };
>
> +static struct usb_ssp_isoc_ep_comp_descriptor ssp_iso_sink_comp_desc = {
> + .bLength = USB_DT_SSP_ISOC_EP_COMP_SIZE,
> + .bDescriptorType = USB_DT_SSP_ISOC_ENDPOINT_COMP,
> + .dwBytesPerInterval = cpu_to_le32(1024),
> +};
> +
> static struct usb_descriptor_header *ss_source_sink_descs[] = {
> (struct usb_descriptor_header *) &source_sink_intf_alt0,
> (struct usb_descriptor_header *) &ss_source_desc,
> @@ -264,8 +276,10 @@ static struct usb_descriptor_header *ss_source_sink_descs[] = {
> (struct usb_descriptor_header *) &ss_sink_comp_desc,
> (struct usb_descriptor_header *) &ss_iso_source_desc,
> (struct usb_descriptor_header *) &ss_iso_source_comp_desc,
> + (struct usb_descriptor_header *)&ssp_iso_source_comp_desc,
> (struct usb_descriptor_header *) &ss_iso_sink_desc,
> (struct usb_descriptor_header *) &ss_iso_sink_comp_desc,
> + (struct usb_descriptor_header *)&ssp_iso_sink_comp_desc,
Odd spacing :(
Please follow the format that was previously there.
> NULL,
> };
>
> @@ -428,7 +442,7 @@ sourcesink_bind(struct usb_configuration *c, struct usb_function *f)
> */
> ss_iso_source_desc.wMaxPacketSize = ss->isoc_maxpacket;
> ss_iso_source_desc.bInterval = ss->isoc_interval;
> - ss_iso_source_comp_desc.bmAttributes = ss->isoc_mult;
> + ss_iso_source_comp_desc.bmAttributes = 0x80 | ss->isoc_mult;
What is 0x80 for? Is that a #define somewhere?
> ss_iso_source_comp_desc.bMaxBurst = ss->isoc_maxburst;
> ss_iso_source_comp_desc.wBytesPerInterval = ss->isoc_maxpacket *
> (ss->isoc_mult + 1) * (ss->isoc_maxburst + 1);
> @@ -437,12 +451,17 @@ sourcesink_bind(struct usb_configuration *c, struct usb_function *f)
>
> ss_iso_sink_desc.wMaxPacketSize = ss->isoc_maxpacket;
> ss_iso_sink_desc.bInterval = ss->isoc_interval;
> - ss_iso_sink_comp_desc.bmAttributes = ss->isoc_mult;
> + ss_iso_sink_comp_desc.bmAttributes = 0x80 | ss->isoc_mult;
Same here.
> ss_iso_sink_comp_desc.bMaxBurst = ss->isoc_maxburst;
> ss_iso_sink_comp_desc.wBytesPerInterval = ss->isoc_maxpacket *
> (ss->isoc_mult + 1) * (ss->isoc_maxburst + 1);
> ss_iso_sink_desc.bEndpointAddress = fs_iso_sink_desc.bEndpointAddress;
>
> + ssp_iso_source_comp_desc.dwBytesPerInterval = ss->isoc_maxpacket *
> + (ss->isoc_mult + 1) * (ss->isoc_maxburst + 1) * 2;
> + ssp_iso_sink_comp_desc.dwBytesPerInterval = ss->isoc_maxpacket *
> + (ss->isoc_mult + 1) * (ss->isoc_maxburst + 1) * 2;
Why * 2?
thanks,
greg k-h
next prev parent reply other threads:[~2025-07-04 12:04 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-04 11:40 [PATCH 0/3] Add support for Superspeed plus EndPoint for Bulk and Isochronous transfers Srikanth Chary Chennoju
2025-07-04 11:40 ` [PATCH 1/3] usb:gadget:zero: support for super speed plus Srikanth Chary Chennoju
2025-07-04 12:04 ` Greg KH
2025-07-07 10:41 ` Chary Chennoju, Srikanth
2025-08-11 15:35 ` Chary Chennoju, Srikanth
2025-08-11 15:58 ` Greg KH
2025-07-04 11:40 ` [PATCH 2/3] usb: gadget: f_sourcesink support for maxburst for bulk transfers Srikanth Chary Chennoju
2025-07-04 13:47 ` Alan Stern
2025-07-07 10:49 ` Chary Chennoju, Srikanth
2025-07-07 13:45 ` Alan Stern
2025-07-07 14:01 ` Chary Chennoju, Srikanth
2025-08-11 15:36 ` Chary Chennoju, Srikanth
2025-08-11 16:10 ` Alan Stern
2025-07-04 11:40 ` [PATCH 3/3] usb: gadget: f_sourcesink: Addition of SSP endpoint companion for Isochronous transfers Srikanth Chary Chennoju
2025-07-04 12:03 ` Greg KH [this message]
2025-07-07 10:38 ` Chary Chennoju, Srikanth
2025-08-11 15:37 ` Chary Chennoju, Srikanth
2025-07-05 3:02 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2025070432-mustard-mongoose-1716@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=Chris.Wulff@biamp.com \
--cc=Thinh.Nguyen@synopsys.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=m.grzeschik@pengutronix.de \
--cc=punnaiah.choudary.kalluri@amd.com \
--cc=srikanth.chary-chennoju@amd.com \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox