summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-08-23[Copybara Auto Merge] Merge branch pro into android13-gs-pixel-5.10-udc-qpr1android-u-qpr3-beta-2_r0.7android-u-qpr3-beta-2_r0.6android-u-qpr3-beta-2_r0.5android-u-qpr3-beta-2_r0.4android-u-qpr3-beta-2_r0.3android-u-qpr3-beta-2_r0.2android-u-qpr3-beta-2.1_r0.7android-u-qpr3-beta-2.1_r0.5android-u-qpr3-beta-2.1_r0.4android-u-qpr3-beta-2.1_r0.3android-u-qpr3-beta-2.1_r0.2android-u-qpr3-beta-2.1_r0.1android-u-qpr3-beta-1_r0.7android-u-qpr3-beta-1_r0.5android-u-qpr3-beta-1_r0.4android-u-qpr3-beta-1_r0.3android-u-qpr3-beta-1_r0.2android-u-qpr3-beta-1_r0.1android-u-qpr2-beta-3_r0.7android-u-qpr2-beta-3_r0.6android-u-qpr2-beta-3_r0.5android-u-qpr2-beta-3_r0.4android-u-qpr2-beta-3_r0.3android-u-qpr2-beta-3_r0.2android-u-qpr2-beta-3.1_r0.7android-u-qpr2-beta-3.1_r0.5android-u-qpr2-beta-3.1_r0.4android-u-qpr2-beta-3.1_r0.3android-u-qpr2-beta-3.1_r0.2android-u-qpr2-beta-3.1_r0.1android-u-qpr2-beta-2_r0.7android-u-qpr2-beta-2_r0.5android-u-qpr2-beta-2_r0.4android-u-qpr2-beta-2_r0.3android-u-qpr2-beta-2_r0.2android-u-qpr2-beta-2_r0.1android-u-qpr2-beta-1_r0.6android-u-qpr2-beta-1_r0.5android-u-qpr2-beta-1_r0.4android-u-qpr2-beta-1_r0.3android-u-qpr2-beta-1_r0.2android-u-qpr2-beta-1_r0.1android-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-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-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.5android-u-qpr1-beta-2.1_r0.4android-u-qpr1-beta-2.1_r0.3android-u-qpr1-beta-2.1_r0.2android-u-qpr1-beta-2.1_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.1android-15-dp-2_r0.6android-15-dp-2_r0.5android-15-dp-2_r0.4android-15-dp-2_r0.3android-15-dp-2_r0.2android-15-dp-2_r0.1android-15-dp-1_r0.7android-15-dp-1_r0.5android-15-dp-1_r0.4android-15-dp-1_r0.3android-15-dp-1_r0.2android-15-dp-1_r0.1android-15-beta-2_r0.6android-15-beta-2_r0.5android-15-beta-2_r0.4android-15-beta-2_r0.3android-15-beta-2_r0.2android-15-beta-2_r0.1android-15-beta-1_r0.6android-15-beta-1_r0.5android-15-beta-1_r0.4android-15-beta-1_r0.3android-15-beta-1_r0.2android-15-beta-1_r0.1android-14.0.0_r0.76android-14.0.0_r0.75android-14.0.0_r0.74android-14.0.0_r0.73android-14.0.0_r0.72android-14.0.0_r0.71android-14.0.0_r0.66android-14.0.0_r0.65android-14.0.0_r0.64android-14.0.0_r0.63android-14.0.0_r0.62android-14.0.0_r0.61android-14.0.0_r0.56android-14.0.0_r0.55android-14.0.0_r0.54android-14.0.0_r0.53android-14.0.0_r0.52android-14.0.0_r0.51android-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.22android-14.0.0_r0.21android-14.0.0_r0.19android-gs-tangorpro-5.10-u-qpr1-beta2android-gs-tangorpro-5.10-android15-dpandroid-gs-tangorpro-5.10-android15-betaandroid-gs-tangorpro-5.10-android14-qpr3-betaandroid-gs-tangorpro-5.10-android14-qpr2-betaandroid-gs-tangorpro-5.10-android14-qpr2android-gs-tangorpro-5.10-android14-qpr1-betaandroid-gs-tangorpro-5.10-android14-qpr1android-gs-raviole-5.10-u-qpr1-beta2android-gs-raviole-5.10-android15-dpandroid-gs-raviole-5.10-android15-betaandroid-gs-raviole-5.10-android14-qpr3-betaandroid-gs-raviole-5.10-android14-qpr2-betaandroid-gs-raviole-5.10-android14-qpr2android-gs-raviole-5.10-android14-qpr1-betaandroid-gs-raviole-5.10-android14-qpr1android-gs-pantah-5.10-u-qpr1-beta2android-gs-pantah-5.10-android15-dpandroid-gs-pantah-5.10-android15-betaandroid-gs-pantah-5.10-android14-qpr3-betaandroid-gs-pantah-5.10-android14-qpr2-betaandroid-gs-pantah-5.10-android14-qpr2android-gs-pantah-5.10-android14-qpr1-betaandroid-gs-pantah-5.10-android14-qpr1android-gs-lynx-5.10-u-qpr1-beta2android-gs-lynx-5.10-android15-dpandroid-gs-lynx-5.10-android15-betaandroid-gs-lynx-5.10-android14-qpr3-betaandroid-gs-lynx-5.10-android14-qpr2-betaandroid-gs-lynx-5.10-android14-qpr2android-gs-lynx-5.10-android14-qpr1-betaandroid-gs-lynx-5.10-android14-qpr1android-gs-felix-5.10-u-qpr1-beta2android-gs-felix-5.10-android15-dpandroid-gs-felix-5.10-android15-betaandroid-gs-felix-5.10-android14-qpr3-betaandroid-gs-felix-5.10-android14-qpr2-betaandroid-gs-felix-5.10-android14-qpr2android-gs-felix-5.10-android14-qpr1-betaandroid-gs-felix-5.10-android14-qpr1android-gs-bluejay-5.10-u-qpr1-beta2android-gs-bluejay-5.10-android15-dpandroid-gs-bluejay-5.10-android15-betaandroid-gs-bluejay-5.10-android14-qpr3-betaandroid-gs-bluejay-5.10-android14-qpr2-betaandroid-gs-bluejay-5.10-android14-qpr2android-gs-bluejay-5.10-android14-qpr1-betaandroid-gs-bluejay-5.10-android14-qpr1Whi copybara merger
edgetpu: remove log for unbalanced BTS deactivate Firmware doesn't balance BTS activate/deactivate messages, so don't warn about an unbalanced deactivate. Roll-up the following changes from darwinn-2.0: a4d6e6e26 edgetpu: remove unbalanced BTS deactivate log message 102f22f88 edgetpu: rate limit log for unbalanced BTS deactivate Bug: 286556421 GitOrigin-RevId: 114aec763552386a9d6d544dc8dc1c0095a84846 Change-Id: I3c834d82a8a2f3b48f19bcf5abc5f6cac851bdbe
2023-06-25Merge android13-gs-pixel-5.10-udc into android13-gs-pixel-5.10-udc-qpr1PixelBot AutoMerger
SBMerger: 526756187 Change-Id: If30afaf7b2f0cf2595d359250e834d9c4c23afad Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2023-06-15[Copybara Auto Merge] Merge branch pro into android13-gs-pixel-5.10-udcandroid-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-u-beta-4_r0.4android-u-beta-4_r0.3android-u-beta-4_r0.2android-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-u-beta4android-gs-pantah-5.10-android14android-gs-lynx-android14-releaseandroid-gs-lynx-5.10-u-beta4android-gs-lynx-5.10-android14android-gs-felix-android14-releaseandroid-gs-felix-5.10-u-beta5.3android-gs-felix-5.10-u-beta4android-gs-felix-5.10-android14android-gs-bluejay-android14-releaseandroid-gs-bluejay-5.10-u-beta5.3android-gs-bluejay-5.10-android14Whi copybara merger
edgetpu: replace use of macros that modify control flow Roll-up the following commits from darwinn-2.0: 8f5061cc6 edgetpu: replace group leader check macro that modifies control flow 8e1fc53e2 edgetpu: kci replace use of macro that modifies control flow Bug: 286406228 GitOrigin-RevId: 60b1b7ad3d0448758f8442765858723bdfadd300 Change-Id: Ie479cfad75bf19c91472c91b8c3a434b15c4960f
2023-06-11Merge android13-gs-pixel-5.10-udc into android13-gs-pixel-5.10-udc-qpr1PixelBot AutoMerger
SBMerger: 526756187 Change-Id: I523929006e969cfbc14f4d2090e3c051f9c444d5 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2023-06-06[Copybara Auto Merge] Merge branch pro into android13-gs-pixel-5.10-udcandroid-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-beta4Whi copybara merger
edgetpu: hold mmap_lock around pin_user_pages mmap_lock must be held around call to pin_user_pages to protect against concurrent address space modifications. Bug: 283787360 edgetpu: usage-stats remove unnecessary out of memory log edgetpu: return -EIO for operations on device with bad firmware state GitOrigin-RevId: 2bde5e1f63d19540e003164600bd173b644dec57 Change-Id: I8ea1e112b54f76b9199d991501643aaf57985781
2023-05-04[Copybara Auto Merge] Merge branch pro into android13-gs-pixel-5.10-udcandroid-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-beta2Whi copybara merger
edgetpu: Add client_priv to edgetpu_mailbox_attr Bug: 279805034 GitOrigin-RevId: bbcd0b7552351d0f81febc5d08a520005cc1d94a Change-Id: If9cbbd8f6f63f9b66a89e86739b42d247ceee1c1
2023-04-26[Copybara Auto Merge] Merge branch pro into android13-gs-pixel-5.10-udcWhi copybara merger
edgetpu: add error log for canceled operation due to fatal error GitOrigin-RevId: 024cda1176f0ccbff338ff0fcee6adea63298423 Change-Id: Iaf4719c3cd4588f51fb52dad458e9a529d659ca9
2023-04-24[Copybara Auto Merge] Merge branch pro into android13-gs-pixel-5.10-udcWhi copybara merger
edgetpu: Handle missing scmversion Bug: 277787303 GitOrigin-RevId: ab6f26a2075336422853611d227a6acd73564900 Change-Id: I82a225a6f206692f5e6cf59617ac4aecc2784a48
2023-04-05[Copybara Auto Merge] Merge branch pro into partner-androidandroid-u-beta-2_r0.4android-u-beta-2_r0.3android-u-beta-2_r0.2Whi copybara merger
edgetpu: KCI accept out-of-order responses Bug: 274574929 edgetpu: Use scmversion over GIT_REPO_TAG Bug: 274893782 GitOrigin-RevId: b649f62d1b52ccf71b7ba954056328564bc4d92a Change-Id: I2dcf9f0107b279dfc3d586eef9a3003dfc7cb8f5
2023-03-29[Copybara Auto Merge] Merge branch pro into android13-gs-pixel-5.10-udcWhi copybara merger
edgetpu: fix -Wcast-function-type-strict Bug: 264965700 edgetpu: Make group required for creating fence Bug: 258868303 edgetpu: create debugfs symlinks for non-default device names Revert "edgetpu: Continue powering up if the block is still on" Bug: 272701322 GitOrigin-RevId: 80b26b9415c1973231e58edb036959418a3d5af1 Change-Id: I1f98a50db75381929521ec61350619babf30290e
2023-03-22[Copybara Auto Merge] Merge branch pro into android13-gs-pixel-5.10-udcWhi copybara merger
edgetpu: Continue powering up if the block is still on Bug: 272701322 edgetpu: retry and sleep until block down Bug: 272701322 (repeat) edgetpu: Add etdev as private data for syncfences Bug: 264971968 edgetpu: usage_stats add cluster reconfigurations counters Bug: 271372136 Bug: 271374892 edgetpu: usage_stats: process metrics v2 data Bug: 271372136 (repeat) Bug: 271374892 (repeat) edgetpu: pm: reject power up if thermal suspended GitOrigin-RevId: cb79837d6fe24112fabf8c0385bfaa5eb3220197 Change-Id: I5f18886750d6f9703286b6e2441fcd6da09c9382
2023-03-20[Copybara Auto Merge] Merge branch pro into android13-gs-pixel-5.10-udcWhi copybara merger
edgetpu: usage_stats send metrics v2 requests with v1 fallback Bug: 271372136 edgetpu: usage stats: sync additional metrics v2 changes Bug: 271372136 (repeat) GitOrigin-RevId: af7a954e7f7903ae5c1dcdf6f24f48d9c1ae517c Change-Id: Ie8f815636eaaf818338a1573668725b37bc6de45
2023-03-13[Copybara Auto Merge] Merge branch pro into android13-gs-pixel-5.10-udcandroid-u-beta-1_r0.5android-u-beta-1_r0.4android-u-beta-1_r0.3android-gs-raviole-5.10-u-beta1android-gs-pantah-5.10-u-beta1android-gs-bluejay-5.10-u-beta1Whi copybara merger
edgetpu: Only call .power_up if needed Bug: 272701322 edgetpu: Downgrade warning on external mailbox alloc Bug: 269476405 edgetpu: usage stats add field definitions for metrics v2 edgetpu: remove "_locked" from edgetpu_firmware_tracing_set_level Bug: 262916889 edgetpu: usage stats ignore metric fields beyond known size Bug: 271372136 edgetpu: Add firmware dynamic tracing support Bug: 262916889 (repeat) edgetpu: Add KCI handing for dynamic fw tracing levels Bug: 262916889 (repeat) edgetpu: Add missing pm error handling GitOrigin-RevId: c501899a7d9529f3b85a65d4792f1985452225d5 Change-Id: I604850162c7aa3b3310c6d5802dbba1bc2fa64fa
2023-02-28[Copybara Auto Merge] Merge branch pro into android13-gs-pixel-5.10-udcWhi copybara merger
edgetpu: set no limit on DMA segment size Bug: 263431665 edgetpu: Fix missing wakelock unlock edgetpu: signal any unsignaled dma fences at device group disband Bug: 258868303 edgetpu: dma fence debugfs show owning group Bug: 258868303 (repeat) edgetpu: dma fence creation optionally associated with device group Bug: 258868303 (repeat) edgetpu: Enable best-fit algo for iova allocator Bug: 243837563 edgetpu: Add a static debug pointer to driver state Bug: 260768055 edgetpu: Add reasonable defaults to Makefile edgetpu: Fix pmu-status-base reading Bug: 249727851 edgetpu: janeiro: add retries for block status Bug: 249727851 (repeat) edgetpu: Return no space error from dma_map_sg Bug: 243837563 (repeat) edgetpu: introduce PMU STATUS query Bug: 249727851 (repeat) edgetpu: use rate limiting for reverse KCI failure warning edgetpu: janeiro: Check block status before power-up Bug: 237303232 edgetpu: warn if KCI get usage fails Bug: 193072630 edgetpu: fix invalid paging on invalid map size Bug: 245095356 edgetpu: rename mobile PM functions to be edgetpu-specific edgetpu: check mobile firmware header magic, warn if mismatch edgetpu: add error message on partial buffer map edgetpu: remove KCI unmap buffer code edgetpu: dma-fence debugfs show use dma_fence_ops edgetpu: remove unnecessary overflow check in buffer map code edgetpu: use mm_sem instead of mmap_lock on older Linux Bug: 238359788 edgetpu: remove include of mmap_lock.h Bug: 238359788 (repeat) edgetpu: hold mmap lock around call to find_extend_vma Bug: 237404338 edgetpu: Remove future chipset from darwinn-2.0 Bug: 236213851 edgetpu: make KCI source optionally customizable Bug: 237004877 edgetpu: unittests: Fix __alloc_pages_nodemask warning edgetpu: reduce KCI wait timeout. Bug: 234458631 edgetpu: gitignore: ignore gcip-kernel-driver Bug: 234255813 edgetpu: remove warning about 64-bit addressing on mobile edgetpu: mobile: deprecate the code for separate pmqos and bts request. Bug: 233338364 edgetpu: respond to reverse KCI commands. Bug: 229143599 edgetpu: add debugfs "wakelock" power up/down control Bug: 232449109 edgetpu: add namespace import for DMA_BUF for 5.16 Bug: 232003048 edgetpu: janeiro: Update debug dump mem size Bug: 208758697 GitOrigin-RevId: dbd4d5cc334db0726d79ec5e3c5f5a771700675f Change-Id: Ibd1f301b7d08211acda808b6870539d02f108dff
2022-07-06Merge android13-gs-pixel-5.10-tm-d1 into android13-gs-pixel-5.10-tm-qpr1android-u-preview-2_r0.4android-u-preview-2_r0.3android-u-preview-2_r0.2android-u-preview-1_r0.4android-u-preview-1_r0.3android-u-preview-1_r0.2android-t-qpr3-beta-3_r0.5android-t-qpr3-beta-3_r0.4android-t-qpr3-beta-3_r0.3android-t-qpr3-beta-3.1_r0.5android-t-qpr3-beta-3.1_r0.4android-t-qpr3-beta-3.1_r0.3android-t-qpr3-beta-2_r0.5android-t-qpr3-beta-2_r0.4android-t-qpr3-beta-2_r0.3android-t-qpr3-beta-1_r0.5android-t-qpr3-beta-1_r0.4android-t-qpr3-beta-1_r0.3android-t-qpr3-beta-1_r0.1android-t-qpr2-beta-3_r0.5android-t-qpr2-beta-3_r0.4android-t-qpr2-beta-3_r0.3android-t-qpr2-beta-3.2_r0.6android-t-qpr2-beta-3.2_r0.5android-t-qpr2-beta-2_r0.5android-t-qpr2-beta-2_r0.4android-t-qpr2-beta-2_r0.3android-t-qpr2-beta-1_r0.6android-t-qpr2-beta-1_r0.5android-t-qpr2-beta-1_r0.4android-t-qpr1-beta-3_r0.5android-t-qpr1-beta-3.1_r0.1android-13.0.0_r0.93android-13.0.0_r0.92android-13.0.0_r0.91android-13.0.0_r0.85android-13.0.0_r0.84android-13.0.0_r0.83android-13.0.0_r0.82android-13.0.0_r0.77android-13.0.0_r0.76android-13.0.0_r0.75android-13.0.0_r0.74android-13.0.0_r0.73android-13.0.0_r0.70android-13.0.0_r0.69android-13.0.0_r0.68android-13.0.0_r0.64android-13.0.0_r0.60android-13.0.0_r0.55android-13.0.0_r0.50android-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-tangorpro-5.10-android13-d2android-gs-raviole-5.10-u-preview-2android-gs-raviole-5.10-u-preview-1android-gs-raviole-5.10-t-qpr3-beta-3android-gs-raviole-5.10-t-qpr3-beta-2android-gs-raviole-5.10-t-qpr2-beta-1android-gs-raviole-5.10-android13-qpr3-beta1android-gs-raviole-5.10-android13-qpr3android-gs-raviole-5.10-android13-qpr2-betaandroid-gs-raviole-5.10-android13-qpr2android-gs-pantah-5.10-u-preview-2android-gs-pantah-5.10-u-preview-1android-gs-pantah-5.10-t-qpr3-beta-3android-gs-pantah-5.10-t-qpr3-beta-2android-gs-pantah-5.10-t-qpr2-beta-3.2android-gs-pantah-5.10-t-qpr2-beta-1android-gs-pantah-5.10-t-qpr1-beta-3android-gs-pantah-5.10-android13-qpr3-beta1android-gs-pantah-5.10-android13-qpr3android-gs-pantah-5.10-android13-qpr2-betaandroid-gs-pantah-5.10-android13-qpr2android-gs-pantah-5.10-android13-qpr1-beta-3android-gs-pantah-5.10-android13-qpr1android-gs-lynx-5.10-android13-qpr3android-gs-lynx-5.10-android13-qpr2-bandroid-gs-lynx-5.10-android13-d4android-gs-felix-5.10-android13-qpr3-candroid-gs-felix-5.10-android13-qpr3android-gs-felix-5.10-android13-d3android-gs-bluejay-5.10-u-preview-2android-gs-bluejay-5.10-u-preview-1android-gs-bluejay-5.10-t-qpr3-beta-3android-gs-bluejay-5.10-t-qpr3-beta-2android-gs-bluejay-5.10-t-qpr2-beta-3android-gs-bluejay-5.10-t-qpr2-beta-1android-gs-bluejay-5.10-android13-qpr3-beta1android-gs-bluejay-5.10-android13-qpr3android-gs-bluejay-5.10-android13-qpr2-betaandroid-gs-bluejay-5.10-android13-qpr2PixelBot AutoMerger
Bug: 233569354 SBMerger: 442815275 Change-Id: I798f8fb75bd9eefd0bf138760bdf179f3d5631cd Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-06-30edgetpu: reduce KCI wait timeout.android-13.0.0_r0.45android-13.0.0_r0.32android-13.0.0_r0.31android-gs-pantah-5.10-android13-d1Abhilash Kulkarni
PRO-TPU Prod release date 6/30 RC07. Release info: 237687385 - Reduce the waiting period for KCI responses to 1 second. Bug: 234458631 Change-Id: I74ee344bdefc725dae4ab33a01d798fda67de76d Signed-off-by: Abhilash Kulkarni <abhilashkul@google.com>
2022-05-10[Copybara Auto Merge] Merge branch 'pro' into android13-gs-pixel-5.10Whi copybara merger
edgetpu: add support for all dvfs frequencies Bug: 230582743 edgetpu: fetch hw ctx region from device tree Bug: 230236668 GitOrigin-RevId: e60acf09440d62f96d1a047d2f70b76e0dbd6863 Change-Id: Id187c2635cc2de627bedf168c0fefb2f4a9411c2
2022-05-02[Copybara Auto Merge] Merge branch 'pro' into android13-gs-pixel-5.10Whi copybara merger
edgetpu: include uaccess.h for access_ok Bug: 201243473 GitOrigin-RevId: 30d78647e545130cacd64c844d4872b4d2a3c710 Change-Id: I273d9cf1d9b9298be7c276cdfd43d06c9b017f91
2022-04-26[Copybara Auto Merge] Merge branch 'pro' into android13-gs-pixel-5.10Whi copybara merger
edgetpu: cast access_ok address param to avoid type warning edgetpu: retry buffer map read-only on EFAULT edgetpu: update client pid on wakelock acquire edgetpu: add new firmware metrics Bug: 201243473 Bug: 201243473 Bug: 228193834 Bug: 229311738 GitOrigin-RevId: d4d12d04147cd1bafae07dc4594d3b017028d518 Change-Id: Ia7d65b4d73bd0c65bac845f9047b08c32339a220
2022-04-22[Copybara Auto Merge] Merge branch 'pro' into android13-gs-pixel-5.10Whi copybara merger
whi-pro 4/18 RC01 edgetpu: Change debug dump logs for prod FW builds. edgetpu: mobile: Add handler for FW checkpoint dump reason. Bug: 228917587 Bug: 228916950 Commit-Topic: janeiro_release_20220418_RC01-0d4280 GitOrigin-RevId: 971a77fe02750d59ae0c2b67d3dbb248fd48f8b1 Change-Id: I1f4dceb561bd2102d73c458f5ac57b1313fd381c
2022-04-15[Copybara Auto Merge] Merge branch 'pro' into android13-gs-pixel-5.10Whi copybara merger
edgetpu: fix system out of memory locking pages log message edgetpu: add edgetpu_domain_pool Bug: 217454089 GitOrigin-RevId: 831d96abe4484715e9fd38135706b121d02af109 Change-Id: I5362c287e511b3fdb51743f38fb568c2913eaa35
2022-03-28[Copybara Auto Merge] Merge branch 'pro' into android13-gs-pixel-5.10Whi copybara merger
edgetpu: include linux thermal header edgetpu: mobile: handle merged PM QoS and BTS RKCI req Bug: 182818500 edgetpu: Move thermal header to chip specific file Bug: 223233475 edgetpu: add logs to help diagnose out of memory during buffer mapping edgetpu: initialise external mailbox according to power state Bug: 223076410 edgetpu: decouple mailbox alloc and set queue Bug: 223076410 edgetpu: Log dbg msg when dbg dump KCI is unimplemented in FW. edgetpu: Allocate external mailbox without holding wakelock Bug: 220660262 edgetpu: make fs_release wakelock free Bug: 197788097 Revert "Revert "edgetpu: Balance power up count during wakelock ..." edgetpu: janeiro: include tmu header file Bug: 215040856 Revert "edgetpu: Balance power up count during wakelock acquire" edgetpu: Balance power up count during wakelock acquire Bug: 221360331 edgetpu: re-add bus speed block KCI Bug: 199166333 edgetpu: janeiro: declare TPU dma-coherent Bug: 218921150 edgetpu: fix iommu_map_sg return type change Bug: 220067471 edgetpu: setup SSMT on firmware restart Bug: 218787370 GitOrigin-RevId: 1be82f1ce98c06b20cff19ddde858dc026884ef1 Change-Id: I21f4ab5572e8bdd247e233b06b2e48f6e67d4495
2022-02-19edgetpu: janeiro: include tmu header fileYiHo Cheng
tmu header file was renamed to gs_tmu.h to share gs101 and gs201 now. Bug: 215040856 Test: cat /sys/module/gs_thermal/parameters/tmu_reg_dump_state Signed-off-by: YiHo Cheng <yihocheng@google.com> Change-Id: Ib9d0b011bcf6820cf8e1edfc019c4bc4696254b7
2022-02-14[Copybara Auto Merge] Merge branch 'pro' into android13-gs-pixel-5.10Whi copybara merger
edgeptu: janeiro: add suspend/resume ops Bug: 217585538 edgetpu: initialize telemetry buffer size Bug: 216696239 edgetpu: change err logging during fw dbg dump buffer init Bug: 216522017 edgetpu: janeiro: extend block shutdown time Bug: 214251686 edgetpu: janeiro: Return error on failed fw ctx initialization Bug: 202262532 edgetpu: Modify wdt ref count based on mailbox activation Bug: 213415021 edgetpu: fixup comment typos GitOrigin-RevId: 01a1a1d7d206ed162dcda643af56bf5d39cc0464 Change-Id: I871d0eb964a33b172cce9b05a468beb0e96428e6
2022-01-26edgetpu: janeiro: extend block shutdown timeErick Reyes
After face unlock was enabled, we started seeing crashes when the TPU block exceeds the shutdown time. This commits increases the timeout to roughly double the highest time observed over ~100 iterations during experimentation, and logs a warning when the time is excessive. Bug: 214251686 Tested: 10 enroll/auth/delete cycles + 100 unlock attempts on Panther with no crashes. Signed-off-by: Erick Reyes <erickreyes@google.com> (cherry picked from commit fe84380d608375c60f50696b8c97903a2f20fcd4, re-applied after this change was undone by last merge) Change-Id: Ibf18851e91fcdb9b0d81a52a261fd07cfcbb03f5
2022-01-24[Copybara Auto Merge] Merge branch 'pro' into android13-gs-pixel-5.10Whi copybara merger
edgetpu: fix memory allocation in ext test Bug: 215071893 edgetpu: always reset CPU on power down Bug: 214251686 edgetpu: Send single kci for mboxes with the same VCID. Bug: 201503258 edgetpu: dump etdev info Bug: 214028088 edgetpu: dump client info Bug: 214028088 edgetpu: debug dump mappings with headers Bug: 214027183 edgetpu: dbg dump remove queues edgetpu: dbg dump groups info Bug: 214028088 edgetpu: dbg dump introduce sscd context Bug: 214028088 edgetpu: define kernel info structs for debug dump Bug: 214027183 Bug: 214028088 GitOrigin-RevId: a50c097daf728c5f4182d13661fb43f76a6111fe Change-Id: I1c7ab41b7eafb5bc919f0f3184c18e25df9014e1
2022-01-20Revert "[Copybara Auto Merge] Merge branch 'pro' into android13-gs-pixel-5.10"Nrithya Kanakasabapathy
This reverts commit 77fc4c4466a4e439060ffd59625628cbe37e51d0. Reason for revert: b/215599630 Change-Id: I1d5a212c269729d28e2d777fd003af455cd8f4f2
2022-01-18[Copybara Auto Merge] Merge branch 'pro' into android13-gs-pixel-5.10Whi copybara merger
edgetpu: Set debug dump buffer in FW after handshake Bug: 176556808 edgetpu: move wakelock releasing to client put edgetpu: Remove dbg dump error msg to avoid flooding logs. GitOrigin-RevId: e501a10922cce20ddfa4c082fc942c828d6d860b Change-Id: I24d7dacfba9e420b2863dfb96e65cd6eb3262fb5
2022-01-13edgetpu: janeiro: extend block shutdown timeErick Reyes
After face unlock was enabled, we started seeing crashes when the TPU block exceeds the shutdown time. This commits increases the timeout to roughly double the highest time observed over ~100 iterations during experimentation, and logs a warning when the time is excessive. Bug: 214251686 Tested: 10 enroll/auth/delete cycles + 100 unlock attempts on Panther with no crashes. Signed-off-by: Erick Reyes <erickreyes@google.com> Change-Id: Ie48e995bff313a4b107eac3f9bc82fa886ca7b03
2022-01-06[Copybara Auto Merge] Merge branch 'pro' into android13-gs-pixel-5.10Whi copybara merger
edgetpu: dbg dump debugFS return EOPNOTSUPP edgetpu: dbg dump handle recoverable fault edgetpu: fix wakelock order to avoid lock inversion Bug: 197788097 edgetpu: power up TPU before sending dbg dump KCI edgetpu: add debugfs for getting dbg dump Bug: 207607509 edgetpu: map_size instead of alloc_size on dump Bug: 210563422 edgetpu: fix UAF on dumping group mappings Bug: 210549145 edgetpu: dmabuf fix potential UAF Bug: 210571509 GitOrigin-RevId: 2aabb111da6de45d4ba20dabfd15c8c05843348f Change-Id: I2145f3ef7839120eb9746a1543cab7245e8335f2
2021-12-14[Copybara Auto Merge] Merge branch 'pro' into android13-gs-pixel-5.10Whi copybara merger
edgetpu: mcp notify MCP-wide thermal shutdown via kworker Bug: 207807085 Bug: 174552882 edgetpu: all mobile chips support debug dump Bug: 207459857 edgetpu: mobile: share debug dump handlers Bug: 207459857 GitOrigin-RevId: b0177acc91ac4fc014be4d5a4d98253641dc91fa Change-Id: Iafa408831e81ab80ac4e476a39e81d57838857a5
2021-12-01[Copybara Auto Merge] Merge branch 'pro' into android13-gs-pixel-5.10Whi copybara merger
edgetpu: support EXT_MAILBOX on all mobile chips Bug: 204795149 edgetpu: add iterator for each device in an MCP Bug: 174552882 edgetpu: mobile: fixups for android review comments Bug: 205749891 edgetpu: mcp synchronous usage stats update at device group disband Bug: 195612161 edgetpu: unregister KCI irq handler Bug: 206717576 Bug: 204847583 edgetpu: add h/w preempt metric Bug: 205901661 edgetpu: define and use vma offset for external test Bug: 204846795 edgetpu: fix compile failure on older linux for pin_user_pages Bug: 205000780 edgetpu: add ioctl for testing interop interface Bug: 204846795 edgetpu: do SSMT setup after firmware image loaded Bug: 204155811 GitOrigin-RevId: 1ef6320ae33eacbf804b9f51dcc4ad8d55a76efb Change-Id: Iebfc6a4ad701de1363fda8070420a4fecf518ee5
2021-11-09Merge branch 'pro' into android13-gs-pixel-5.10Whi copybara merger
edgetpu: code style fixups Bug: 204391548 edgetpu: Decrease pm_refcount when pm_runtime_get_sync fails Bug: 199111759 edgetpu: janeiro set default power state to UUD Bug: 203647578 edgetpu: Increase trace buffer size to 256 KB Bug: 202436856 edgetpu: Split EDGETPU_TELEMETRY_{LOG,TRACE}_BUFFER_SIZE Bug: 202436856 edgetpu: Calculate wrap bit by buffer size Bug: 202436856 edgetpu: thermal update call no longer available at 5.12 GitOrigin-RevId: 3d9db9216e2371c887b4164eee85b285dab25eb5 Change-Id: Ib8e4e687319a8bf60f9cacaf4697c01f4c71c59e
2021-10-27Merge branch 'pro' into android13-gs-pixel-5.10Whi copybara merger
edgetpu: retry shutdown on GSA error response Bug: 194954722 Revert "edgetpu: janeiro: temporarily disable external interface" edgetpu: janeiro: update mbox manager to support aoc Bug: 202489917 Bug: 201727491 edgetpu: janeiro: Add LPM recovery mechanism Bug: 202402922 edgetpu: ensure TPU is completely off Bug: 202744710 edgetpu: janeiro: temporarily disable external interface edgetpu: add a mobile thermal module Bug: 194241938 Bug: 201076651 edgetpu: support memory for f/w context switch Bug: 200744848 edgetpu: abrolhos: add bus speed block KCI Bug: 199166333 edgetpu: fix mobile pm variables scope Bug: 199929284 edgetpu: Show mappings for every telemetry Bug: 202089755 edgetpu: Support mmapping different buffers Bug: 202089755 edgetpu: Introduce VMA_TYPE_WIDTH Bug: 202089755 edgetpu: Set/unset event on every telemetry Bug: 202089755 edgetpu: Check every telemetry when receiving irq Bug: 202089755 edgetpu: Use telemetry[0] for telemetry_kci Bug: 202089755 edgetpu: Initiate telemetry based on etdev->num_cores Bug: 202089755 edgetpu: Add missing #if CONFIG_EDGETPU_TELEMETRY_TRACE Bug: 202089755 edgetpu: Add num_cores to struct edgetpu_dev Bug: 202089755 edgetpu: Add detail clk debugfs Bug: 199929284 edgetpu: janeiro: fix frequency values Bug: 199685518 edgetpu: change interop interface Bug: 200658064 edgetpu: move mobile headers out from unittests/ Bug: 201267603 edgetpu: add include/ to the include path Bug: 201267603 edgetpu: fix Kbuild inclusion path Bug: 201267603 edgetpu: remove fault handlers for linux < 5.3 GitOrigin-RevId: f00278f72aefa16eec70384ec79d248fa52ca474 Change-Id: I364796b0dc127f83737f3afbaf0508ac35ac767d
2021-09-28Merge branch 'pro' into android13-gs-pixel-5.10Whi copybara merger
edgetpu: janeiro remove compat. code for shareability Bug: 193593081 edgetpu: janeiro set shareability in after probe Bug: 200923214 edgetpu: janeiro: Add TPU_OFF Bug: 199365799 edgetpu: set first_open to false for external mailbox Bug: 200507456 edgetpu: Put sscoredump features behind config flag Bug: 197672212 edgetpu: rio import drivers Bug: 198718365 Revert "edgetpu: remove edgetpu_unregister_irq" Bug: 200183185 edgetpu: implement commands for interop Bug: 199355448 edgetpu: fix up header inclusions edgetpu: janeiro use common mobile interface Bug: 199717700 edgetpu: add edgetpu-mobile-platform.c Bug: 199717700 edgetpu: janeiro use IRQ array in mobile dev Bug: 199717700 edgetpu: remove edgetpu_unregister_irq edgetpu: mobile add IRQ fields to platform_dev Bug: 199717700 edgetpu: support predefined KCI timeout Bug: 197068927 edgetpu: mobile cpu reset according to #cores Bug: 199571462 Bug: 198718365 edgetpu: config add EDGETPU_NUM_CORES Bug: 199571462 edgetpu: clearer config selection Bug: 198718365 edgetpu: mobile firmware fix typos edgetpu: fix firmware load at different priv level edgetpu: fix returning/check correct status of errors Bug: 197919435 edgetpu: janeiro: add GSA device Bug: 194054265 edgetpu: janeiro: setup SSMT if GSA is available Bug: 197301774 edgetpu: merge mobile firmware code Bug: 176881607 edgetpu: merge mobile PM code Bug: 176881607 edgetpu: move number of contexts to chip configs Bug: 194989925 GitOrigin-RevId: 96ee87151266f7bd4f96e5e3c4ae4cf1580bc8d2 Change-Id: If9c902d6d17b00502e01b0ba4f801985912640f6
2021-09-10Kleaf: add edgetpu kernel module for cloudripperYifan Hong
Bug: 192617687 Test: builds Change-Id: Id127015e7f3801a6f2971cd5d992f9558c8b6922
2021-09-01[Copybara Auto Merge] Merge branch 'pro' into android13-gs-pixel-5.10Whi copybara merger
edgetpu: fix potential KP on device probing Bug: 197144362 edgetpu: janeiro: disable SSMT temporarily Bug: 197285064 edgetpu: Reset dump memory after handling dump. edgetpu: abrolhos: Collect host side debug dump segments. Bug: 176555699 Bug: 168082238 Bug: 176556808 edgetpu: Sync debug dump contract with FW edgetpu: restrict printing a couple of kernel and physical addresses edgetpu: use %# instead of 0x% for hex printks edgetpu: use __s32 for int fd field of dma-buf map ioctl edgetpu: fix UAF in edgetpu_device_group_map Bug: 192641593 edgetpu: hermosa add support for firmware signature checks Bug: 195776283 edgetpu: add physical address field to coherent memory Bug: 183621442 edgetpu: fix invalid wait context Bug: 196340168 edgetpu: janeiro: set up SSMT registers Bug: 196494143 edgetpu: janeiro: Only poll for blk status after shutdown Bug: 191869036 edgetpu: add sysfs groups attr edgetpu: add user_vote for user space request TPU throttling Bug: 188701596 edgetpu: debugfs mappings improvements edgetpu: use pin_user_pages, alloc own vma struct pointers array Bug: 194989197 edgetpu: abrolhos disable ext mbox on client remove Bug: 195126121 edgetpu: don't fail mbox deactivation on KCI fails Bug: 195126121 edgetpu: add group id to sysfs clients attr, fix output Bug: 193484549 Merge remote-tracking branch 'origin/darwinn-2.0' into pro * origin/darwinn-2.0: edgetpu: janeiro: fix firmware header mappings edgetpu: mobile guard bcl inclusion with KCONFIG edgetpu: janeiro remove obsolete TODO Merge remote-tracking branch 'origin/darwinn-2.0' into pro * origin/darwinn-2.0: edgetpu: use kvmalloc for pages array edgetpu: janeiro: Stability fix in blk pwr control edgetpu: add support for multiple interfaces edgetpu: restrict debugfs statusregs file to non-mobile chipsets Merge remote-tracking branch 'origin/darwinn-2.0' into pro * origin/darwinn-2.0: (65 commits) edgetpu: add support to create coherent/non-coherent mapping edgetpu: add sysfs attr clients to dump client and wakelock state edgetpu: janeiro: fix device cleanup sequence edgetpu: add support to track device removal edgetpu: PM log clients holding TPU wakelocks at suspend reject time edgetpu: add list of clients per device edgetpu: rename group client list fields and iterators edgetpu: abrolhos remove obsolete DT binding edgetpu: cleanup host DMA direction modification edgetpu: unittests: Add a firmware crash rkci test edgetpu: unittests: Add a reverse kci test edgetpu: hermosa smmu remove TODOs from comments for fw-driven SSID edgetpu: janeiro bcl port tpu clock divider ratio edgetpu: unittests: add mobile-platform tests edgetpu: fix kernel paging error in edgetpu_mmu_attach_domain edgetpu: janeiro: use DT property to configure shareability edgetpu: remove remaining references to emulators edgetpu: hermosa remove obsolete TODO for FPGA USR training edgetpu: add "is a mobile style device" feature flag edgetpu: organize objects into mobile vs. mcp groupings ... Merge remote-tracking branch 'origin/darwinn-2.0' into pro * origin/darwinn-2.0: edgetpu: janeiro: fix mailbox offset calculation edgetpu: unittests: add get_fatal_errors ioctl tests Merge remote-tracking branch 'origin/darwinn-2.0' into pro * origin/darwinn-2.0: (62 commits) edgetpu: unittests: add iremap-pool tests edgetpu: detach mailbox when activation failed edgetpu: reduce IOMMU fault reports severity edgetpu: unittest handle enhanced open device KCI edgetpu: gem5: Increasing the mask of gsa edgetpu: unittests: upgrade to KUnit 5.10 edgetpu: unittests: fix tests with disabled IOMMU edgetpu: allow buffer unmapping on errored groups edgetpu: abrolhos return actual error for throttling kci edgetpu: handle job lockup notification from firmware edgetpu: add API to send fatal error notifications to a specific group edgetpu: add fatal error event for firmware-detected job timeout edgetpu: Improve the check in edgetpu_thermal_* functions edgetpu: Modify the log function due to thermal suspended edgetpu: fail wakelock acquiring if suspended edgetpu: ignore offset arg in edgetpu_map_dmabuf edgetpu: hermosa assume single die when config not set edgetpu: unittests: add thermal test edgetpu: abrolhos: hook exynos acpm functions edgetpu: unittests: add helper of device tree ... Merge remote-tracking branch 'origin/darwinn-2.0' into pro * origin/darwinn-2.0: (23 commits) edgetpu: remove redundant args edgetpu: janeiro: add power management edgetpu: janeiro scrub references to TPU CPU model edgetpu: abrolhos scrub more TPU CPU references edgetpu: remove some references to codenames and hardware details edgetpu: remove some details from usage-stats comments and symbols edgetpu: fix typo in debug dump header Mock components to build TPU driver edgetpu: log error when firmware load failed edgetpu: google: use default domain when AUX disabled edgetpu: fix edgetpu_mmu_alloc_domain memory leak edgetpu: remove dependency on iommu_group_id edgetpu: janeiro: use NS iommu mapping for f/w edgetpu: fix watchdog job cancel ordering edgetpu: don't check mailbox_detachable on fs_release edgetpu: add dev_inaccessible field to struct group edgetpu: hermosa remove irqreturn header from smmu edgetpu: remove chip names from mmu.h edgetpu: move mailbox disable out from mbox remove edgetpu: export mailbox enable and disable functions ... Merge remote-tracking branch 'origin/darwinn-2.0' into pro * origin/darwinn-2.0: (82 commits) edgetpu: janeiro: parse fw header to create IOMMU mapping edgetpu: dmabuf map add debug logs for diagnosing errors edgetpu: make various usage metrics group writeable edgetpu: hermosa remove two obsolete TODOs kokoro: checkpatch ignore constant comparison edgetpu: unittest: remove obsolete bug edgetpu: set cacheability according to device edgetpu: add offset back to dmabuf mapping edgetpu: refactor error handling edgetpu: reset thread stats on write edgetpu: abrolhos remove parsing csr-iova nodes edgetpu: remove mapping CSRs on mmu setup edgetpu: add corrupted log queue msg back edgetpu: deprecate offset in edgetpu_map_dmabuf_ioctl edgetpu: fix use-after-free Read in edgetpu_chip_acquire_ext_mailbox edgetpu: map dmabuf ignore size argument edgetpu: hermosa fix UAF in edgetpu_device_dram_getfd edgetpu: abrolhos fix thermal notify null deref edgetpu: fix UAF write on edgetpu_sync_fence_create edgetpu: add firmware_is_loading utility ... Remove hermosa/abrolhos references on pro branch Also remove unittests and fix Makefile/Kbuild for janeiro builds GitOrigin-RevId: 1805ef57ed473ccdedb44145fa66396f046d984a Change-Id: I1bb5649c8f367b7762a774d6f310144195a93c28
2021-08-24Merge android-gs-cloudripper-5.10 into android13-gs-pixel-5.10Aaron Ding
Change-Id: Ib0bfd7c98a9c7f243f373f59b49a440c51621f17 Signed-off-by: Aaron Ding <aaronding@google.com>
2021-08-20Revert "[Copybara Auto Merge] Merge branch 'pro' into ↵Nrithya Kanakasabapathy
android-gs-cloudripper-5.10" This reverts commit 75813437d78bd26b5a547c0b6bedbfe26d4c0664. Reason for revert: b/197285064 - inference output mismatches. It's not yet merged into googleplex-android. Reverting until the root cause of the bug is figured out. Change-Id: I99f19f08fb53a1dafe270a07c271c03fe2a46b13
2021-08-18[Copybara Auto Merge] Merge branch 'pro' into android-gs-cloudripper-5.10Whi copybara merger
edgetpu: add physical address field to coherent memory Bug: 183621442 edgetpu: fix invalid wait context Bug: 196340168 edgetpu: janeiro: set up SSMT registers Bug: 196494143 edgetpu: janeiro: Only poll for blk status after shutdown Bug: 191869036 edgetpu: add sysfs groups attr edgetpu: add user_vote for user space request TPU throttling Bug: 188701596 edgetpu: debugfs mappings improvements edgetpu: use pin_user_pages, alloc own vma struct pointers array Bug: 194989197 edgetpu: don't fail mbox deactivation on KCI fails Bug: 195126121 edgetpu: add group id to sysfs clients attr, fix output Bug: 193484549 Merge remote-tracking branch 'origin/darwinn-2.0' into pro * origin/darwinn-2.0: edgetpu: janeiro: fix firmware header mappings edgetpu: mobile guard bcl inclusion with KCONFIG edgetpu: janeiro remove obsolete TODO Merge remote-tracking branch 'origin/darwinn-2.0' into pro * origin/darwinn-2.0: edgetpu: use kvmalloc for pages array edgetpu: janeiro: Stability fix in blk pwr control edgetpu: add support for multiple interfaces edgetpu: restrict debugfs statusregs file to non-mobile chipsets Merge remote-tracking branch 'origin/darwinn-2.0' into pro * origin/darwinn-2.0: (65 commits) edgetpu: add support to create coherent/non-coherent mapping edgetpu: add sysfs attr clients to dump client and wakelock state edgetpu: janeiro: fix device cleanup sequence edgetpu: add support to track device removal edgetpu: PM log clients holding TPU wakelocks at suspend reject time edgetpu: add list of clients per device edgetpu: rename group client list fields and iterators edgetpu: cleanup host DMA direction modification edgetpu: unittests: Add a firmware crash rkci test edgetpu: unittests: Add a reverse kci test edgetpu: janeiro bcl port tpu clock divider ratio edgetpu: unittests: add mobile-platform tests edgetpu: fix kernel paging error in edgetpu_mmu_attach_domain edgetpu: janeiro: use DT property to configure shareability edgetpu: remove remaining references to emulators edgetpu: add "is a mobile style device" feature flag edgetpu: organize objects into mobile vs. mcp groupings ... Merge remote-tracking branch 'origin/darwinn-2.0' into pro * origin/darwinn-2.0: edgetpu: janeiro: fix mailbox offset calculation edgetpu: unittests: add get_fatal_errors ioctl tests Merge remote-tracking branch 'origin/darwinn-2.0' into pro * origin/darwinn-2.0: (62 commits) edgetpu: unittests: add iremap-pool tests edgetpu: detach mailbox when activation failed edgetpu: reduce IOMMU fault reports severity edgetpu: unittest handle enhanced open device KCI edgetpu: gem5: Increasing the mask of gsa edgetpu: unittests: upgrade to KUnit 5.10 edgetpu: unittests: fix tests with disabled IOMMU edgetpu: allow buffer unmapping on errored groups edgetpu: handle job lockup notification from firmware edgetpu: add API to send fatal error notifications to a specific group edgetpu: add fatal error event for firmware-detected job timeout edgetpu: Improve the check in edgetpu_thermal_* functions edgetpu: Modify the log function due to thermal suspended edgetpu: fail wakelock acquiring if suspended edgetpu: ignore offset arg in edgetpu_map_dmabuf edgetpu: unittests: add thermal test edgetpu: unittests: add helper of device tree ... Merge remote-tracking branch 'origin/darwinn-2.0' into pro * origin/darwinn-2.0: (23 commits) edgetpu: remove redundant args edgetpu: janeiro: add power management edgetpu: janeiro scrub references to TPU CPU model edgetpu: remove some references to codenames and hardware details edgetpu: remove some details from usage-stats comments and symbols edgetpu: fix typo in debug dump header Mock components to build TPU driver edgetpu: log error when firmware load failed edgetpu: google: use default domain when AUX disabled edgetpu: fix edgetpu_mmu_alloc_domain memory leak edgetpu: remove dependency on iommu_group_id edgetpu: janeiro: use NS iommu mapping for f/w edgetpu: fix watchdog job cancel ordering edgetpu: don't check mailbox_detachable on fs_release edgetpu: add dev_inaccessible field to struct group edgetpu: remove chip names from mmu.h edgetpu: move mailbox disable out from mbox remove edgetpu: export mailbox enable and disable functions ... Merge remote-tracking branch 'origin/darwinn-2.0' into pro * origin/darwinn-2.0: (82 commits) edgetpu: janeiro: parse fw header to create IOMMU mapping edgetpu: dmabuf map add debug logs for diagnosing errors edgetpu: make various usage metrics group writeable kokoro: checkpatch ignore constant comparison edgetpu: unittest: remove obsolete bug edgetpu: set cacheability according to device edgetpu: add offset back to dmabuf mapping edgetpu: refactor error handling edgetpu: reset thread stats on write edgetpu: remove mapping CSRs on mmu setup edgetpu: add corrupted log queue msg back edgetpu: deprecate offset in edgetpu_map_dmabuf_ioctl edgetpu: fix use-after-free Read in edgetpu_chip_acquire_ext_mailbox edgetpu: map dmabuf ignore size argument edgetpu: fix UAF write on edgetpu_sync_fence_create edgetpu: add firmware_is_loading utility ... Remove other chips references on pro branch Also remove unittests and fix Makefile/Kbuild for janeiro builds GitOrigin-RevId: 0489f176f477dc58f727e5a7f758b525586d9647 Change-Id: I857d8972c90b212868bd0e87c7836762cfd086ba
2021-08-18Merge android-gs-cloudripper-5.10 into android13-gs-pixel-5.10Aaron Ding
Change-Id: I1e4de8679434bcfcec7a83d4d8d977f984af0c14 Signed-off-by: Aaron Ding <aaronding@google.com>
2021-07-28Merge remote-tracking branch 'pro' into android-gs-cloudripper-5.10Nishant Prajapati
* origin/darwinn-2.0: edgetpu: use kvmalloc for pages array edgetpu: janeiro: Stability fix in blk pwr control edgetpu: add support for multiple interfaces edgetpu: restrict debugfs statusregs file to non-mobile chipsets Signed-off-by: Nishant Prajapati <nishantpjpt@google.com> Change-Id: Iafc7c8229415f305d357f1a02441dd22d706cf02
2021-07-20Merge remote-tracking branch 'pro' into android-gs-cloudripper-5.10Nishant Prajapati
* origin/darwinn-2.0: (65 commits) edgetpu: add support to create coherent/non-coherent mapping edgetpu: add sysfs attr clients to dump client and wakelock state edgetpu: janeiro: fix device cleanup sequence edgetpu: add support to track device removal edgetpu: PM log clients holding TPU wakelocks at suspend reject time edgetpu: add list of clients per device edgetpu: rename group client list fields and iterators edgetpu: cleanup host DMA direction modification edgetpu: janeiro bcl port tpu clock divider ratio edgetpu: fix kernel paging error in edgetpu_mmu_attach_domain edgetpu: janeiro: use DT property to configure shareability edgetpu: remove remaining references to emulators edgetpu: add "is a mobile style device" feature flag edgetpu: organize objects into mobile vs. mcp groupings ... Signed-off-by: Nishant Prajapati <nishantpjpt@google.com> Change-Id: I4b79d9d5b493c8cdb4fa132354e2dca42b125fa7
2021-07-07edgetpu: janeiro bcl port tpu clock divider ratioGeorge Lee
Bug: 192615175 Signed-off-by: George Lee <geolee@google.com> Change-Id: I30449656504551a6cb684dc0c30f8031bc608010
2021-07-02Merge remote-tracking branch 'pro' into android-gs-cloudripper-5.10Nishant Prajapati
* origin/darwinn-2.0: (64 commits) edgetpu: janeiro: fix mailbox offset calculation edgetpu: unittests: add get_fatal_errors ioctl tests edgetpu: unittests: add iremap-pool tests edgetpu: detach mailbox when activation failed edgetpu: reduce IOMMU fault reports severity edgetpu: unittest handle enhanced open device KCI edgetpu: gem5: Increasing the mask of gsa edgetpu: unittests: upgrade to KUnit 5.10 edgetpu: unittests: fix tests with disabled IOMMU edgetpu: allow buffer unmapping on errored groups edgetpu: abrolhos return actual error for throttling kci edgetpu: handle job lockup notification from firmware edgetpu: add API to send fatal error notifications to a specific group edgetpu: add fatal error event for firmware-detected job timeout edgetpu: Improve the check in edgetpu_thermal_* functions edgetpu: Modify the log function due to thermal suspended edgetpu: fail wakelock acquiring if suspended edgetpu: ignore offset arg in edgetpu_map_dmabuf edgetpu: hermosa assume single die when config not set edgetpu: unittests: add thermal test edgetpu: abrolhos: hook exynos acpm functions edgetpu: unittests: add helper of device tree ... Signed-off-by: Nishant Prajapati <nishantpjpt@google.com> Change-Id: I270c8e29f14ea9585ea258741130f060b56fc410
2021-06-12Merge remote-tracking branch 'pro' into android-gs-cloudripper-5.10Nishant Prajapati
* origin/darwinn-2.0: (23 commits) edgetpu: remove redundant args edgetpu: janeiro: add power management edgetpu: janeiro scrub references to TPU CPU model edgetpu: abrolhos scrub more TPU CPU references edgetpu: remove some references to codenames and hardware details edgetpu: remove some details from usage-stats comments and symbols edgetpu: fix typo in debug dump header Mock components to build TPU driver edgetpu: log error when firmware load failed edgetpu: google: use default domain when AUX disabled edgetpu: fix edgetpu_mmu_alloc_domain memory leak edgetpu: remove dependency on iommu_group_id edgetpu: janeiro: use NS iommu mapping for f/w edgetpu: fix watchdog job cancel ordering edgetpu: don't check mailbox_detachable on fs_release edgetpu: add dev_inaccessible field to struct group edgetpu: hermosa remove irqreturn header from smmu edgetpu: remove chip names from mmu.h edgetpu: move mailbox disable out from mbox remove edgetpu: export mailbox enable and disable functions Signed-off-by: Nishant Prajapati <nishantpjpt@google.com> Change-Id: I481b99e32bb07053e9faaa8965259ea163fd4ebc
2021-06-03Merge branch 'pro' into android-gs-cloudripper-5.10Nishant Prajapati
* origin/darwinn-2.0: (82 commits) edgetpu: janeiro: parse fw header to create IOMMU mapping edgetpu: dmabuf map add debug logs for diagnosing errors edgetpu: make various usage metrics group writeable edgetpu: hermosa remove two obsolete TODOs kokoro: checkpatch ignore constant comparison edgetpu: unittest: remove obsolete bug edgetpu: set cacheability according to device edgetpu: add offset back to dmabuf mapping edgetpu: refactor error handling edgetpu: reset thread stats on write edgetpu: abrolhos remove parsing csr-iova nodes edgetpu: remove mapping CSRs on mmu setup edgetpu: add corrupted log queue msg back edgetpu: deprecate offset in edgetpu_map_dmabuf_ioctl edgetpu: fix use-after-free Read in edgetpu_chip_acquire_ext_mailbox edgetpu: map dmabuf ignore size argument edgetpu: hermosa fix UAF in edgetpu_device_dram_getfd edgetpu: abrolhos fix thermal notify null deref edgetpu: fix UAF write on edgetpu_sync_fence_create edgetpu: add firmware_is_loading utility Signed-off-by: Nishant Prajapati <nishantpjpt@google.com> Change-Id: I815985598685d1f0860dda0bf02cad4dc6d1031e
2021-05-06Merge from 'pro' branch into android-gs-cloudripper-5.10Nishant Prajapati
Squash at commit dab71c2cf Signed-off-by: Nishant Prajapati <nishantpjpt@google.com> Change-Id: I447031be5b6f89b3177a4c23aeca4676ffbb0076
2021-05-06edgetpu: Remove abrolhos filesNishant Prajapati
Signed-off-by: Nishant Prajapati <nishantpjpt@google.com> Change-Id: I39df56c56489eaa465cbcc951b130a40254f86a8
2021-04-27Merge branch 'whitechapel' into android-gs-pixel-5.10Nrithya Kanakasabapathy
* whitechapel: edgetpu: Fix error handling for unpin_user_pages edgetpu: check DMA direction in map flags edgetpu: use entire page for sg table allocation edgetpu: disallow mmap buffer copies edgetpu: introduce edgetpu_vma_type to handle mmap edgetpu: check mailbox attached on mmap queues edgetpu: add size check on iremap mmap edgetpu: use num_pages for sg table allocation edgetpu: use max function for thread stats max stack values edgetpu: handle firmware thread stats edgetpu: make counters stats additive edgetpu: add firmware max watermark usage tracking edgetpu: abrolhos: implement firmware restart handler edgetpu: abrolhos: fix BTS scenario cleanup edgetpu: add additional counters to usage stats edgetpu: add firmware thread stats types to usage tracker Signed-off-by: Nrithya Kanakasabapathy <nrithya@google.com> Change-Id: I8b4f02a103d81fb468e6d23d81066c7e14441069