summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-08-15pixel: Remove qti_kernel_headersHEADtachibana-mr1electimon
* Other devices including this repo will have conflicts Change-Id: I0e0f3fc6854a0a898f074660163f6bd9e39cfb87 Signed-off-by: electimon <electimon@gmail.com>
2023-08-15pixel: Disable userdebug diagnosticsEthan Chen
* We can't make use of most of the debug features on userdebug builds. Change-Id: I31df2090b31243b742c4e82dc08cd8491dada54f
2023-03-10Snap for 9720638 from 24c3aff6d08b1acc3871b65ec339637c3b137493 to ↵Android Build Coastguard Worker
tm-qpr3-release Change-Id: Ie9d3c5c330b2e7eed6ceda5e810d248ca350606b
2023-03-09Merge "thermal: Fix throttle/release step bypass issue" into tm-qpr-devTreeHugger Robot
2023-03-09Snap for 9712227 from 292ee1512472018c49f479a964e080c98b888bf0 to ↵Android Build Coastguard Worker
tm-qpr3-release Change-Id: If317b636816fcfc4a6afb7cde12713f864d5dc60
2023-03-08Merge changes from topic "tm-adpf-1st-frame-boost-gpu" into tm-qpr-devJimmy Shiu
* changes: ADPF: send ADPF_FIRST_FRAME hint ADPF: support sending power hint
2023-03-08ADPF: send ADPF_FIRST_FRAME hintJimmy Shiu
To send ADPF_FIRST_FRAME hint when reportWorkDurations was called first time after stale state. Bug: 243025173 Test: PtsUiBench & CUJ Change-Id: I4377b1f549646bcf44bdf26b2657b7bc0646f9a4 Merged-In: I4377b1f549646bcf44bdf26b2657b7bc0646f9a4
2023-03-08ADPF: support sending power hintJimmy Shiu
Send a hint only when the system can support the hint. Bug: 243025173 Test: PtsUiBench & CUJ Change-Id: If56d0c22f8dd61f5fe27ba79f08f2963269abe41 Merged-In: If56d0c22f8dd61f5fe27ba79f08f2963269abe41
2023-02-24thermal: Fix throttle/release step bypass issueTeYuan Wang
The throttle/release step check will be bypassed if the sensor has no binded power rail or the power data is still collecting. Fix this issue with adding a check. Bug: 269730273 Test: verified by emul_temp Change-Id: I79ce02fa589a79bbe2dd0983c86099f36acd3c06
2023-02-11Snap for 9593491 from 744867aa387aa6cc8b776b357e76daf500bf6e46 to ↵Android Build Coastguard Worker
tm-qpr3-release Change-Id: Ieeb1924577f5ae4d51de7e4a96cf322868512759
2023-02-08Revert "cs40l26: Improve the performance for primitive effects"Chase Wu
If we remove the delay time in the erase function, under back-to-back fast typing scenario, FW would still has the chance to enter a unknown situation and the erase function will be losed forever. Bug: 266331748 Test: all current haptic testing and manually four fingers typing This reverts commit db2f13d19fe68a77ec9f1c1584a222dfa2c9e0c7. Change-Id: I4929300ad5b1927531cb89e7980f1aeace5980ff
2023-02-04Snap for 9562233 from 78b56211491a0839760625807b044e3d8a4ec6dc to ↵Android Build Coastguard Worker
tm-qpr3-release Change-Id: I419aaaa7e26d72797fe5994ebff5211060477404
2023-02-03Merge "[DO NOT MERGE] Usb Gadget HAL: modify monitorfs behavior" into tm-qpr-devTreeHugger Robot
2023-02-02[DO NOT MERGE] Usb Gadget HAL: modify monitorfs behaviorRay Chi
Currently, monitorffs will pull up gadget when the ffs endpoints are ready. When the device change the data role from peripheral to host, the pullup behavior will still occur. It will cause the host mode and peripheral mode start in the same time. This patch will check typec and USB gadget state before pulling up gadget. Bug: 263435622 Bug: 266635426 Test: verified pass Change-Id: Ibd8d3c3c34b91657327903e1063351448722e41c Merged-In: Ibd8d3c3c34b91657327903e1063351448722e41c Signed-off-by: Ray Chi <raychi@google.com> (cherry picked from commit 502013d5347849aa9a2ec95d114998c22b646b17)
2023-02-02Snap for 9552684 from d0019075c9f7e72de82398caeb81326585296e6c to ↵Android Build Coastguard Worker
tm-qpr3-release Change-Id: I478ddcac47fceecfa3b33b95b75f370e5c02bfb7
2023-02-01Merge "Add PcieLinkStatsReported for PCIe link statistics logging" into ↵Doug Zobel
tm-qpr-dev
2023-01-28Snap for 9535926 from 4fcdaf781fb173f2d318df1b32abd76ad280e6c5 to ↵Android Build Coastguard Worker
tm-qpr3-release Change-Id: I05084e63c6940b4e7d104c1d4d1e6d85e9f2532c
2023-01-26pixelstats: Skip uploading atom metrics if device UART enabledZiyi Cui
For long irq atom and resume latency atom, we skip upload if device UART enabled. Test: To see if uart enable adb shell getprop | grep init To verify if atom uploading data adb shell cmd stats print-stats | grep 105043 Bug: 266465677 Change-Id: I32c9fd9ffeecb33fd35ab181d19f400518a7f743 Signed-off-by: Ziyi Cui <ziyic@google.com>
2023-01-24Add PcieLinkStatsReported for PCIe link statistics loggingDoug Zobel
eldar/887079995 Test: adb logcat "pixelstats-vendor:D *:S" Bug: 264287533 Change-Id: Icaa15b264fbf2f0a368411c5125fd9984cc76f66 Merged-In: Icaa15b264fbf2f0a368411c5125fd9984cc76f66 Signed-off-by: Doug Zobel <zobel@google.com>
2023-01-13Snap for 9485425 from bcd846dcba14eb4df5eedf7a48fb8d78051fa99a to ↵Android Build Coastguard Worker
tm-qpr3-release Change-Id: Iaf948ba824e0b15b8a4261e6979531db673611cc
2023-01-10[DO NOT MERGE] cs40l25: add state polling timeoutChase Wu
Replacing the infinite vibe_state checking to prevent the abnormal non-stop symptom which would cause HAL stuck on the checking step. Even if there is a vibration currently playing, we should stop the current vibration and play the new one. We can assume this because the Framework will handle all the prioritization of requests before invoking HAL APIs. Bug: 250074997 Test: Use previous non-stop FW to test it Change-Id: I5dfc0cd4eb581d4db23094e9c73ce8e08ad85ea6
2023-01-10Snap for 9470583 from 0aaebb34f1bf6deaae986d5063cf28b46b22fc58 to ↵Android Build Coastguard Worker
tm-qpr3-release Change-Id: I49ed959256152e17a7295ad57c5491bb3efa78d9
2023-01-04Merge "thermal: add sensor_status_check when reading the temperature" into ↵Kame(TeYuan) Wang
tm-qpr-dev
2022-12-29Add wifi_diagnostic binary into packagechenpaul
Bug: 253366496 Test: wifi_diagnostic binary is available Change-Id: I24c530df17def7dc4e6fa2922fa0e51d27436cde
2022-12-26Merge changes from topic "L26_performance_improvement" into tm-qpr-devTreeHugger Robot
* changes: cs40l26: Prevent waveform number out of range cs40l26: Improve the performance for primitive effects
2022-12-23thermal: add sensor_status_check when reading the temperatureTeYuan Wang
sensor_status_map will not be initilized when the vendor.disable.thermal.control debug property is enabled, so add a check to prevent crashing if someone access sensor_status_map. Bug: 254163925 Test: swithc vendor.disable.thermal.control and check no thermalHAL crash Change-Id: I6014ccdb974c1620a41df8ae32c612ff861514ca
2022-12-22thermal: avoid the duplicate sensor reading logTeYuan Wang
Bug: 254163925 Test: emul_temp and verify the sensor log Change-Id: Ia6eb5d153abae5324b8cd2eb3dd1204441e0a073
2022-12-20thermal: reconnect to PowerHAL in case of failure for legacyTeYuan Wang
Bug: 262585499 Test: Tested on Raven, stop/start vendor.power-hal-aidl and verified thermal power hint by emul_temp Change-Id: I1de70f05e0eb0ae4b0b2950273c437835c3fc4be
2022-12-19cs40l26: Prevent waveform number out of rangeChase Wu
When we call the cancel vibration right after a long compose effect, the erase command will timeout and the active ID was set to -1. After the effect finished, we will based on the active ID do the erase function if it's not -1. So, there is a chance that the active ID is -1 and the compose effect was not erased, which will also cause an error when testing the VTS. To fix this, I add this patch to solve this problem. Bug: 261832151 Test: atest VtsHalVibratorTargetTest Change-Id: I63a8455962061edce2a9615084aac6e481c91012 Signed-off-by: Chase Wu <chasewu@google.com>
2022-12-19cs40l26: Improve the performance for primitive effectsChase Wu
When we call eraseOwtEffect() in HAL, the ff core will call kernel stop() before calling the cs40l26_erase_owt() and it will wait for the SVC waveform protecting time every time. Under our use case, the vibrator should under stop status before we call the eraseOwtEffect(). So, in eraseOwtEffect(), we turn off this protecting time before we do the EVIOCRMFF and turn on it at the end of the eraseOwtEffect(). Bug: 261687849 Test: atest PtsVibratorHalTestSuite \ PtsHapticsTestCases \ VibratorHalCs40l26TestSuite \ VtsHalVibratorManagerTargetTest \ VtsHalVibratorTargetTest \ android.os.cts.VibratorTest \ android.os.cts.VibratorManagerTest \ android.os.cts.VibrationEffectTest \ android.os.cts.VibrationAttributesTest \ android.os.cts.CombinedVibrationTest \ Change-Id: I48a2ad30dfb7069955ca8e5139756d0e3390fd29 Signed-off-by: Chase Wu <chasewu@google.com>
2022-12-19thermal: reconnect to PowerHAL in case of failureTeYuan Wang
Bug: 262585499 Test: stop/start vendor.power-hal-aidl and verified thermal power hint by emul_temp Change-Id: I6dfc0a3d7f6ef0c39a464f5952bb447db73c20d8
2022-12-01Merge changes from topic "qpr_perf_metrics" into tm-qpr-devZiyi Cui
* changes: pixelatom: add atom for resume latency metrics pixelatom: implement atom log function for long irq atom Add VendorLongIRQStatsReported atom
2022-12-01Merge "pixelatom: add atom for temperature residency metrics" into tm-qpr-devZiyi Cui
2022-12-01Merge "pixelstats: correct definition of battery health status" into tm-qpr-devJenny Ho
2022-11-29pixelatom: add atom for resume latency metricsZiyi Cui
Add pixel atom for resume latency metrics Bug: 227809911 Bug: 232541623 Test: Verified the existence of atom and correctness of atom stats adb shell cmd stats print-logs && logcat -b all | grep -i 105044 Signed-off-by: Ziyi Cui <ziyic@google.com> Change-Id: Id1de281a6432d75085e70af50299d687e2238e08 (cherry picked from commit 716ffa3025e70210d82a3e9fe6ba01fb81c5fe09)
2022-11-29pixelatom: implement atom log function for long irq atomZiyi Cui
Implement log function for long irq metrics atom Bug: 227809911 Bug: 232541623 Test: Verified the existence of atom and correctness of atom stats adb shell cmd stats print-logs && logcat -b all | grep -i 105043 Signed-off-by: Ziyi Cui <ziyic@google.com> Merged-In: I2fffd36772dda1e590a09f8d8fcaf3164f74aafb Change-Id: I2fffd36772dda1e590a09f8d8fcaf3164f74aafb (cherry picked from commit 10613eb0db34072c38078d4fb73a3f1e979d24af)
2022-11-29Add VendorLongIRQStatsReported atomRafal Slawik
Bug: 227809911 Bug: 248354974 Test: Tested long irq atom Merged-In: I22ef9e68dc9c27d6078245d03a47376136d2d059 Change-Id: I22ef9e68dc9c27d6078245d03a47376136d2d059 (cherry picked from commit 1199a637191771ce214fc92b6556e5206fe5dbe1)
2022-11-29pixelatom: add atom for temperature residency metricsZiyi Cui
Add pixel atom for temperature residency metrics Bug: 246799997 Test: Verified the existence of atom and correctness of atom stats adb shell cmd stats print-logs && logcat -b all | grep -i 105045 Signed-off-by: Ziyi Cui <ziyic@google.com> Merged-In: I903296163b3f6a5d753a1ce1adca3af1ba8185c1 Change-Id: I903296163b3f6a5d753a1ce1adca3af1ba8185c1
2022-11-23pixelstats: support variant speaker numbers up to 4.Roger Fang
Some products have the speaker numbers more than two. To cover atom report stats of VendorSpeakerStatsReported. Bug: 248451580 Test: manually tested passed and logcat verified Change-Id: Ia12b873663bd000db276e4a047e6e0538db45725 Signed-off-by: Roger Fang <rogerfang@google.com>
2022-11-19Merge "Add CMA buffer alloc/info trace to memory category" into tm-qpr-devWei Wang
2022-11-18Add CMA buffer alloc/info trace to memory categoryMartin Liu
Bug: 258188795 Test: capture trace from traceur and able to see CMA traces Change-Id: I0f8ce176f0d14d94dc69571d5bbd5174733c253e Signed-off-by: Martin Liu <liumartin@google.com>
2022-11-15thermal: add traces for tskin mitigationSayanna Chandula
Add traces for temperatures, PI parameters and cdev votes Bug: 230664512 Test: Build and boot on device. Check traces for hal adb shell atrace --stream hal > trace.txt Change-Id: I6070346bd21bbb5d07ff151ca1aea718cd889cf0 Signed-off-by: Sayanna Chandula <sayanna@google.com>
2022-11-14Merge "MM: dump pixel trace at bugreport" into tm-qpr-devMinchan Kim
2022-11-11MM: dump pixel trace at bugreportMinchan Kim
Create pixel speicifc trace buffer and enable CMA trace events. At bugreport, dumpstate will dump the trace buffer into dumpstate_board.txt binder:3947_2-3963 [003] .... 29.954681: cma_alloc_start: name=vframe count=16 align=4 binder:3947_2-3963 [003] .... 29.956230: cma_alloc_finish: name=vframe pfn=946080 page=000000003d6b380b count=16 align=4 binder:3947_2-3963 [003] .... 29.956235: cma_alloc_info: name=vframe pfn=0x946080 count=16 align=4 nr_migrated=16 nr_reclaimed=0 nr_mapped=16 err_iso=0 err_mig=0 err_test=0 binder:3947_2-3963 [003] .... 29.988325: cma_release: name=vframe pfn=946080 page=000000003d6b380b count=16 It's useful to investigate CMA allocation problems. Test: "adb bugreport" includes the trace dump in dumpstate_board.txt Bug: 238728493 Change-Id: I5eb2f79152d32ff7dbb4b9a7ea679facb186aa00 Signed-off-by: Minchan Kim <minchan@google.com>
2022-11-10Merge "ADPF: fix use-after-free crash" into tm-qpr-devTreeHugger Robot
2022-11-10pixelstats: correct definition of battery health statusJenny Ho
Bug: 235378836 Change-Id: Ic68e4e9d0549d4866c29b0180445cae26b817a2c Signed-off-by: Jenny Ho <hsiufangho@google.com>
2022-11-02Pixelstats: support cca_rate sysfsRoger Fang
Add cca rates of VendorAudioHardwareStatsReported Atest cmd: atest PixelAtomsTest:com.google.pixelatoms.PixelAtomsTest#testVendorPushedAtomsHasReverseDomainName Bug: 249225148 Test: check log in logcat & ATEST manually Change-Id: Ic2572439c889cab499cfb5477de7503723e9f083 Signed-off-by: Roger Fang <rogerfang@google.com>
2022-10-28ADPF: fix use-after-free crashJimmy Shiu
The main problem is the timer thread could be woken after the session was destroyed. We did have a closed flag which was set in destructor and the flag would be checked before handleMessage accessing the session instance. To fix the problem, the operations of flag checking and session instance accessing should be guarded by the lock. Bug: 236674672 Test: manual test Change-Id: I49a18efbc135b1bc070b101038a8a0bcc6e19fec
2022-10-18Merge "libperfmgr: add control property to control action" into tm-qpr-devWei Wang
2022-10-14libperfmgr: add control property to control actionWei Wang
Add some basic control logic into libperfmgr to disable or enable certain actions. "EnableProperty" can be set by external process or internally by PropertyNode, if not assigned or set, action is enabled by default. Bug: 241054358 Test: /data/nativetest64/libperfmgr_test/libperfmgr_test Signed-off-by: Wei Wang <wvw@google.com> Change-Id: I5742bb901492f2675c5c88d9b09c1072ded8432a