RFC mmc: Add Command Queue support
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest39 patches 23 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/39 | mmc: block: Use local var for mqrq_curdrivers/ | +14 | 1 reply | |
| 2/39 | mmc: queue: Share mmc request array between partitionsdrivers/ drivers/ drivers/ +1 more | +156 | 0 replies | |
| 3/39 | mmc: block: Introduce queue semanticsdrivers/ drivers/ drivers/ | +79 | 1 reply | |
| 4/39 | mmc: core: Do not prepare a new request twicedrivers/ drivers/ include/ | +14 | 1 reply | |
| 5/39 | mmc: mmc: Add functions to enable / disable the Command QueueDocumentation/ drivers/ drivers/ +2 more | +34 | 3 replies | |
| 6/39 | mmc: mmc_test: Disable Command Queue while mmc_test is useddrivers/ drivers/ include/ | +23 | 0 replies | |
| 7/39 | mmc: block: Disable Command Queue while RPMB is useddrivers/ | +38 | 0 replies | |
| 8/39 | mmc: core: Export mmc_retune_hold() and mmc_retune_release()drivers/ | +2 | 0 replies | |
| 9/39 | mmc: queue: Add a function to control wake-up on new requestsdrivers/ drivers/ | +18 | 1 reply | |
| 10/39 | mmc: block: Change mmc_apply_rel_rw() to get block address from the requestdrivers/ | +1 | 1 reply | |
| 11/39 | mmc: block: Factor out data preparationdrivers/ | +82 | 1 reply | |
| 12/39 | mmc: block: Add Software Command Queuingdrivers/ drivers/ drivers/ +1 more | +544 | 1 reply | |
| 13/39 | mmc: mmc: Enable Software Command Queuingdrivers/ | +16 | 1 reply | |
| 14/39 | mmc: core: Factor out debug prints from mmc_start_request()drivers/ | +20 | 1 reply | |
| 15/39 | mmc: core: Factor out mrq preparation from mmc_start_request()drivers/ | +27 | 1 reply | |
| 16/39 | mmc: core: Add mmc_retune_hold_now()drivers/ drivers/ | +7 | 0 replies | |
| 17/39 | mmc: core: Add members to mmc_request and mmc_data for CQE'sinclude/ include/ | +23 | 1 reply | |
| 18/39 | mmc: host: Add CQE interfaceinclude/ | +24 | 0 replies | |
| 19/39 | mmc: core: Turn off CQE before sending commandsdrivers/ | +6 | 1 reply | |
| 20/39 | mmc: core: Add support for handling CQE requestsdrivers/ include/ | +148 | 1 reply | |
| 21/39 | mmc: mmc: Enable CQE'sdrivers/ drivers/ | +23 | 1 reply | |
| 22/39 | mmc: block: Prepare CQE datadrivers/ | +29 | 5 replies | |
| 23/39 | mmc: block: Add CQE supportdrivers/ drivers/ drivers/ +1 more | +546 | 0 replies | |
| 24/39 | mmc: cqhci: support for command queue enabled hostdrivers/ drivers/ drivers/ +1 more | +1390 | 0 replies | |
| 25/39 | mmc: sdhci: Improve debug print formatdrivers/ | +12 | 1 reply | |
| 26/39 | mmc: sdhci: Add response register to register dumpdrivers/ | +7 | 0 replies | |
| 27/39 | mmc: sdhci: Improve register dump print formatdrivers/ | +53 | 0 replies | |
| 28/39 | mmc: sdhci: Export sdhci_dumpregsdrivers/ drivers/ | +4 | 0 replies | |
| 29/39 | mmc: sdhci: Get rid of 'extern' in header filedrivers/ | +15 | 0 replies | |
| 30/39 | mmc: sdhci: Add sdhci_cleanup_hostdrivers/ drivers/ | +27 | 0 replies | |
| 31/39 | mmc: sdhci: Factor out sdhci_set_default_irqsdrivers/ | +13 | 0 replies | |
| 32/39 | mmc: sdhci: Add CQE supportdrivers/ drivers/ | +146 | 0 replies | |
| 33/39 | mmc: sdhci-pci: Let devices define how to add the hostdrivers/ drivers/ | +5 | 0 replies | |
| 34/39 | mmc: sdhci-pci: Do not use suspend/resume callbacks with runtime pmdrivers/ | +0 | 0 replies | |
| 35/39 | mmc: sdhci-pci: Conditionally compile pm sleep functionsdrivers/ drivers/ drivers/ | +14 | 0 replies | |
| 36/39 | mmc: sdhci-pci: Let suspend/resume callbacks replace default callbacksdrivers/ drivers/ drivers/ | +98 | 0 replies | |
| 37/39 | mmc: sdhci-pci: Add runtime suspend/resume callbacksdrivers/ drivers/ | +55 | 0 replies | |
| 38/39 | mmc: sdhci-pci: Move a function to avoid later forward declarationdrivers/ | +39 | 0 replies | |
| 39/39 | mmc: sdhci-pci: Add CQHCI support for Intel GLKdrivers/ drivers/ | +151 | 0 replies |
Reviews trailers per patch
13 of 39 patches have a Reviewed-by or Acked-by.
| Patch | Harjani Ritesh | Linus Walleij |
|---|---|---|
| 1/39 | ||
| 2/39 | ||
| 3/39 | ||
| 4/39 | R-b | |
| 5/39 | ||
| 6/39 | R-b | |
| 7/39 | R-b | |
| 8/39 | R-b | |
| 9/39 | ||
| 10/39 | R-b | |
| 11/39 | R-b | |
| 12/39 | ||
| 13/39 | A-b | |
| 14/39 | R-b | |
| 15/39 | R-b | |
| 16/39 | ||
| 17/39 | A-b | |
| 18/39 | ||
| 19/39 | A-b | |
| 20/39 | A-b | |
| 21/39 | R-b | |
| 22/39 | ||
| 23/39 | ||
| 24/39 | ||
| 25/39 | ||
| 26/39 | ||
| 27/39 | ||
| 28/39 | ||
| 29/39 | ||
| 30/39 | ||
| 31/39 | ||
| 32/39 | ||
| 33/39 | ||
| 34/39 | ||
| 35/39 | ||
| 36/39 | ||
| 37/39 | ||
| 38/39 | ||
| 39/39 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH RFC 00/39] mmc: Add Command Queue support
Hi
Here are patches to enable hardware command queue (Command Queue Engine or CQE) and software command queue.
Ritesh Harjani graciously agreed the use of their driver which has been re-named CQHCI to match the JEDEC specification and has some more features added.
The first 13 patches enable software command queue. Earlier versions have been submitted before.
The hardware command queue patches are now functionally complete, enabling all block requests (read/write/discard/flush) as well as re-tuning and recovery.
The patches can also be found here:
http://git.infradead.org/users/ahunter/linux-sdhci.git/shortlog/refs/heads/cqe
Adrian Hunter (38):
mmc: block: Use local var for mqrq_cur
mmc: queue: Share mmc request array between partitions
mmc: block: Introduce queue semantics
mmc: core: Do not prepare a new request twice
mmc: mmc: Add functions to enable / disable the Command Queue
mmc: mmc_test: Disable Command Queue while mmc_test is used
mmc: block: Disable Command Queue while RPMB is used
mmc: core: Export mmc_retune_hold() and mmc_retune_release()
mmc: queue: Add a function to control wake-up on new requests
mmc: block: Change mmc_apply_rel_rw() to get block address from the request
mmc: block: Factor out data preparation
mmc: block: Add Software Command Queuing
mmc: mmc: Enable Software Command Queuing
mmc: core: Factor out debug prints from mmc_start_request()
mmc: core: Factor out mrq preparation from mmc_start_request()
mmc: core: Add mmc_retune_hold_now()
mmc: core: Add members to mmc_request and mmc_data for CQE's
mmc: host: Add CQE interface
mmc: core: Turn off CQE before sending commands
mmc: core: Add support for handling CQE requests
mmc: mmc: Enable CQE's
mmc: block: Prepare CQE data
mmc: block: Add CQE support
mmc: sdhci: Improve debug print format
mmc: sdhci: Add response register to register dump
mmc: sdhci: Improve register dump print format
mmc: sdhci: Export sdhci_dumpregs
mmc: sdhci: Get rid of 'extern' in header file
mmc: sdhci: Add sdhci_cleanup_host
mmc: sdhci: Factor out sdhci_set_default_irqs
mmc: sdhci: Add CQE support
mmc: sdhci-pci: Let devices define how to add the host
mmc: sdhci-pci: Do not use suspend/resume callbacks with runtime pm
mmc: sdhci-pci: Conditionally compile pm sleep functions
mmc: sdhci-pci: Let suspend/resume callbacks replace default callbacks
mmc: sdhci-pci: Add runtime suspend/resume callbacks
mmc: sdhci-pci: Move a function to avoid later forward declaration
mmc: sdhci-pci: Add CQHCI support for Intel GLK
Venkat Gopalakrishnan (1):
mmc: cqhci: support for command queue enabled host
Documentation/mmc/mmc-dev-attrs.txt | 1 + drivers/mmc/core/block.c | 1021 ++++++++++++++++++++++++++---- drivers/mmc/core/block.h | 7 + drivers/mmc/core/bus.c | 7 + drivers/mmc/core/core.c | 212 ++++++- drivers/mmc/core/host.c | 8 + drivers/mmc/core/host.h | 1 + drivers/mmc/core/mmc.c | 41 +- drivers/mmc/core/mmc_ops.c | 28 + drivers/mmc/core/mmc_ops.h | 2 + drivers/mmc/core/mmc_test.c | 22 +- drivers/mmc/core/queue.c | 630 +++++++++++++++---- drivers/mmc/core/queue.h | 68 +- drivers/mmc/host/Kconfig | 14 + drivers/mmc/host/Makefile | 1 + drivers/mmc/host/cqhci.c | 1148 ++++++++++++++++++++++++++++++++++ drivers/mmc/host/cqhci.h | 228 +++++++ drivers/mmc/host/sdhci-pci-core.c | 499 ++++++++++----- drivers/mmc/host/sdhci-pci-o2micro.c | 4 +- drivers/mmc/host/sdhci-pci.h | 11 + drivers/mmc/host/sdhci.c | 324 +++++++--- drivers/mmc/host/sdhci.h | 54 +- include/linux/mmc/card.h | 8 + include/linux/mmc/core.h | 20 +- include/linux/mmc/host.h | 25 + include/trace/events/mmc.h | 17 +- 26 files changed, 3871 insertions(+), 530 deletions(-) create mode 100644 drivers/mmc/host/cqhci.c create mode 100644 drivers/mmc/host/cqhci.h
Regards
Adrian