xhci: usb: optimize resuming from S4 (suspend-to-disk)
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 13 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | usb: xhci: simplify CMRT initialization logicdrivers/ | +3 | 0 replies | |
| 2/9 | usb: xhci: relocate Restore/Controller error checkdrivers/ | +5 | 0 replies | |
| 3/9 | usb: xhci: factor out roothub bandwidth cleanupdrivers/ | +29 | 3 replies | |
| 4/9 | usb: xhci: move reserving command ring trbdrivers/ drivers/ | +6 | 0 replies | |
| 5/9 | usb: xhci: move ring initializationdrivers/ drivers/ drivers/ | +18 | 3 replies | |
| 6/9 | usb: xhci: move initialization for lifetime objectsdrivers/ drivers/ | +8 | 1 reply | |
| 7/9 | usb: xhci: split core allocation and initializationdrivers/ drivers/ | +13 | 1 reply | |
| 8/9 | usb: xhci: improve debug messages during suspenddrivers/ | +37 | 2 replies | |
| 9/9 | usb: xhci: optimize resuming from S4 (suspend-to-disk)drivers/ drivers/ drivers/ | +35 | 3 replies |
Reviews trailers per patch
2 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Andy Shevchenko |
|---|---|
| 1/9 | R-b |
| 2/9 | R-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.
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