Skip to content

RFC xhci: usb: optimize resuming from S4 (suspend-to-disk)

Niklas Neronin linux-usb 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest9 patches 2 repliesIn review
  2. v1 RFC12 patches 8 repliesSuperseded

Changes in v2 from the cover letter

* Drop "simplify USBSTS register reset" patch.
* [RFC PATCH 3] New patch
* [RFC PATCH 7] Re-add function comment to xhci_init()
* [RFC PATCH 7] Moved xhci_mem_init() and xhci_init() start/finish debug messages into the functions themselves.
* [RFC PATCH 9] Cleanup 'cmd_timer', 'cmd_list', 'tts', 'endpoints' during S4 resume.
* [RFC PATCH 9] Fix commit title.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9usb: xhci: simplify CMRT initialization logicdrivers/usb/host/xhci.c+3 -50 replies
2/9usb: xhci: relocate Restore/Controller error checkdrivers/usb/host/xhci.c+5 -80 replies
3/9usb: xhci: factor out roothub bandwidth cleanupdrivers/usb/host/xhci-mem.c+29 -210 replies
4/9usb: xhci: move reserving command ring trbdrivers/usb/host/xhci-mem.c drivers/usb/host/xhci.c+6 -70 replies
5/9usb: xhci: move ring initializationdrivers/usb/host/xhci-mem.c drivers/usb/host/xhci.c drivers/usb/host/xhci.h+18 -50 replies
6/9usb: xhci: move initialization for lifetime objectsdrivers/usb/host/xhci-mem.c drivers/usb/host/xhci.c+8 -80 replies
7/9usb: xhci: split core allocation and initializationdrivers/usb/host/xhci-mem.c drivers/usb/host/xhci.c+13 -200 replies
8/9usb: xhci: improve debug messages during suspenddrivers/usb/host/xhci.c+37 -280 replies
9/9usb: xhci: optimize resuming from S4 (suspend-to-disk)drivers/usb/host/xhci-mem.c drivers/usb/host/xhci.c drivers/usb/host/xhci.h+35 -242 replies

Reviews trailers per patch

2 of 9 patches have a Reviewed-by or Acked-by.

PatchAndy Shevchenko
1/9R-b
2/9R-b
3/9
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [RFC PATCH v2 0/9] xhci: usb: optimize resuming from S4 (suspend-to-disk)

Thank you Michal Pecio and Xu Rao for your reviews.

This series is now split into two parts. This first part avoids freeing and reallocating xHCI data structures during hibernation resume.

The second part, which lays the groundwork for secondary interrupters, will be submitted separately.

v1 -> v2:
* Drop "simplify USBSTS register reset" patch.
* [RFC PATCH 3] New patch
* [RFC PATCH 7] Re-add function comment to xhci_init()
* [RFC PATCH 7] Moved xhci_mem_init() and xhci_init() start/finish debug messages into the functions themselves.
* [RFC PATCH 9] Cleanup 'cmd_timer', 'cmd_list', 'tts', 'endpoints' during S4 resume.
* [RFC PATCH 9] Fix commit title.

Niklas Neronin (9):
usb: xhci: simplify CMRT initialization logic
usb: xhci: relocate Restore/Controller error check
usb: xhci: factor out roothub bandwidth cleanup
usb: xhci: move reserving command ring trb
usb: xhci: move ring initialization
usb: xhci: move initialization for lifetime objects
usb: xhci: split core allocation and initialization
usb: xhci: improve debug messages during suspend
usb: xhci: optimize resuming from S4 (suspend-to-disk)

 drivers/usb/host/xhci-mem.c |  82 +++++++++-------
 drivers/usb/host/xhci.c     | 183 +++++++++++++++++++-----------------
 drivers/usb/host/xhci.h     |   3 +
 3 files changed, 148 insertions(+), 120 deletions(-)
Signature · 1 line
2.50.1