This avoids flooding the log, when using the device.
I android.hardware.power-service-qti: Power setBoost: 0, duration: 351
I android.hardware.power-service-qti: Power setBoost: 1, duration: 0
I android.hardware.power-service-qti: Power setBoost: 0, duration: 0
I android.hardware.power-service-qti: Power setBoost: 0, duration: 0
I android.hardware.power-service-qti: Power setBoost: 1, duration: 0
I android.hardware.power-service-qti: Power setBoost: 0, duration: 0
I android.hardware.power-service-qti: Power setBoost: 0, duration: 0
I android.hardware.power-service-qti: Power setBoost: 0, duration: 1119
I android.hardware.power-service-qti: Power setBoost: 1, duration: 0
I android.hardware.power-service-qti: Power setBoost: 0, duration: 0
I android.hardware.power-service-qti: Power setBoost: 0, duration: 0
I android.hardware.power-service-qti: Power setBoost: 1, duration: 0
I android.hardware.power-service-qti: Power setBoost: 0, duration: 1492
I android.hardware.power-service-qti: Power setBoost: 1, duration: 0
Change-Id: I4e3c9ba79412875947593ea49739c3c30eabc429
So far the caller never knows if setting the hint actually worked.
This leads to a potential disconnect between the actual setting and the
UI because set_power_profile simply assumes perform_hint_action worked.
Return an error code or 0, so the callers can check for success.
Change-Id: I180a367e9d8581a63dfa703046b37bc5cae8c6cb
Signed-off-by: Corinna Vinschen <xda@vinschen.de>
Author: Zhao Wei Liew <zhaoweiliew@gmail.com>
Date: Tue Jun 21 10:44:49 2016 +0800
power: msm8996: Support boost and perf profile hints
Change-Id: I010d4d1d3fb495e523b065c11ca95c4305530f9f
Author: Zhao Wei Liew <zhaoweiliew@gmail.com>
Date: Thu Oct 20 21:51:09 2016 +0800
power: msm8937: Improve boost values
* Bring boost values more in line with CAF's recommended values
* Make performance profile values saner
Change-Id: I9827d25a347a8ab959c766a71e30b3d29267983f
Author: Diogo Ferreira <diogo@underdev.org>
Date: Sun May 7 11:00:12 2017 +0100
power: Use the correct opcode for STOR_CLK_SCALE_DIS
This is actually wrong, 0x42C0C000 is the opcode for SWAP_RATIO and
0x42C10000 is the correct opcode for storage clock scale disabling.
Change-Id: I6b1db525acf061ffe419011acd1f91525a27a35d
Author: dianlujitao <dianlujitao@lineageos.org>
Date: Wed Sep 20 16:40:57 2017 +0800
power: sdm660: Use declared enums
Change-Id: I21691f9595f3730b9046012d1cae3951eb9da6a7
Author: dianlujitao <dianlujitao@lineageos.org>
Date: Sat Sep 23 20:22:17 2017 +0800
power: sdm660: Support boost and power profiles
* perfd needs /vendor/etc/appboosts.xml on sdm660 platform.
Change-Id: I92632da032ebd1a629fcc0b9c7e1811dee9117fe
Author: dianlujitao <dianlujitao@lineageos.org>
Date: Thu Sep 6 21:43:14 2018 +0800
power: Clean up hint IDs
* Group MPCTL v3 opcodes according to major type.
* Remove some unused/dead opcodes.
* Rename some misleading/inconsistency names.
Change-Id: I3a06930c8fff18a50f77cb230951dbd43d62fed3
Change-Id: I611ef9651486f6f3caa6a6d6a08434912c114659
* Remove debug logs and useless comments
* Consistent return values
* Check if set_interactive_override handled hints and print
info message if it didn't
Change-Id: Iff9f7327ba71c282e34ff3143c45a3f40f72fc92
* The incoming path to sysfs_read/sysfs_write should be const, as in
open(2) call.
* Redefine scaling_gov_path as const pointer array.
* Since sysfs_read works on a simple absolute path anyway, make sure
the scaling_gov_path paths *are* absolute. Otherwise the code only
works if Power HAL has / as CWD, which is a bit fragile.
Change-Id: I70c08f8137842569514bcb3f6e0617d46044e6ab
Signed-off-by: Corinna Vinschen <xda@vinschen.de>
Check for whether the display hint has been sent at the start
of the set_interactive() function in the common powerHAL.
This gets rid of the need to replicate the same variable in
every target-specific powerHAL that implements the
set_interactive_override() function.
Change-Id: If7dd11fcb578211f4f83847f9257232c4138ce53
Currently, get_soc_id() is queried on every SOC ID check in the
SDM660, MSM8916, MSM8952, MSM8953 and MSM8974-family HALs.
This results in extraneous file operations on every SOC ID check.
Cache the result of get_soc_id() during the first query to
reduce the number of file operations being made.
This also brings back the behaviour in LineageOS 15.1 when the
HALs were still stored in device/qcom/common.
Change-Id: Ic17dbf12e7f9ecdb47b73a580f467df9ad630aa0
- Get soc_id in a common util function
- Return boolean values for the target-specific soc_id checks
Change-Id: I038c435d28855859f36566de7acf881037d070f2
Bug: 30432975
Test: compile power hal for walleye without warnings
Change-Id: I0d90c26462c662690f8a179250000b9a449a109f
Signed-off-by: Arian <arian.kulmer@web.de>
* Using AOSP interface .clang-format
* Clean Android.mk while we are at it
Change-Id: I630f72e3dffb676ca1930e72945e897f62103ada
Signed-off-by: Arian <arian.kulmer@web.de>
* These were part of the commit that added mutex locks
for camera hints. We have now removed the locks so
this is no longer necessary
Change-Id: I38b91ce4e8fc811b8d9a04e6ec20521adde1b264
* The usage of this code was removed in commit
0c226b7921b421dd24363f15aefef1236aa25287
* powerhint.xml is now read by libqti-perfd
Change-Id: I498ad19d0bb43124e4518c5a4f20191a2c122997
* Latest power-8952.c is used for msm8937 with mpctl V3.
Rename the file to reflect msm8952 is no longer supported.
Change-Id: Iccd2a3c0abed2ef10d5f6c2182c0509a2fbe611d
Using this hook, any device should be able to reuse the majority of the
powerhal and fork only power-<platform>.c if they feel that they need
the ability to provide more specific tuning of the hints/etc. for
their device.
Change-Id: I013a3ec3ddccbe6f74f3dacf456cc6e8b3ab3430
"LA.UM.9.12.r1-16200-SMxx50.QSSI12.0"
* tag 'LA.UM.9.12.r1-16200-SMxx50.QSSI12.0' of https://git.codelinaro.org/clo/la/platform/vendor/qcom-opensource/power:
power: Modify powerhint for encode case
power: Enable powerhint for khaje
Power: Specify stable AIDL version number
Power:Changes made for Bengal powerhint.xml
Power: Correcting target name in powerhint.xml
Power : Clean up of opcodes in powerhints
power: add check for shared pointer
Kona Powerhint: Change the VR hints
qvr powerhints
Power: update powerhint for Single rank DDR
Power : Modified make file to include Trinket
Power : AIDL support for Trinket
power: update power hint data for lagoon
Power: Tuned scheduler for 480FPS use-case
Power : Modified make file to include Bengal
power: update power hint data for lagoon
Power: Updating camera settings
Power: Updating camera settings
power : Modified make file to include Talos
power: Add supported modes
power: Add supported modes
power: Added copyrights info in xml.
power: conversion from hidl to aidl.
power: Added copyrights info in xml
Power: Up/down scheduler Tuning for 480FPS use-case
power : opcode for sample_ms
Conflicts:
Android.mk
Power.cpp
power-vendor-product.mk
power.xml
Change-Id: Ic5b9e4380c940cacf06183b3613a60e2b3404d6f
"LA.UM.9.14.r1-22900.01-LAHAINA.QSSI14.0"
* tag 'LA.UM.9.14.r1-22900.01-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/qcom-opensource/power:
power: Modify powerhint for Camera cases
Holi: Powerhint changes to meet camera FPS
Blair: Powerhint changes to meet camera FPS
Power : Adding blair target hints in powerhint.xml
Power : Add power tuning for sHDR encode use case
Power : Adding powerhint.xml for blair target
Power : Add power tuning for sHDR encode use case
power: update powerhint for yupik
power: Update powerhint for yupik
Power: Modify powerhint for cedros
power: add check for shared pointer
Revert "power: Add supported modes"
power: Add supported modes
Revert "power : Modified make file to include Lahaina"
power : Modified make file to include Lahaina Addition of powerhint.xml for the product Lahaina
Change-Id: I2fabc727559f68765986e5480a6f075ed67d81bd
"LA.VENDOR.1.0.r1-23800-WAIPIO.QSSI14.0"
* tag 'LA.VENDOR.1.0.r1-23800-WAIPIO.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/qcom-opensource/power:
power: Replace library name with ndk from ndk_platform for upgrade sdk version
Power: Modifying powerhint.xml for Halliday target
power: adjust powerhint for halliday
power: added power hint for sHDR case to support parrot and ravelin
power: modify tunings for camera close hint
Power : Add power tuning for sHDR encode use case
Power: Modifying powerhint.xml for Halliday Target
Powerhint file for Ravelin
Power: tuning of 30fps use case
power: modified powerhint file for ravelin
Power : Set minCpu freq for preview to meet FPS
Power: Adding powerhint.xml for Halliday target
power: updated power for ravelin
power: improve silver capped freq for taro
Power: tuning of snapshot, 30fps and ZSL use cases
power : revised tunings for parrot
power: update power hint for ukee.
power: add powerhint for video decode 30 fps secure/non-secure tunning
power: Add support for EXPENSIVE_RENDERING
Power : Modify powerhint file for tofino target
power: tuning of camera open and close
Power : Modify powerhint file for parrot target
power : Modify powerhint file for parrot target
power : Modify powerhint file for parrot target
power: added powerhint.xml for neo target
Revert "Power:Replace library name from ndk_platform to ndk"
power : add powerhint file for parrot target
Revert "Power : Add tunings for 240FPS decode cases."
Power : Add tunings for 240FPS decode cases.
Revert "Power: Update powerhint with CPU,Bus DCVS settings"
Revert "[Waipio] Update CPU and DDR settimgs for camera cases"
[Waipio] Update CPU and DDR settimgs for camera cases
Power: Update powerhint with CPU,Bus DCVS settings
Power: Add powerhint.xml for waipio
Specify stable AIDL version number.
Conflicts:
Android.mk
Power.cpp
power-common.c
power-common.h
power-vendor-product.mk
Change-Id: Ide4d0b357670adaec4ce47b13dee0e393b8c08b4