Skip to content

MMC / PM: Make it possible to use PM QoS latency constraints

Rafael J. Wysocki linux-mmc 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 45 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3MMC / PM: Make it possible to use PM QoS latency constraintsDocumentation/mmc/mmc-dev-attrs.txt drivers/mmc/core/host.c include/linux/mmc/host.h+94 -02 replies
1/3MMC / PM: Make it possible to use PM QoS latency constraints, v2Documentation/mmc/mmc-dev-attrs.txt drivers/mmc/core/host.c include/linux/mmc/host.h+100 -03 replies
1/3PM / QoS: Make it possible to expose PM QoS latency constraintsDocumentation/ABI/testing/sysfs-devices-power drivers/base/power/power.h drivers/base/power/qos.c +3 more+124 -014 replies
1/3PM / QoS: Make it possible to expose PM QoS latency constraintsDocumentation/ABI/testing/sysfs-devices-power drivers/base/power/power.h drivers/base/power/qos.c +3 more+141 -02 replies
2/3tmio_mmc / PM: Use PM QoS requestsdrivers/mmc/host/tmio_mmc_pio.c+8 -00 replies
2/3tmio_mmc / PM: Use PM QoS requests, v2drivers/mmc/host/tmio_mmc_pio.c+8 -04 replies
2/3tmio_mmc / PM: Use PM QoS latency constraintdrivers/mmc/host/tmio_mmc_pio.c+5 -02 replies
2/3tmio_mmc / PM: Use PM QoS latency constraintdrivers/mmc/host/tmio_mmc_pio.c+5 -00 replies
3/3sh_mmcif / PM: Use PM QoS requestsdrivers/mmc/host/sh_mmcif.c+9 -00 replies
3/3sh_mmcif / PM: Use PM QoS requests, v2drivers/mmc/host/sh_mmcif.c+10 -02 replies
3/3sh_mmcif / PM: Use PM QoS latency constraintdrivers/mmc/host/sh_mmcif.c+5 -02 replies
3/3sh_mmcif / PM: Use PM QoS latency constraintdrivers/mmc/host/sh_mmcif.c+5 -00 replies

Reviews trailers per patch

4 of 12 patches have a Reviewed-by or Acked-by.

PatchLinus WalleijKevin HilmanMark Brown
1/3A-b A-b A-b R-b R-b R-b R-b
1/3A-b A-b A-b R-b R-b R-b R-b
1/3A-b A-b A-b R-b R-b R-b R-b
1/3A-b A-b A-b R-b R-b R-b R-b
2/3
2/3
2/3
2/3
3/3
3/3
3/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/3] MMC / PM: Make it possible to use PM QoS latency constraints

Hi all,

The goal of this patchset is to allow user space to control the responsiveness of the MMC stack related to runtime power management.

Namely, on systems that contain power domains, the time necessary to bring an MMC host up after it has been runtime-suspended may depend not only on the MMC core and host driver, but also on the platform and other devices in the same power domain(s) that contain(s) the MMC host. Although that obviously may influence the MMC performance, currently, there is no way to control it through the MMC subsystem. Moreover, the only available way to control it at all is by using PM QoS latency requests, so it is necessary to add some kind of support for that to MMC.

Patch [1/3] adds PM QoS-related fields to struct mmc_host and introduces a new sysfs attribute for MMC hosts, pm_latency_limit_ms, allowing user space to influence the MMC host's runtime PM via PM QoS. Whether or not this attribute will be created (and PM QoS will be used for the given host) depends on the host driver, so host drivers that don't (plan) to support PM QoS don't need to do anything about that.

Patches [2/3] and [3/3] add the corresponding host driver bits to the tmio_mmc and sh_mmcif drivers, respectively.

Thanks,
Rafael