linux_dsm_epyc7002/Documentation/ABI/testing
Rafael J. Wysocki 0cc2b4e5a0 PM / QoS: Fix device resume latency PM QoS
The special value of 0 for device resume latency PM QoS means
"no restriction", but there are two problems with that.

First, device resume latency PM QoS requests with 0 as the
value are always put in front of requests with positive
values in the priority lists used internally by the PM QoS
framework, causing 0 to be chosen as an effective constraint
value.  However, that 0 is then interpreted as "no restriction"
effectively overriding the other requests with specific
restrictions which is incorrect.

Second, the users of device resume latency PM QoS have no
way to specify that *any* resume latency at all should be
avoided, which is an artificial limitation in general.

To address these issues, modify device resume latency PM QoS to
use S32_MAX as the "no constraint" value and 0 as the "no
latency at all" one and rework its users (the cpuidle menu
governor, the genpd QoS governor and the runtime PM framework)
to follow these changes.

Also add a special "n/a" value to the corresponding user space I/F
to allow user space to indicate that it cannot accept any resume
latencies at all for the given device.

Fixes: 85dc0b8a40 (PM / QoS: Make it possible to expose PM QoS latency constraints)
Link: https://bugzilla.kernel.org/show_bug.cgi?id=197323
Reported-by: Reinette Chatre <reinette.chatre@intel.com>
Tested-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Alex Shi <alex.shi@linaro.org>
Cc: All applicable <stable@vger.kernel.org>
2017-10-24 15:20:45 +02:00
..
configfs-acpi
configfs-iio
configfs-rdma_cm
configfs-spear-pcie-gadget
configfs-stp-policy
configfs-usb-gadget
configfs-usb-gadget-acm
configfs-usb-gadget-ecm
configfs-usb-gadget-eem
configfs-usb-gadget-ffs
configfs-usb-gadget-hid
configfs-usb-gadget-loopback
configfs-usb-gadget-mass-storage
configfs-usb-gadget-midi
configfs-usb-gadget-ncm
configfs-usb-gadget-obex
configfs-usb-gadget-phonet
configfs-usb-gadget-printer
configfs-usb-gadget-rndis usb: gadget: add RNDIS configfs options for class/subclass/protocol 2017-08-15 14:18:56 +03:00
configfs-usb-gadget-serial
configfs-usb-gadget-sourcesink
configfs-usb-gadget-subset
configfs-usb-gadget-tcm
configfs-usb-gadget-uac1 usb: gadget: add f_uac1 variant based on a new u_audio api 2017-06-19 09:22:47 +03:00
configfs-usb-gadget-uac1_legacy usb: gadget: function: make current f_uac1 implementation legacy 2017-06-19 09:22:47 +03:00
configfs-usb-gadget-uac2
configfs-usb-gadget-uvc
debugfs-driver-genwqe
debugfs-ec
debugfs-ideapad
debugfs-olpc
debugfs-pfo-nx-crypto
debugfs-pktcdvd
dev-kmsg
evm
gpio-cdev
ima_policy IMA: update IMA policy documentation to include pcr= option 2017-06-21 14:37:12 -04:00
ppc-memtrace Add documentation for the powerpc memtrace debugfs files 2017-08-28 22:09:43 +10:00
procfs-diskstats
procfs-smaps_rollup mm: add /proc/pid/smaps_rollup 2017-09-06 17:27:30 -07:00
pstore
sysfs-ata
sysfs-block
sysfs-block-bcache
sysfs-block-dm
sysfs-block-rssd
sysfs-block-zram zram: add config and doc file for writeback feature 2017-09-06 17:27:25 -07:00
sysfs-bus-acpi
sysfs-bus-amba
sysfs-bus-bcma
sysfs-bus-coresight-devices-etb10
sysfs-bus-coresight-devices-etm3x
sysfs-bus-coresight-devices-etm4x
sysfs-bus-coresight-devices-funnel
sysfs-bus-coresight-devices-stm
sysfs-bus-coresight-devices-tmc
sysfs-bus-css
sysfs-bus-event_source-devices-events
sysfs-bus-event_source-devices-format
sysfs-bus-event_source-devices-hv_24x7
sysfs-bus-event_source-devices-hv_gpci
sysfs-bus-fcoe
sysfs-bus-fsi drivers/fsi: Document FSI master sysfs files in ABI 2017-06-09 11:52:09 +02:00
sysfs-bus-fsl-mc
sysfs-bus-hsi
sysfs-bus-i2c-devices-bq32k
sysfs-bus-i2c-devices-fsa9480
sysfs-bus-i2c-devices-hm6352
sysfs-bus-i2c-devices-lm3533
sysfs-bus-iio iio: Documentation: Add missing documentation for power attribute 2017-07-17 21:55:59 +01:00
sysfs-bus-iio-accel-bmc150
sysfs-bus-iio-adc-envelope-detector
sysfs-bus-iio-adc-hi8435
sysfs-bus-iio-adc-max9611
sysfs-bus-iio-adc-stm32
sysfs-bus-iio-chemical-vz89x
sysfs-bus-iio-counter-104-quad-8
sysfs-bus-iio-cros-ec
sysfs-bus-iio-dac-dpot-dac
sysfs-bus-iio-distance-srf08
sysfs-bus-iio-frequency-ad9523
sysfs-bus-iio-frequency-adf4350
sysfs-bus-iio-gyro-bmg160
sysfs-bus-iio-health-afe440x
sysfs-bus-iio-humidity-hdc100x
sysfs-bus-iio-ina2xx-adc
sysfs-bus-iio-light-isl29018
sysfs-bus-iio-light-lm3533-als
sysfs-bus-iio-light-tsl2583
sysfs-bus-iio-lptimer-stm32 iio: counter: Add support for STM32 LPTimer 2017-09-04 14:49:30 +01:00
sysfs-bus-iio-magnetometer-hmc5843
sysfs-bus-iio-meas-spec iio: Documentation: sysfs-bus-iio-meas-spec: Remove (partially) duplicate line 2017-05-07 14:39:17 +01:00
sysfs-bus-iio-mpu6050
sysfs-bus-iio-potentiometer-mcp4531
sysfs-bus-iio-proximity-as3935 iio: proximity: as3935: noise detection + threshold changes 2017-09-25 19:49:21 +01:00
sysfs-bus-iio-timer-stm32 iio: make stm32 trigger driver use INDIO_HARDWARE_TRIGGERED mode 2017-06-11 15:59:05 +01:00
sysfs-bus-iio-trigger-sysfs
sysfs-bus-iio-vf610
sysfs-bus-intel_th-devices-gth
sysfs-bus-intel_th-devices-msc
sysfs-bus-intel_th-devices-pti
sysfs-bus-intel_th-output-devices
sysfs-bus-mcb
sysfs-bus-mdio
sysfs-bus-media
sysfs-bus-mei
sysfs-bus-pci pci-v4.12-changes 2017-05-08 19:03:25 -07:00
sysfs-bus-pci-devices-cciss
sysfs-bus-pci-drivers-ehci_hcd
sysfs-bus-pci-drivers-janz-cmodio
sysfs-bus-platform
sysfs-bus-rbd
sysfs-bus-rpmsg
sysfs-bus-thunderbolt thunderbolt: Allow clearing the key 2017-08-28 16:21:32 +02:00
sysfs-bus-umc
sysfs-bus-usb
sysfs-bus-usb-devices-usbsevseg
sysfs-bus-usb-lvstest usb: misc: lvstest: add entry to place port in compliance mode 2017-08-28 11:43:39 +02:00
sysfs-bus-vfio-mdev
sysfs-c2port
sysfs-cfq-target-latency
sysfs-class
sysfs-class-backlight-driver-adp8870
sysfs-class-backlight-driver-lm3533
sysfs-class-bdi
sysfs-class-cxl
sysfs-class-devfreq
sysfs-class-devfreq-event
sysfs-class-extcon
sysfs-class-fpga-bridge
sysfs-class-fpga-manager
sysfs-class-infiniband
sysfs-class-iommu
sysfs-class-iommu-amd-iommu
sysfs-class-iommu-intel-iommu
sysfs-class-lcd
sysfs-class-led
sysfs-class-led-driver-lm3533
sysfs-class-led-flash
sysfs-class-led-trigger-oneshot
sysfs-class-led-trigger-usbport
sysfs-class-leds-gt683r
sysfs-class-mei
sysfs-class-mic.txt
sysfs-class-mtd Documentation: ABI: mtd: describe "offset" more precisely 2017-07-13 10:54:45 -07:00
sysfs-class-mux mux: minimal mux subsystem 2017-06-03 19:29:26 +09:00
sysfs-class-net net: sysfs: Document "phydev" symbolic link 2017-05-26 14:37:41 -04:00
sysfs-class-net-batman-adv
sysfs-class-net-cdc_ncm
sysfs-class-net-grcan
sysfs-class-net-janz-ican3
sysfs-class-net-mesh
sysfs-class-net-phydev net: phy: add XAUI and 10GBASE-KR PHY connection types 2017-06-06 21:14:13 -04:00
sysfs-class-net-qmi
sysfs-class-net-queues
sysfs-class-net-statistics
sysfs-class-pktcdvd
sysfs-class-power
sysfs-class-power-twl4030 power: supply: twl4030-charger: remove nonstandard max_current sysfs attribute 2017-06-08 13:05:28 +02:00
sysfs-class-powercap
sysfs-class-pwm
sysfs-class-rc
sysfs-class-rc-nuvoton
sysfs-class-regulator
sysfs-class-remoteproc
sysfs-class-rtc-rtc0-device-rtc_calibration
sysfs-class-scsi_host
sysfs-class-scsi_tape
sysfs-class-stm
sysfs-class-stm_source
sysfs-class-switchtec
sysfs-class-typec usb: typec: Add a sysfs node to manage port type 2017-06-03 18:02:58 +09:00
sysfs-class-uwb_rc
sysfs-class-uwb_rc-wusbhc
sysfs-class-watchdog
sysfs-class-zram
sysfs-dev
sysfs-devices
sysfs-devices-edac
sysfs-devices-firmware_node
sysfs-devices-lpss_ltr
sysfs-devices-memory
sysfs-devices-mmc
sysfs-devices-online
sysfs-devices-platform-_UDC_-gadget
sysfs-devices-platform-docg3
sysfs-devices-platform-sh_mobile_lcdc_fb
sysfs-devices-power PM / QoS: Fix device resume latency PM QoS 2017-10-24 15:20:45 +02:00
sysfs-devices-power_resources_D0
sysfs-devices-power_resources_D1
sysfs-devices-power_resources_D2
sysfs-devices-power_resources_D3hot
sysfs-devices-power_resources_wakeup
sysfs-devices-power_state
sysfs-devices-real_power_state
sysfs-devices-resource_in_use
sysfs-devices-soc
sysfs-devices-sun
sysfs-devices-system-cpu
sysfs-devices-system-ibm-rtl
sysfs-devices-system-xen_cpu
sysfs-driver-altera-cvp fpga manager: Add Altera CvP driver 2017-07-17 17:26:15 +02:00
sysfs-driver-genwqe
sysfs-driver-hid
sysfs-driver-hid-corsair
sysfs-driver-hid-lenovo
sysfs-driver-hid-logitech-lg4ff
sysfs-driver-hid-multitouch
sysfs-driver-hid-picolcd
sysfs-driver-hid-prodikeys
sysfs-driver-hid-roccat-kone
sysfs-driver-hid-srws1
sysfs-driver-hid-wiimote
sysfs-driver-input-axp-pek
sysfs-driver-intel-rapid-start
sysfs-driver-pciback
sysfs-driver-ppi
sysfs-driver-samsung-laptop
sysfs-driver-st
sysfs-driver-tegra-fuse
sysfs-driver-toshiba_acpi
sysfs-driver-toshiba_haps
sysfs-driver-wacom
sysfs-driver-xen-blkback
sysfs-driver-xen-blkfront
sysfs-firmware-acpi
sysfs-firmware-dmi-entries
sysfs-firmware-dmi-tables
sysfs-firmware-efi
sysfs-firmware-efi-esrt
sysfs-firmware-efi-runtime-map
sysfs-firmware-gsmi
sysfs-firmware-log
sysfs-firmware-memmap
sysfs-firmware-ofw of: document /sys/firmware/fdt 2017-06-30 09:16:51 -05:00
sysfs-firmware-opal-powercap powerpc/powernv: Add support for powercap framework 2017-08-10 22:39:53 +10:00
sysfs-firmware-opal-psr powerpc/powernv: Add support to set power-shifting-ratio 2017-08-10 22:40:01 +10:00
sysfs-firmware-qemu_fw_cfg
sysfs-firmware-sfi
sysfs-firmware-sgi_uv
sysfs-fs-ext4
sysfs-fs-f2fs f2fs: introduce discard_granularity sysfs entry 2017-08-21 15:55:07 -07:00
sysfs-fs-nilfs2
sysfs-fs-xfs
sysfs-hypervisor-xen xen: add sysfs node for hypervisor build id 2017-06-15 08:50:37 +02:00
sysfs-ibft
sysfs-kernel-boot_params
sysfs-kernel-fscaps
sysfs-kernel-iommu_groups
sysfs-kernel-irq
sysfs-kernel-livepatch
sysfs-kernel-mm
sysfs-kernel-mm-hugepages
sysfs-kernel-mm-ksm
sysfs-kernel-mm-swap mm, swap: use page-cluster as max window of VMA based swap readahead 2017-10-13 16:18:33 -07:00
sysfs-kernel-slab
sysfs-kernel-uids
sysfs-kernel-vmcoreinfo
sysfs-memory-page-offline
sysfs-module
sysfs-ocfs2
sysfs-platform-asus-laptop
sysfs-platform-asus-wmi
sysfs-platform-at91
sysfs-platform-brcmstb-gisb-arb
sysfs-platform-chipidea-usb2
sysfs-platform-chipidea-usb-otg
sysfs-platform-dell-laptop
sysfs-platform-eeepc-laptop
sysfs-platform-hidma
sysfs-platform-hidma-mgmt
sysfs-platform-i2c-demux-pinctrl
sysfs-platform-ideapad-laptop platform/x86: ideapad-laptop: Add sysfs interface for touchpad state 2017-05-15 12:06:09 +03:00
sysfs-platform-kim
sysfs-platform-msi-laptop
sysfs-platform-phy-rcar-gen3-usb2
sysfs-platform-renesas_usb3
sysfs-platform-sst-atom
sysfs-platform-tahvo-usb
sysfs-platform-ts5500
sysfs-platform-twl4030-usb
sysfs-platform-usbip-vudc
sysfs-power Update James Hogan's email address 2017-10-04 17:11:53 -07:00
sysfs-pps
sysfs-profiling
sysfs-ptp
sysfs-tty
sysfs-uevent doc: update kernel version in sysfs-uevent ABI doc 2017-05-27 11:51:36 +02:00
sysfs-wusb_cbaf