From: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
To: Felipe Balbi <balbi@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-usb@vger.kernel.org
Cc: John Youn <John.Youn@synopsys.com>,
Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Subject: [PATCH 0/3] usb: dwc3: gadget: Reduce register read/write operations
Date: Mon, 29 Nov 2021 18:53:03 -0800 [thread overview]
Message-ID: <cover.1638240306.git.Thinh.Nguyen@synopsys.com> (raw)
Depends on the device platform, a register read/write may take a few
microseconds to complete. A register read on a HAPS platform takes ~2us where
as register write takes less than 1us. These delays impact performance of small
transfers or interface(s) with many endpoints such as UASP interface. For large
transfer size and low rate of events generated, this series does not make much
of a difference.
This series avoids register read/write operations where they are not needed.
On the HAPS platform with UASP in SSP Gen 2x2 speed, we observed almost double
in performance speed when testing 4KB transfers reading and writing.
Thinh Nguyen (3):
usb: dwc3: gadget: Skip checking Update Transfer status
usb: dwc3: gadget: Ignore Update Transfer cmd params
usb: dwc3: gadget: Skip reading GEVNTSIZn
drivers/usb/dwc3/gadget.c | 33 ++++++++++++++++++++++-----------
1 file changed, 22 insertions(+), 11 deletions(-)
base-commit: 4d012040161cba054208555300d9fdf2b8925c34
--
2.28.0
next reply other threads:[~2021-11-30 2:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-30 2:53 Thinh Nguyen [this message]
2021-11-30 2:53 ` [PATCH 1/3] usb: dwc3: gadget: Skip checking Update Transfer status Thinh Nguyen
2021-11-30 2:53 ` [PATCH 2/3] usb: dwc3: gadget: Ignore Update Transfer cmd params Thinh Nguyen
2021-11-30 2:53 ` [PATCH 3/3] usb: dwc3: gadget: Skip reading GEVNTSIZn Thinh Nguyen
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=cover.1638240306.git.Thinh.Nguyen@synopsys.com \
--to=thinh.nguyen@synopsys.com \
--cc=John.Youn@synopsys.com \
--cc=balbi@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.