summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-04-16Revert "treewide: class_create() has changed in 6.4"android14-gs-pixel-6.1Will McVicker
This reverts commit 239dac4f58e128248ad971ee518980b3e24e26c6 since it's not compatible on v6.1. Bug: 335301050 Change-Id: Iddcc813adce0e9d5f7359c9b6246d2e374f1a61e Signed-off-by: Will McVicker <willmcvicker@google.com>
2023-11-06treewide: class_create() has changed in 6.4android-gs-raviole-mainlineAndré Draszik
Upstream kernel commit [1] has changed the class_create() API and dropped the first argument. Follow this change here. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1aaba11da9aa ("driver core: class: remove module * from class_create()") Bug: 283465996 Test: TH Change-Id: Ic32581c464aaaa010c00c51d00ec0a0c58b77520 Signed-off-by: André Draszik <draszik@google.com> Signed-off-by: Will McVicker <willmcvicker@google.com>
2023-11-06kleaf: add visibility to //private/devices/googleWill McVicker
This let's you build the module from there. Change-Id: If77cbe85b216f64c258a4908df62c18c70d82d43 Signed-off-by: Will McVicker <willmcvicker@google.com>
2023-11-06Add the DMA namespaceWill McVicker
Change-Id: I9173d528126e5a1e550cdbfe997eb0faf496b316 Signed-off-by: Will McVicker <willmcvicker@google.com>
2023-11-06Add support to build bigocean OOTWill McVicker
This was moved from the soc/gs project as part of tm-qpr2. Change-Id: I4a9bc08c34a4287805f427765d8a3e5fe390af38 Signed-off-by: Will McVicker <willmcvicker@google.com>
2023-05-31Remove __user definitionandroid-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.7android-u-beta-4_r0.5android-u-beta-4_r0.4android-u-beta-4_r0.3android-u-beta-4_r0.2android-u-beta-4_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-u-beta4android-gs-tangorpro-5.10-android14android-gs-raviole-android14-releaseandroid-gs-raviole-5.10-u-beta5.3android-gs-raviole-5.10-u-beta4android-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-u-beta4android-gs-bluejay-5.10-android14Cyan_Hsieh
userspace build will get it from linux/compiler.h Bug: 262917450 Change-Id: Id1ee69b2bb638634bd94035259a4f8139566c0c8 Signed-off-by: Cyan_Hsieh <cyanhsieh@google.com> (cherry picked from commit 06ad88e793b2f9cb40b04c5b2716ae4eab02b8ea)
2023-02-09Fix error handling in secure modeandroid-u-beta-3_r0.3android-u-beta-3_r0.2android-u-beta-2_r0.4android-u-beta-2_r0.3android-u-beta-2_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-beta2Ruofei Ma
Driver should always do SMC_PROTECTION_DISABLE regardless of job status. Bug: 233393972 Bug: 267935059 Change-Id: Id9b78fb1cd7e8d5cdbd68511c8d6fc3a8a04cee2 Signed-off-by: Ruofei Ma <ruofeim@google.com> (cherry picked from commit be7c095ef86dd9d083af7b0045765fa8406179f4)
2022-08-30Merge 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-u-beta-1_r0.5android-u-beta-1_r0.4android-u-beta-1_r0.3android-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-u-beta1android-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-u-beta1android-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-u-beta1android-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-qpr2Robin Peng
Bug: 233569354 Signed-off-by: Robin Peng <robinpeng@google.com> Change-Id: I321ed3a3b24a1373ffa2828f88cb39e6a9385719
2022-08-26Set instance to idle at openandroid-13.0.0_r0.45android-13.0.0_r0.32android-gs-pantah-5.10-android13-d1Ruofei Ma
By setting instance to idle at open, we a delaying the power/freq vote until there is activity from this particular instance. This change can avoid unnecessary power comsumption on the instances that are opened but have no activity. Without the change the statement above only works for the first instance. With this change it works for all instances. Refer to the bug for details. Bug: 242975531 Signed-off-by: Ruofei Ma <ruofeim@google.com> Change-Id: Ia871e9428995fea91a322f9245977210d2da39d9
2022-08-24bigocean turn off clocks in idle stateRuofei Ma
Turn off bigocean clocks when it is idle for predefined timout. This change is to save the power when user holds onto bigocean instance but are not actually playing any video. This can happen with video pause or app bug. Bug: 242975531 Bug: 243650406 Signed-off-by: Ruofei Ma <ruofeim@google.com> Change-Id: Ie4fa8ac0e3b5dcc9d552b257b8c32649a43d873c (cherry picked from commit 51480d7d5ad2fbe2b18624ad266c390dded132ce)
2022-08-23bigocean turn off clocks in idle stateRuofei Ma
Turn off bigocean clocks when it is idle for predefined timout. This change is to save the power when user holds onto bigocean instance but are not actually playing any video. This can happen with video pause or app bug. Bug: 242975531 Signed-off-by: Ruofei Ma <ruofeim@google.com> Change-Id: Ie4fa8ac0e3b5dcc9d552b257b8c32649a43d873c
2022-07-18Merge android13-gs-pixel-5.10-tm-d1 into android13-gs-pixel-5.10-tm-qpr1Robin Peng
Bug: 233569354 Signed-off-by: Robin Peng <robinpeng@google.com> Change-Id: Ia56497c9fe5dccd12e483208c5031fc84a1ee411
2022-07-09bigocean: Fix use after freeandroid-13.0.0_r0.31Vinay Kalia
"inst" should not be dereferenced after it has been freed. bug: 238462767 Signed-off-by: Vinay Kalia <vinaykalia@google.com> Change-Id: Ifd5c165ea285d01878563ff21de452e5b523a7df
2022-07-06Merge android13-gs-pixel-5.10-tm-d1 into android13-gs-pixel-5.10-tm-qpr1Robin Peng
Bug: 233569354 Signed-off-by: Robin Peng <robinpeng@google.com> Change-Id: I596748c902171beccd54fadbee532ac887771c1f
2022-06-30bigocean: Remove bigocean BW votes when not neededVinay Kalia
When all the bigocean instances close, all the BW votes should be removed. bug: 233707844 Signed-off-by: Vinay Kalia <vinaykalia@google.com> Change-Id: I864e105977a965f7376de321df2899541e5f0f36
2022-06-30bigocean: Allow unmapping of buffers while HW is busyVinay Kalia
Revert the workaround made for b/180443732 as it is no longer applicable. bug: 233707844 Signed-off-by: Vinay Kalia <vinaykalia@google.com> Change-Id: I0e784cced9037f8e0f26097402b3f051a8756e77
2022-06-30bigocean: Fix MIF floor for heavier loadsVinay Kalia
For 10-bit content at max resolutio and fps, the effective load is more than the max defined load. Fix the MIF floor for such heavy load usecases to prevent framedrops. bug: 233707844 Signed-off-by: Vinay Kalia <vinaykalia@google.com> Change-Id: I8da4eed15df9d76950095c3d1e2c03120363fa46
2022-06-30bigocean: Ensure that bigocean instance is not destroyed while work is pendingVinay Kalia
Destroying the instance while hardware is active can lead to faults like SysMMU page faults. bug: 236515139 Signed-off-by: Vinay Kalia <vinaykalia@google.com> Change-Id: I20e037204db4a7a09bdcfbb512f8cddc96800768
2022-05-13Move bigo_count_inst into critical sectionRuofei Ma
Lock is needed when accessing core struct. Bug: 231912091 Change-Id: Ie63352ca64df3469fb86121d621fda9dd37d66e6 Signed-off-by: Ruofei Ma <ruofeim@google.com>
2022-04-27Merge "Fix a potential thread dead lock issue" into android13-gs-pixel-5.10Ruofei Ma
2022-04-26Fix a potential thread dead lock issueRuofei Ma
When bigo_worker_thread does kref_put on an instance, if the refcount changes from 1 to 0, bigo_close will be invoked. If this is the last instance, on_last_inst_close will be invoked and it will wait for bigo_worker_thread to exit. It is a dead loop that bigo_worker_thread is waiting for itself to exit. The fix is to make sure the worker thread is stopped before closing the last instance. Bug: 229580907 Signed-off-by: Ruofei Ma <ruofeim@google.com> Change-Id: I0950a07e072c6d10ab76389bd10ff697c3d1fc79
2022-04-19Read status reg when interrupt timeoutRuofei Ma
stat_with_irq will have stale value if interrupt timeout. Read status from device register and update stat_with_irq. Bug: 229580907 Signed-off-by: Ruofei Ma <ruofeim@google.com> Change-Id: I17635113091fc006737c859415c0ed0bfc5ab3fb
2022-04-12PRO: Limit the number of instancesRuofei Ma
Limit the max number of instances in BO kernel driver to 16. Bug: 226540966 Change-Id: I3f343e3a1f1d9345ad4ba470fc863dd94a214fb7 Signed-off-by: Ruofei Ma <ruofeim@google.com>
2022-01-22Fix error recovery path for pt_client_register() failuresRuofei Ma
Unregister iommu fault handler if pt_client_register() returns -EPROBE_DEFER. Bug: 210150963 Change-Id: I5556f86538532fc251a2d6077775a0f9f5f779f0
2022-01-14Handle -EPROBE_DEFER from SLCRuofei Ma
Add path to handle error from pt_client_register() Bug: 210150963 Signed-off-by: Ruofei Ma <ruofeim@google.com> Change-Id: Ia02ab93ae57d264732a08813b5dc8630c11e5b1e
2021-09-28Bigo priority supportRuofei Ma
Change bigocean kernel driver to async mode by adding a kernel worker thread. This change will allow kernel to serve requests based on instance priority. bug: 197665952 Signed-off-by: Ruofei Ma <ruofeim@google.com> Change-Id: I801fd1e6fff0f9e795c01dee4d4cfa3802e3d47a
2021-09-20Makefile: Make "modules" the default targetDaniel Mentz
Commit 6b47a64 ("Makefile: Consolidate build targets") introduced a regression where it changed the default make target from "modules" to "clean". As a result, bigocean.ko was not built at all! Change the default target back to "modules". Fixes: 6b47a64 ("Makefile: Consolidate build targets") Signed-off-by: Daniel Mentz <danielmentz@google.com> Change-Id: I7ca51f81b573eb773ada30dff6c2123d223bd0e9
2021-09-14Makefile: Consolidate build targetsDaniel Mentz
The recipes for the build targets clean, modules, modules_install and headers_install are basically identical. Let's consolidate them. Signed-off-by: Daniel Mentz <danielmentz@google.com> Change-Id: Idad42663bb497468bf31a2c9c3ec43fcd849f097
2021-09-14Makefile: Remove dependency on headers_installDaniel Mentz
Previously, this makefile wasn't invoked with the headers_install target. To work around this, we made modules_install depend on headers_install. Now, that we have the commit "build.config: Install UAPI headers of external modules", we no longer need this dependency. Signed-off-by: Daniel Mentz <danielmentz@google.com> Change-Id: Ic64a04cdb109d38aa3fc67e3d5d9e106bcd7744e
2021-09-14Makefile: Inherit INSTALL_HDR_PATHDaniel Mentz
With the change aosp/1825055 ("build.sh: Pass INSTALL_HDR_PATH to makefiles of external modules"), we no longer need to guess the correct value of INSTALL_HDR_PATH because build.sh sets and exports it. Signed-off-by: Daniel Mentz <danielmentz@google.com> Change-Id: I285bb5d3c18d5038b86bea7f74d3a614d5730459
2021-09-10kleaf: Add gchips module for cloudripper.Yifan Hong
Test: builds Bug: 192617687 Change-Id: Iaf40996951b3520bb139f3565994b19f1e087ae9
2021-09-09Add BigOcean uapiRuofei Ma
Move the BigOcean uapi bigo.h from gs-google to google-modules and install it. Bug: 195458188 Signed-off-by: Ruofei Ma <ruofeim@google.com> Change-Id: Iebb2313e6b5c49d4bc71c6d4bac16434de517e1c
2021-08-28Add BigOcean driverRuofei Ma
Bug: 195458188 Signed-off-by: Ruofei Ma <ruofeim@google.com> Change-Id: I5975a32a5a1ce5593a84f455f54c887191fb00fe
2021-08-25Initial empty repositoryInna Palant