Skip to content

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

Niklas Neronin linux-usb 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 13 repliesIn review

Patches in v1 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 -213 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 -53 replies
6/9usb: xhci: move initialization for lifetime objectsdrivers/usb/host/xhci-mem.c drivers/usb/host/xhci.c+8 -81 reply
7/9usb: xhci: split core allocation and initializationdrivers/usb/host/xhci-mem.c drivers/usb/host/xhci.c+13 -201 reply
8/9usb: xhci: improve debug messages during suspenddrivers/usb/host/xhci.c+37 -282 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 -243 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 v1 thread

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

On resume from S4, the xHCI controller loses register state, but the driver currently responds by tearing down and fully reinitializing all xhci data structures.

This is unnecessary. Instead of freeing and reallocating driver structures, simply reset the required memory and restore the hardware registers that lost their contents across hibernation.

Changes since RFCv2:
* Fix virtual device itteration from max-ports to slots.

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