summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-10-12aoc: prevent out of range on find_ramdump_sectionandroid-u-qpr1-beta-2.2_r0.6android-u-qpr1-beta-2.2_r0.5android-u-qpr1-beta-2.2_r0.4android-u-qpr1-beta-2.2_r0.3android-14.0.0_r0.44android-14.0.0_r0.43android-14.0.0_r0.42android-14.0.0_r0.41android-14.0.0_r0.40android-14.0.0_r0.39android-14.0.0_r0.37android-14.0.0_r0.36android-14.0.0_r0.35android-14.0.0_r0.34android-14.0.0_r0.33android-14.0.0_r0.31android-14.0.0_r0.25android-14.0.0_r0.23android-14.0.0_r0.21android-gs-tangorpro-5.10-android14-qpr1-betaandroid-gs-tangorpro-5.10-android14-qpr1android-gs-raviole-5.10-android14-qpr1android-gs-pantah-5.10-android14-qpr1-betaandroid-gs-pantah-5.10-android14-qpr1android-gs-lynx-5.10-android14-qpr1-betaandroid-gs-lynx-5.10-android14-qpr1android-gs-felix-5.10-android14-qpr1-betaandroid-gs-felix-5.10-android14-qpr1android-gs-bluejay-5.10-android14-qpr1yixuanjiang
when coredump is corrupt, the value of num_sections from ramdump_header may larger than the number of sections. Out of range access will cause the KP. Bug: 302929196 Change-Id: I423886cb8223617d84cf1b21231a914c70a30dd2 Signed-off-by: yixuanjiang <yixuanjiang@google.com>
2023-10-03aoc: Disable SysMMU interrupts during GSA unloadedandroid-u-qpr1-beta-2.2_r0.2android-u-qpr1-beta-2.2_r0.1android-u-qpr1-beta-2.1_r0.7android-u-qpr1-beta-2.1_r0.4android-u-qpr1-beta-2.1_r0.3android-u-qpr1-beta-2.1_r0.2android-14.0.0_r0.22android-14.0.0_r0.19android-gs-tangorpro-5.10-u-qpr1-beta2android-gs-raviole-5.10-android14-qpr1-betaandroid-gs-pantah-5.10-u-qpr1-beta2android-gs-lynx-5.10-u-qpr1-beta2android-gs-felix-5.10-u-qpr1-beta2android-gs-bluejay-5.10-android14-qpr1-betayixuanjiang
It has chance hit KP when GSA unload FW and AoC SSR then write coredump to dram without permission. Also sync irq control flow with watchdog_irq. Bug: 297627980 Change-Id: Idbfb71e2b729719ef5e93f9b68d6022396fa580a Signed-off-by: yixuanjiang <yixuanjiang@google.com>
2023-09-21audio: support the VoIP reuse for the incall_cap0 EPandroid-u-qpr1-beta-2.1_r0.5android-u-qpr1-beta-2.1_r0.1android-gs-raviole-5.10-u-qpr1-beta2android-gs-bluejay-5.10-u-qpr1-beta2Carter Hsu
Bug: 299407821 Test: 1. Verified VoIP record(incall_cap0) only scenario on T6 Pro 2. Verified the live caption(incall_cap0) for voice-call on C10 3. atest VtsHalAudioV7_1TargetTest Change-Id: Ib1c3e9760390d8a733b1027210ff1561d55256b4 Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-09-20alsa: check the consumed data size in irq process functionsmillerliang
The ALSA pcm lib driver assumes one period data was consumed in the snd_pcm_update_hw_ptr0 function when updating the hw_ptr. Update the hw_ptr if the consumed data size is equal to or bigger than one period size. Bug: 295546940 Test: Local test Change-Id: I668c4272dbccb08fe7c46105b3c74b3a64bdd2d5 Signed-off-by: millerliang <millerliang@google.com>
2023-09-13alsa: support dynamic stream type for pcm playbackmillerliang
Set the stream type for pcm playback to mmaped if runtime->access is SNDRV_PCM_ACCESS_MMAP_INTERLEAVED. Bug: 283402753 Test: Playback and Record Change-Id: Ib62931a42364089b44b32289b661a4798c0e23f4 Signed-off-by: millerliang <millerliang@google.com> (cherry picked from commit d86f91a0e010d078d499184135fc460d3ecb30ab)
2023-08-11alsa: set the workqueue to null after destroying itandroid-u-qpr1-beta-2_r0.7android-u-qpr1-beta-2_r0.5android-u-qpr1-beta-2_r0.4android-u-qpr1-beta-2_r0.3android-u-qpr1-beta-2_r0.2android-u-qpr1-beta-2_r0.1android-u-qpr1-beta-1_r0.7android-u-qpr1-beta-1_r0.5android-u-qpr1-beta-1_r0.4android-u-qpr1-beta-1_r0.3android-u-qpr1-beta-1_r0.2android-u-qpr1-beta-1_r0.1millerliang
In mmap playback, it would destory the workqueue during AoC SSR. Set the workqueue to null after destroying it to avoid acesss after freed in pcm close. Bug: 295074657 Change-Id: I258f124b3e8daaf9f160ec960f5ec86fd8f6227c Signed-off-by: millerliang <millerliang@google.com>
2023-08-01aoc: increase service limit to 96Alex Iacobucci
Bug: 293828277 Test: tested on device Change-Id: Ic8ad9a4a2ae8c4f032ea4d19a04d3f49161957cf Signed-off-by: Alex Iacobucci <alexiacobucci@google.com>
2023-07-26audio: support more channels capture and the APMG3 modeCarter Hsu
Bug: 292144567 Test: verified on test build Change-Id: I3a106431d4ce3468c8da262181d6ee6628848311 Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-07-19aoc/alsa: use a single workqueue to update hw_ptrmillerliang
If other process blocks the cpu too long in the common work queue, the updating hw_ptr function cannot be executed on time. Use a single workqueue to avoid it. Bug: 289577164 Change-Id: I48853bb94ca816d77a5f32c2a1ff0927bc2b04e2 Signed-off-by: millerliang <millerliang@google.com> (cherry picked from commit 0e40ca7fca8a1a4a31e5f3ef74cbd0cac070a654)
2023-07-14aoc: configure iommu from fw headersAlex Iacobucci
Bug: 282063178 Test: tested on device Change-Id: I4c867c878683d1aa42d7493c74eda085502c5bf2 Signed-off-by: Alex Iacobucci <alexiacobucci@google.com>
2023-07-09Merge android13-gs-pixel-5.10-udc into android13-gs-pixel-5.10-udc-qpr1PixelBot AutoMerger
SBMerger: 526756187 Change-Id: I8a2bc57fe0e57bc5cd708d222924404bc269d497 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2023-07-07aoc: don't overwrite crash reason on invalid magicAlex Iacobucci
Bug: 286990893 Test: tested on device Change-Id: I4bc8acd5a004091be187606ed0260120e96be6ea Signed-off-by: Alex Iacobucci <alexiacobucci@google.com>
2023-07-06aoc: add check on kzallocAlex Iacobucci
Bug: 289710588 Test: tested on device Change-Id: I89a5f62cfa80e21479e6b62bc722ddf6c5e97513 Signed-off-by: Alex Iacobucci <alexiacobucci@google.com>
2023-06-30aoc: Fix the device check for power commands in aoc_channel_dev.android-u-beta-5.3_r0.7android-u-beta-5.3_r0.5android-u-beta-5.3_r0.4android-u-beta-5.3_r0.2android-u-beta-5.3_r0.1android-14.0.0_r0.7android-14.0.0_r0.6android-14.0.0_r0.5android-14.0.0_r0.4android-14.0.0_r0.3android-14.0.0_r0.2android-14.0.0_r0.17android-14.0.0_r0.16android-14.0.0_r0.15android-14.0.0_r0.14android-14.0.0_r0.13android-14.0.0_r0.11android-gs-tangorpro-android14-releaseandroid-gs-tangorpro-5.10-u-beta5.3android-gs-tangorpro-5.10-android14android-gs-raviole-android14-releaseandroid-gs-raviole-5.10-u-beta5.3android-gs-raviole-5.10-android14android-gs-pantah-android14-releaseandroid-gs-pantah-5.10-u-beta5.3android-gs-pantah-5.10-android14android-gs-lynx-android14-releaseandroid-gs-lynx-5.10-android14android-gs-felix-android14-releaseandroid-gs-felix-5.10-u-beta5.3android-gs-felix-5.10-android14android-gs-bluejay-android14-releaseandroid-gs-bluejay-5.10-u-beta5.3android-gs-bluejay-5.10-android14Luis Delgado de Mendoza
CTS Sensor/DeviceSuspendTests was failing because the device fails to enter the suspend state. Bug: 288985122 Fix: 288985122 Test: Validated CTS passes. Change-Id: I1cfdae577e8e3636795afc9b900b50585db6da5a Signed-off-by: Luis Delgado De Mendoza <luisddmg@google.com>
2023-06-18Merge android13-gs-pixel-5.10-udc into android13-gs-pixel-5.10-udc-qpr1PixelBot AutoMerger
SBMerger: 526756187 Change-Id: I9e65ac9827d1bc59c0f760fb4e117d96026c276a Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2023-06-15aoc: fix retrieving ramdump crash infoandroid-u-beta-4_r0.4android-u-beta-4_r0.3android-u-beta-4_r0.2android-gs-pantah-5.10-u-beta4android-gs-lynx-5.10-u-beta4android-gs-felix-5.10-u-beta4Alex Iacobucci
Bug: 287265271 Test: tested on device Change-Id: I3c165fe2719d5d667a8e020d947e2ebcc47a5bdc Signed-off-by: Alex Iacobucci <alexiacobucci@google.com>
2023-06-11Merge android13-gs-pixel-5.10-udc into android13-gs-pixel-5.10-udc-qpr1PixelBot AutoMerger
SBMerger: 526756187 Change-Id: If9309e45a758da9b5ff385e497f019facf0bc905 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2023-06-08aoc/alsa: do not queue a work if cancel_work_sync is in progressandroid-u-beta-4_r0.7android-u-beta-4_r0.5android-u-beta-4_r0.1android-gs-tangorpro-5.10-u-beta4android-gs-raviole-5.10-u-beta4android-gs-bluejay-5.10-u-beta4millerliang
Do not queue a work if the cancel_work_sync is in progress. Bug: 284055134 Change-Id: I7e2a5b12ccd6cc28b23f15ea65fe4d66fe379b25 Signed-off-by: millerliang <millerliang@google.com>
2023-06-04Merge android13-gs-pixel-5.10-udc into android13-gs-pixel-5.10-udc-qpr1PixelBot AutoMerger
SBMerger: 526756187 Change-Id: I716c6b56263ba4763860880135b07d87e2e8fa91 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2023-06-01Only send channel service power commands to usf service.Luis Delgado de Mendoza Garcia
The USF service propagates these power commands to the other entities that need to act on it so there is only a need to send it to the wakeup USF service and the others will react accordingly. There is also no need to propagate this message to the USF non-wake-up channel because USF makes the necessary changes internally when the command is received in either channel. Bug: 283488727 Test: in-device verification. Change-Id: Ic9dc011c22498acc3cfa79e04397b5352afedc3d
2023-05-26Merge android13-gs-pixel-5.10-udc to android13-gs-pixel-5.10-udc-qpr1Wilson Sung
Bug: 277560840 Change-Id: I5b8bdeaa4c34f0333a841e86dcd48833b72353e9 Signed-off-by: Wilson Sung <wilsonsung@google.com>
2023-05-22aoc: dynamically compute ramdump offsetsAlex Iacobucci
Bug: 283492323 Test: tested on device Change-Id: I1cbbe5aca89a1420841f50362783e001a22fc1d7 Signed-off-by: Alex Iacobucci <alexiacobucci@google.com>
2023-05-19aoc: make ramdump size platform dependentAlex Iacobucci
Bug: 283492323 Test: tested on device Change-Id: I18bab98d778892ceed377186d1d02a9b0f9e06d7 Signed-off-by: Alex Iacobucci <alexiacobucci@google.com>
2023-05-18aoc/alsa: Check dev data within service_lockyixuanjiang
Prevent hit NULL pointer during aoc crash. Bug: 282328516 Change-Id: Iad9358fe1ce7731279385294425a6f795bc5ec48 Signed-off-by: yixuanjiang <yixuanjiang@google.com>
2023-05-11aoc: add a debug print for prvdata pointerandroid-u-beta-3_r0.3android-u-beta-3_r0.2android-u-beta-2.1_r0.4android-u-beta-2.1_r0.3android-u-beta-2.1_r0.2android-gs-raviole-5.10-u-beta3android-gs-raviole-5.10-u-beta2android-gs-pantah-5.10-u-beta2android-gs-bluejay-5.10-u-beta3android-gs-bluejay-5.10-u-beta2Alex Iacobucci
Bug: 279944255 Test: tested on device Change-Id: Iefc5fd83f00f5b54c4ff4feee1e65b1571240721 Signed-off-by: Alex Iacobucci <alexiacobucci@google.com>
2023-05-09aoc: handle when crash string is emptyAlex Iacobucci
Bug: 281075359 Test: tested on device Change-Id: I017085b59837d885525106bccb97f0687c4df473 Signed-off-by: Alex Iacobucci <alexiacobucci@google.com>
2023-05-04Allow chre channels to be MUXed.Luis Delgado de Mendoza Garcia
This CL adds the chre channels to the list of channels handled by the MUX. CHRE needs the MUX to keep 100% feature parity with what they have running through USF. Bug: 279597610 Test: in-device verification. Change-Id: Ib60f89792dcb48f6c35cfed9eb85f52c4e65a4c0 Signed-off-by: Luis Delgado de Mendoza Garcia <luisddmg@google.com>
2023-04-27audio: support hotword tap.Rios Kao
note: Add a new aoc service. Which would provide hotword pipeline in aoc to pcm driver. Add new mixer ctl for hotword_tap enabling. Hotword tap only lands for 201 or newer. Bug: 277194544 Test: manually test end-to-end on device Change-Id: I859574eedb3887857bb809bb824b0dd545058f02 Signed-off-by: Rios Kao <rioskao@google.com>
2023-04-27aoc/alsa: free isr handler before clearing workqueuemillerliang
Free the irs handler to stop triggering the irq process function before clearing the work queue. Add null check in the irq process functions. Bug: 279317502 Change-Id: I55bdb88177132b29af94e54804ff38e573d4a86c Signed-off-by: millerliang <millerliang@google.com>
2023-04-26aoc: update gs201 interface to the most recentAlex Iacobucci
Bug: 279670904 Test: tested on device Change-Id: I5cff7e9db40ebfbc44b47c76c88d0d0a841c1134 Signed-off-by: Alex Iacobucci <alexiacobucci@google.com>
2023-04-17aoc/alsa: modify isr handler configuration flowandroid-u-beta-2_r0.4android-u-beta-2_r0.3android-u-beta-2_r0.2millerliang
Set the isr process functions in alloc_aoc_audio_service and free the handler in free_aoc_audio_service Bug: 277633636 Change-Id: If4f613a4f8bc0d080987c88362de32d0e939a636 Signed-off-by: millerliang <millerliang@google.com>
2023-04-14Merge "Merge android13-gs-pixel-5.10-tm-qpr3 into ↵Pindar Yang
android13-gs-pixel-5.10-udc" into android13-gs-pixel-5.10-udc
2023-04-13Merge android13-gs-pixel-5.10-tm-qpr3 into android13-gs-pixel-5.10-udcPindar Yang
Bug: 255246572 Change-Id: I3a1d12a084afc583c0e307ecb55e2beaf6ca7012 Signed-off-by: Pindar Yang <pindaryang@google.com>
2023-04-13Revert "GKI: Revert "alsa: compress: enable pause in draining""Robert Lee
This reverts commit 11ba130d1e1737aca9f2d2bdd5213c492d861d0d. Reason for revert: b/275459411 cannot pause offload music in draining Bug: 275459411 Change-Id: Icffaf99422e1c0793baf60ee69d9e9b8f99aefd5 Signed-off-by: Robert Lee <lerobert@google.com>
2023-04-11aoc: dynamically allocate bitmap mask for service controlandroid-t-qpr3-beta-3_r0.5android-t-qpr3-beta-3.1_r0.5android-t-qpr3-beta-3.1_r0.4android-t-qpr3-beta-3.1_r0.3android-13.0.0_r0.92android-13.0.0_r0.85android-13.0.0_r0.84android-13.0.0_r0.83android-13.0.0_r0.82android-13.0.0_r0.127android-13.0.0_r0.126android-13.0.0_r0.125android-13.0.0_r0.124android-13.0.0_r0.123android-13.0.0_r0.121android-13.0.0_r0.117android-13.0.0_r0.116android-13.0.0_r0.115android-13.0.0_r0.114android-13.0.0_r0.113android-13.0.0_r0.112android-13.0.0_r0.107android-13.0.0_r0.106android-13.0.0_r0.105android-13.0.0_r0.104android-13.0.0_r0.103android-13.0.0_r0.100android-gs-tangorpro-5.10-android13-qpr3android-gs-raviole-5.10-t-qpr3-beta-3android-gs-raviole-5.10-android13-qpr3android-gs-pantah-5.10-t-qpr3-beta-3android-gs-pantah-5.10-android13-qpr3android-gs-lynx-5.10-android13-qpr3android-gs-felix-5.10-android13-qpr3-candroid-gs-felix-5.10-android13-qpr3android-gs-bluejay-5.10-t-qpr3-beta-3android-gs-bluejay-5.10-android13-qpr3yixuanjiang
size of bitmap mask is allocated from number of services to prevent out of bounds. Bug: 270148537 Change-Id: I9c83a7d340ec51e139f7caa2c16fd7ca22a7deb3 Signed-off-by: yixuanjiang <yixuanjiang@google.com>
2023-03-31aoc: add alsa controls for CHRE-AECAlex Iacobucci
Add alsa controls for CHRE AEC and PDM gain, and timeout. Bug: 271078701 Test: manually tested on devica Change-Id: I05937b5ce98bf14052dbdf5da8e913848414924b Signed-off-by: Alex Iacobucci <alexiacobucci@google.com>
2023-03-30aoc: update gs201 interface to 9835222yixuanjiang
Change-Id: Ic1645fb0dcf560e7a69ba6b32697b7025aa4c7fd Signed-off-by: yixuanjiang <yixuanjiang@google.com>
2023-03-30aoc: add hysteresis to restartAlex Iacobucci
Bug: 272600747 Test: manually tested on device Change-Id: Iab1057cdcf66fa2f13b32a71b0015b2602c9c4c8 Signed-off-by: Alex Iacobucci <alexiacobucci@google.com>
2023-03-28Properly match gsa_load and gsa_unload callsBryan Lavrich
Bug: 238553915 Change-Id: I6932c14ea5d6965f36bf8beda0c4ffff6815d006
2023-03-28alsa: change the channel number for AP-F1 mailboxmillerliang
AoC switched F1 to use AP-F1 mailbox. The channel number was added 16 in AP-F1 mailbox. Bug: 200718439 Test: Check the log to see if it supports interrtup-driven Change-Id: Ia830cbbb883c05afa75217ccd68605307c5725cf Signed-off-by: millerliang <millerliang@google.com>
2023-03-27aoc: restore gs101 interfaceAlex Iacobucci
Restore the gs101 interface to the latest version submitted within a prebuild. Bug: 275113166 Signed-off-by: Alex Iacobucci <alexiacobucci@google.com> Change-Id: I32b3e267e544315b6a8f27c15f2b678259a27ff1
2023-03-27alsa: send the eof after drain or partial drainAlex Iacobucci
Bug: 271233601 Test: builds Change-Id: Ia7df2027d83ff5ea1180e8ccd5e3030a53abc938 Signed-off-by: Robert Lee <lerobert@google.com>
2023-03-27aoc/alsa: modify free_aoc_audio_service flowAlex Iacobucci
In mmap playback with SSR case, aoc dev be freed first then snd_aoc_pcm_close will hit null pointer access bug: 272960822 Change-Id: I238b7e0c9b755781b6f23907dd52e4ed3b8d6e76 Signed-off-by: yixuanjiang <yixuanjiang@google.com>
2023-03-27Merge android13-gs-pixel-5.10-tm-qpr3 into android13-gs-pixel-5.10-udcRobin Peng
Bug: 255246572 Change-Id: I3bb7502822b410655bda76fa2bfe5660274c9882 Signed-off-by: Robin Peng <robinpeng@google.com>
2023-03-17Revert "GKI: Revert "alsa: compress: enable pause in draining" am: 11ba130d1e"Bryan Lavrich
This reverts commit 969a735c9fdb35f74995c048e481072f0af38347. Reason for revert: Needed manual merge first Change-Id: Idc9076a105dd4939de818b794dcf19f933e531b3
2023-03-17Revert "GKI: aoc/alsa: make args of_xlate_dai_name parameter constant am: ↵Bryan Lavrich
01802e4dec" This reverts commit 473bf62a4092dedafc8af3676471e87809da85d1. Reason for revert: Needed manual merge first Change-Id: I7f5addd3b465097b53d30fbe91fa7f552e09fe3e
2023-03-17Revert "GKI: remove get_pool_size dma_heap_op am: 03a372445d"Bryan Lavrich
This reverts commit 3277741c1ed2af2aba618d824e849c6f06ab14fb. Reason for revert: needed manual merge Change-Id: Ifa5e50609cb4eac48d9bd23f9b341f214c2f9f7d
2023-03-17GKI: remove get_pool_size dma_heap_op am: 03a372445dWill McVicker
Original change: https://partner-android-review.googlesource.com/c/kernel/private/google-modules/aoc/+/2014042 Change-Id: I65146168855d0ddd757431f0baebe9783a7cef68 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-17GKI: Revert "alsa: compress: enable pause in draining" am: 11ba130d1eWill McVicker
Original change: https://partner-android-review.googlesource.com/c/kernel/private/google-modules/aoc/+/2004197 Change-Id: I68ba3dee124776d1d87d6e13d46d95c55dde0862 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-17GKI: aoc/alsa: make args of_xlate_dai_name parameter constant am: 01802e4decCarlos Llamas
Original change: https://partner-android-review.googlesource.com/c/kernel/private/google-modules/aoc/+/1998263 Change-Id: I6fb77569659ecdf59b2fa7e1d4a95dc920425adc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>