| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
* Latest power-8952.c is used for msm8937 with mpctl V3.
Rename the file so we can add back the legacy msm8952 handling.
Change-Id: Iccd2a3c0abed2ef10d5f6c2182c0509a2fbe611d
|
|
|
|
|
|
|
| |
Set hwbinder buffer size to 16KB for 32 bit architecture.
Change-Id: I4272a12853269dd6363f58a5bb81caa09cc47e9a
CRs-Fixed: 2315283
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
* And fix the build errors
Change-Id: I183203edfd92d4672893d74aa7428bc9f5e17772
|
|
|
|
|
|
|
| |
* Minor cleanup
* Remove unused varibles and checks
Change-Id: I128953c2aa6a822d3950a872e50489b864e7a99c
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
| |
Change-Id: Ia26e5989a7063baad048e017715fe0f31332fb75
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This partially reverts I0ce40bbefb8c867dda8ee5eb1f948af2106e692d,
"power: Using PerfHAL API".
Especially older systems don't provide libqti-perfd-client.so but this
is hardcoded since the aforementioned change. Use the former code
checking for ro.vendor.extension_library and try to load that library if
the property exists before falling back to loading
libqti-perfd-client.so.
Change-Id: If89e3b88062be10af7cfd43b6ba92a22fda32754
Signed-off-by: Corinna Vinschen <xda@vinschen.de>
|
|
|
|
| |
Change-Id: Ie47d0e6b91b7bba378b0fdf53a345a021b0c2d48
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* These boost resources were introduced years ago and are no longer
suitable for modern SoCs. Each SoC should implement its own boost
resource in either platform specific power HAL source file or perf
HAL.
* Starting from LineageOS 15.1, recent SoCs no longer handle
POWER_HINT_INTERACTION in the power HAL, so power_hint_override
returns HINT_NONE and the default routine is always executed. E.g, on
msm8996 little cluster is always boosted to max frequency on touch,
which causes a huge battery drain.
* As a bonus, the "Failed to apply optimization" errors are gone.
Change-Id: I322f23f40fc5da7485f2c7a6cf8ee952d0fb94c6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
- Remove 8084 check as all 8084s make use of the display boost
- Convert the display_boost check to an soc_id check for 8974pro
- Add back display_boost (now soc_id) check to 8974's HAL
Change-Id: I237b9108e666f4cb0051d1c1bb22453d55ffcdc7
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
- Get soc_id in a common util function
- Return boolean values for the target-specific soc_id checks
Change-Id: I038c435d28855859f36566de7acf881037d070f2
|
|
|
|
|
|
|
| |
* They were added in 6ec1206b246a164acfb0aa7b43af9b04c759063e
but never used
Change-Id: I0f0d0336cd91715eb8aa4dcb42ae1e449da8603b
|
|
|
|
| |
Change-Id: I77942f23a9c617abac1a8533cfc1fd7bfa7f66e8
|
|
|
|
|
|
| |
* Don't copy paste the same governor check code multiple times
Change-Id: I2258553deb02a5ae149b0a96aca5fe5584f0ea14
|
|
|
|
| |
Change-Id: Ie3cfd0cb11b368cd9399a6dcea6b6cfa1f4d7916
|
|
|
|
| |
Change-Id: Id4c2aa5efa7101535a7311e34529e0b90c7491f1
|
|
|
|
|
|
|
| |
* This is not used by any recent qcom SoC
and not used by any SoC using this HAL.
Change-Id: If9b2997104bcd5e3ff27fc39c75590d07e813f85
|
|
|
|
|
|
|
| |
* Using AOSP interface .clang-format
* Clean Android.mk while we are at it
Change-Id: I630f72e3dffb676ca1930e72945e897f62103ada
|
|
|
|
|
|
| |
* Prevent conflict with other HALs
Change-Id: Icf1216410db26c3bb811d7aedde03e6d2f87e3cc
|
|
|
|
|
|
| |
* No longer needed.
Change-Id: I09fc90b4e5399b3f3b8a409edf3f57361da90100
|
|
|
|
| |
Change-Id: If45b59915022b563d4c5c9bf454b02b431a97833
|
|
|
|
|
|
|
|
| |
This change enables 4+0 core config for display off
sceanrios and in display off scenario system should
go back to default core config.
Change-Id: I57795988e7e0f1b2c1e160e2e454549a14bbde50
|
|
|
|
|
|
|
| |
Creates framework for handling special cases like
display off, video encode differently for 8992.
Change-Id: I195a96f0787c0d2dc2696c75a6f281774e2345cb
|
|
|
|
|
|
|
| |
This change bypasses execution of deprecated
code path in the power.c for dispaly off hint.
Change-Id: I3e6f5d2f5a9f1d55015149a0f7abc3c3f1f445e1
|
|
|
|
|
|
|
|
| |
Finds which CPU cores is online and does following below
1.Gets scaling governor
2.Sets scaling min freq
Change-Id: I209a6228294c945e943ff285ac8f38b7f97337d6
|
|
|
|
|
|
|
|
| |
1. Changes to set CPU0 min freq for 8939 target as below:
Display off case : set to 400Mhz
Display on case : set to 960Mhz.
Change-Id: Ie8cf31484e70f83594778c899485910b9ff2578e
|
|
|
|
|
|
|
|
| |
Changes to set Hi-Speed freq for 8909 target as below:
-Camcorder ON : set to 800Mhz
-Camcorder OFF : set to 998.4Mhz.
Change-Id: I8e4ca512c137a137fabe7762695e336a3ed37fdd
|
|
|
|
|
|
|
| |
Default encode hint was setting hispeed_freq to 1.1GHZ
This is not needed for 8909 hence overrode that.
Change-Id: I4c3695dbe82d43ebb34732559043b59815f7d49d
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
* Some devices may want to implement custom hooks
Change-Id: I9be8023c8134b3c262f27b43a28bec0e14c0fd7f
|
|
|
|
|
|
|
|
|
|
|
| |
Add TARGET_POWER_SET_FEATURE_LIB, since other devices
are not simply writing a 0/1 to a device node.
TARGET_TAP_TO_WAKE_NODE is still valid and both
TARGET_TAP_TO_WAKE_NODE and TARGET_POWER_SET_FEATURE_LIB are
allowed to coexist. (Currently set_feature only has double tap
to wake, but it may be extended in future)
Change-Id: I5c6204fd38a6fbe48e8aac49843bfa047c4b6436
|
|
|
|
| |
Change-Id: I545902b29f4828c127bc32def6e30b67ce4a3aa7
|
|
|
|
| |
Change-Id: I827c7f5ab27548eec8d6e4ee27a72fa883025002
|
|
|
|
|
|
| |
* And unify styling a little bit
Change-Id: I7f9bb43a534e352fdd7693ff975749864f8addb3
|
|
|
|
|
|
| |
Bug: 30432975
Test: compile power hal for walleye without warnings
Change-Id: I0d90c26462c662690f8a179250000b9a449a109f
|
|
|
|
|
|
|
|
| |
* The usage of this code was removed in commit
0c226b7921b421dd24363f15aefef1236aa25287
* powerhint.xml is now read by libqti-perfd
Change-Id: I498ad19d0bb43124e4518c5a4f20191a2c122997
|
|\
| |
| |
| |
| |
| |
| |
| | |
https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/power into lineage-17.0
"LA.UM.8.1.r1-09500-sm8150.0"
Change-Id: I709bb17c5fba7e700bb275b398c114f62cde7ed7
|
|/|
| |
| |
| | |
Change-Id: Idab188d773b1ec8033df39db3872b6ccaad401e7
|
| |
| |
| |
| | |
Change-Id: I5b897768a51c2cb9c6f6eb127b12c704b5937d73
|
| |
| |
| |
| |
| |
| | |
Added product makefiles. Moved powerhint XMLs to this project.
Change-Id: Icd0d1e46d0d9793197eb2e5fb5b65c06a5858647
|
| |
| |
| |
| |
| |
| |
| |
| | |
Add powerhint for video encoding @ 480FPS
CRs-Fixed: 2449387
Change-Id: I092c57e2964d5079ed295207b666d98a0b9b306f
|
|\|
| |
| |
| | |
Change-Id: Ic3ba148a50cffca007d0a2440b659d66b2fb4567
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Added product and board makefiles. Moved powerhint XMLs to this project.
Change-Id: I3d36f29f69f09166f84d2e42a6480cb590b04d2d
|
| |\ \ |
|
| | |/
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Moving from the default implementation to a binderized service with no
wrapping.
Now using 1.2 implementation of the IPower interface.
Change-Id: Ibefd916544f51545e6889684a051b2ecc5867fe2
|
| |/
| |
| |
| |
| |
| | |
Now conforms to the exact definition in the shared perf library
Change-Id: I6f92140b42800072283c2f3a52e6814fc0f1d5d2
|