Skip to content

PM: QoS: Get rid of unuseful code and rework CPU latency QoS interface

Rafael J. Wysocki alsa-devel intel-gfx intel-wired-lan linux-doc linux-media linux-mmc linux-pm linux-serial linux-spi linux-usb linux-wireless lkml 1 version In review

Get series with b4
b4 am 1654227.8mz0SueHsU@kreacher

Versions newest first

  1. v1 Latest28 patches 45 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/28PM: QoS: Drop debugfs interfacekernel/power/qos.c+2 -710 replies
2/28PM: QoS: Drop pm_qos_update_request_timeout()Documentation/trace/events-power.rst include/linux/pm_qos.h include/trace/events/power.h +1 more+0 -780 replies
3/28PM: QoS: Drop the PM_QOS_SUM QoS typeinclude/linux/pm_qos.h kernel/power/qos.c+0 -100 replies
4/28PM: QoS: Clean up pm_qos_update_target() and pm_qos_update_flags()kernel/power/qos.c+29 -270 replies
5/28PM: QoS: Clean up pm_qos_read_value() and pm_qos_get/set_value()kernel/power/qos.c+12 -100 replies
6/28PM: QoS: Drop iterations over global QoS classeskernel/power/qos.c+14 -380 replies
7/28PM: QoS: Clean up misc device file operationskernel/power/qos.c+26 -360 replies
8/28PM: QoS: Redefine struct pm_qos_request and drop struct pm_qos_objectinclude/linux/pm_qos.h kernel/power/qos.c+51 -900 replies
9/28PM: QoS: Drop PM_QOS_CPU_DMA_LATENCY notifier chaindrivers/cpuidle/cpuidle.c include/linux/pm_qos.h kernel/power/qos.c+12 -770 replies
10/28PM: QoS: Rename things related to the CPU latency QoSdrivers/tty/serial/8250/8250_omap.c drivers/tty/serial/omap-serial.c include/linux/pm_qos.h +1 more+36 -342 replies
11/28PM: QoS: Simplify definitions of CPU latency QoS trace eventsDocumentation/trace/events-power.rst include/trace/events/power.h kernel/power/qos.c+35 -350 replies
12/28PM: QoS: Adjust pm_qos_request() signature and reorder pm_qos.hinclude/linux/pm_qos.h kernel/power/qos.c+4 -50 replies
13/28PM: QoS: Add CPU latency QoS API wrappersinclude/linux/pm_qos.h+27 -00 replies
14/28cpuidle: Call cpu_latency_qos_limit() instead of pm_qos_request()drivers/cpuidle/governor.c+1 -10 replies
15/28x86: platform: iosf_mbi: Call cpu_latency_qos_*() instead of pm_qos_*()arch/x86/platform/intel/iosf_mbi.c+6 -71 reply
16/28drm: i915: Call cpu_latency_qos_*() instead of pm_qos_*()drivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/i915_drv.c drivers/gpu/drm/i915/intel_sideband.c+10 -112 replies
17/28drivers: hsi: Call cpu_latency_qos_*() instead of pm_qos_*()drivers/hsi/clients/cmt_speech.c+4 -51 reply
18/28drivers: media: Call cpu_latency_qos_*() instead of pm_qos_*()drivers/media/pci/saa7134/saa7134-video.c drivers/media/platform/via-camera.c+4 -51 reply
19/28drivers: mmc: Call cpu_latency_qos_*() instead of pm_qos_*()drivers/mmc/host/sdhci-esdhc-imx.c+6 -80 replies
20/28drivers: net: Call cpu_latency_qos_*() instead of pm_qos_*()drivers/net/ethernet/intel/e1000e/netdev.c drivers/net/wireless/ath/ath10k/core.c drivers/net/wireless/intel/ipw2x00/ipw2100.c+13 -142 replies
21/28drivers: spi: Call cpu_latency_qos_*() instead of pm_qos_*()drivers/spi/spi-fsl-qspi.c+2 -20 replies
22/28drivers: tty: Call cpu_latency_qos_*() instead of pm_qos_*()drivers/tty/serial/8250/8250_omap.c drivers/tty/serial/omap-serial.c+7 -92 replies
23/28drivers: usb: Call cpu_latency_qos_*() instead of pm_qos_*()drivers/usb/chipidea/ci_hdrc_imx.c+5 -75 replies
24/28sound: Call cpu_latency_qos_*() instead of pm_qos_*()sound/core/pcm_native.c sound/soc/intel/atom/sst/sst.c sound/soc/intel/atom/sst/sst_loader.c +3 more+31 -314 replies
25/28PM: QoS: Drop PM_QOS_CPU_DMA_LATENCY and rename related functionsinclude/linux/pm_qos.h kernel/power/qos.c+54 -910 replies
26/28PM: QoS: Update file information commentsinclude/linux/pm_qos.h kernel/power/qos.c+23 -260 replies
27/28Documentation: PM: QoS: Update to reflect previous code changesDocumentation/admin-guide/pm/cpuidle.rst Documentation/power/pm_qos_interface.rst+75 -840 replies
28/28PM: QoS: Make CPU latency QoS depend on CONFIG_CPU_IDLEinclude/linux/pm_qos.h kernel/power/qos.c+15 -00 replies

Reviews trailers per patch

9 of 28 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJeff KirsherMauro Carvalho ChehabKalle ValoUlf HanssonAndy ShevchenkoMark BrownTakashi IwaiGreg Kroah-HartmanAmit KucheriaSebastian ReichelJani NikulaPeter Chen
SeriesR-b R-b T-b
1/28
2/28
3/28
4/28
5/28
6/28
7/28
8/28
9/28
10/28A-b
11/28
12/28
13/28
14/28
15/28R-b
16/28A-b
17/28A-b
18/28A-b
19/28
20/28A-b A-b
21/28
22/28A-b
23/28A-b A-b
24/28A-b A-b
25/28
26/28
27/28
28/28

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

Read the v1 thread

Cover letter [PATCH 00/28] PM: QoS: Get rid of unuseful code and rework CPU latency QoS interface

Hi All,

This series of patches is based on the observation that after commit c3082a674f46 ("PM: QoS: Get rid of unused flags") the only global PM QoS class in use is PM_QOS_CPU_DMA_LATENCY, but there is still a significant amount of code dedicated to the handling of global PM QoS classes in general. That code takes up space and adds overhead in vain, so it is better to get rid of it.

Moreover, with that unuseful code removed, the interface for adding QoS requests for CPU latency becomes inelegant and confusing, so it is better to clean it up.

Patches [01/28-12/28] do the first part described above, which also includes some assorted cleanups of the core PM QoS code that doesn't go away.

Patches [13/28-25/28] rework the CPU latency QoS interface (in the classic "define stubs, migrate users, change the API proper" manner), patches [26-27/28] update the general comments and documentation to match the code after the previous changes and the last one makes the CPU latency QoS depend on CPU_IDLE (because cpuidle is the only user of its target value today).

The majority of the patches in this series don't change the functionality of the code at all (at least not intentionally).

Please refer to the changelogs of individual patches for details.

Thanks!