Commit graph

820841 commits

Author SHA1 Message Date
qctecmdr
42f1dec57a Merge "Change the subprocess argument to fix the build issue" 2021-06-30 01:35:21 -07:00
qctecmdr
c907a126a3 Merge "clk: qcom: gcc: Add halt check for MSS clocks for SDM660" 2021-06-29 14:27:36 -07:00
qctecmdr
6c8d9798cf Merge "clk: qcom: mmcc: Change halt to halt_voted for SDM660" 2021-06-29 14:27:35 -07:00
qctecmdr
9d9d2dadaa Merge "msm: adsprpc: Handle UAF in process shell memory" 2021-06-29 14:27:32 -07:00
qctecmdr
8a6e5b5c8a Merge "msm: kgsl: Make sure gpu-speed-bin-vectors has the correct size" 2021-06-29 02:15:40 -07:00
qctecmdr
e4860cf85d Merge "msm: kgsl: Keep private intact until last refcount is put" 2021-06-29 02:15:39 -07:00
qctecmdr
a5923817a8 Merge "mmc: cqhci: Handle cqhci crypto configurations correctly" 2021-06-28 23:04:07 -07:00
qctecmdr
9e84b183f0 Merge "power: qpnp-qg: Add support to clear soh upon first profile load" 2021-06-28 08:30:32 -07:00
Kavya Nunna
a755419553 power: qpnp-qg: Add support to clear soh upon first profile load
When the battery profile is loaded first time, update the
clear soh property so that soh algorithm can clear stored
parameters.

Change-Id: Idfc25c589f8422b76768229e52dab7d670c6b231
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2021-06-28 18:35:23 +05:30
qctecmdr
9726e97fef Merge "dt-bindings: msm: Add bindings for flash type" 2021-06-28 05:42:50 -07:00
qctecmdr
9a23128e34 Merge "include: uapi: Add QBG UAPI headers" 2021-06-28 05:42:50 -07:00
qctecmdr
1ac6f7f7c6 Merge "defconfig: Enable AW2016 LED driver for khaje" 2021-06-28 05:42:50 -07:00
Sunil Khatri
514df4e876 msm: kgsl: Make sure gpu-speed-bin-vectors has the correct size
Total number of elements in the gpu-speed-bin-vectors array
should be multiple of number of elements in a speed bin vector.

If number of elements is not a multiple of vector size then
there is a possibilty of out of bound access in the
speed-bin vector array. Also rectify the memory allocated for it.

Change-Id: I9158e4f883eca400a46663b07326fb6f6020155c
Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
Signed-off-by: Archana Sriram <apsrir@codeaurora.org>
2021-06-28 17:54:30 +05:30
Sunil Khatri
db1c85ef91 msm: kgsl: Add multiple fuses based speed bin
Add multiple fuses based speed bin. This enables
support for different GPU Fmax frequencies based
on speed bin value.

Change-Id: I9799111c2ccdafee405a4612c342e809720eb612
Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
Signed-off-by: Archana Sriram <apsrir@codeaurora.org>
2021-06-28 17:50:24 +05:30
Bharat Pawar
1fd38bb437 Change the subprocess argument to fix the build issue
Change subprocess arguments in  kernel_headers.py
script so that it can include dirname to resolve the
compilation issues in the new build system.

Change-Id: I89bbe53aa8a8b50e2c98a795fa20a976f2792a3b
Signed-off-by: Bharat Pawar <bpawar@codeaurora.org>
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2021-06-28 16:47:30 +05:30
Shyam Kumar Thella
f297787f49 include: uapi: Add QBG UAPI headers
Add UAPI headers for QBG (Qualcomm Battery Gauge).

Change-Id: Iae5ba52ebff9fb4b591065c2bffe15763ab9518a
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
2021-06-28 10:09:35 +05:30
Kavya Nunna
7b3eba40e0 defconfig: Enable AW2016 LED driver for khaje
Enable AW2016 LED driver for khaje platform.

Change-Id: I4168e56d2205d3b5a58b6eb1b36b03e9ef7ae3cf
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2021-06-27 20:49:13 -07:00
Chetan C R
94f736bb0c clk: qcom: gcc: Add halt check for MSS clocks for SDM660
Add the halt flag for bimc axi modem subsystem clock.

Change-Id: I3cf71afd2b0a692bff32248bc2176c265c937b83
Signed-off-by: Chetan C R <cchinnad@codeaurora.org>
2021-06-26 01:08:54 +05:30
Jeya R
695af62417 msm: adsprpc: Handle UAF in process shell memory
Added flag to indicate memory used
in process initialization. And, this memory
would not removed in internal unmap to avoid
UAF or double free.

Change-Id: I99e8e4f94644c5d47b4863f89b308bd5de49c1d7
Acked-by: Krishnaiah Tadakamalla <ktadakam@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
2021-06-25 05:19:07 -07:00
Vandana Jain
6666ba7d87 msm: camera: Add gpio based flash driver support
QM215 uses gpio based flash and torch.
Add gpio flash driver for qm215 qrd.

Change-Id: I07542025ac8cd52e25f0378d51860d561dc12191
Signed-off-by: Vandana Jain <vandja@codeaurora.org>
2021-06-25 04:04:24 -07:00
Hui Liu
60ce662d94 leds: aw2016: update breath sysfs node name
Update the blink sysfs node name to "breath"
to make sure the userspace code can access
it correctly. Meanwhile, replace msleep() with
usleep_range() for better sleeping delay precision,
and update the device sysfs node permission to 0644.

Change-Id: I0957087747fcf01f5a036f25c44ce83787b071a9
Signed-off-by: Hui Liu <huliu@codeaurora.org>
2021-06-25 15:46:45 +05:30
Bill Peckham
6d29c9240c Use environment variable to find unifdef tool
Tools used within the sandbox are now copied into the
sandbox, see aosp/1531944. This caused the modified
headers_install.sh, which is no longer installed, to
point to a non-existent location.

This change adds a level of indirection. The
gen-headers_install.sh module no longer uses unifdef as
a tool, but still modifies the headers_install.sh
script, but not to point to a particular location, but
to find the unifdef tool via an environment variable,
LOC_UNIFDEF.

Next, we modify qti_generate_kernel_headers_arm and
qti_generate_kernel_headers_arm64 to need the unifdef
tool (which is copied into the sandbox for these tools).

We add a new --unifdef option to the kernel_headers.py
script so that it can find the tool in the sandbox. The
kernel_headers.py script sets the LOC_UNIFDEF
environment variable before invoking the altered
headers_install.sh script (also copied into the
sandbox).

Finally, we generate gen_headers_arm.bp and
gen_headers_arm64.bp with all of these changes.

Bug: 178500203
Change-Id: Ie3b8c36b7d60bd950c28bac566e04f43de78cf98
Signed-off-by: Mohammed Athar <athar@codeaurora.org>
Signed-off-by: Shadab Naseem <snaseem@codeaurora.org>
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2021-06-25 00:24:52 -07:00
Soumil Shah
37a114cbf2 kernel_headers: Explicitly run headers_install under 'sh'
To avoid build failures in the newer Android build systems,
run the headers_install script explicitly under 'sh'.

Change-Id: If30d2bda653c6be443345a2594e9993d9780db21
Signed-off-by: Soumil Shah <soumshah@codeaurora.org>
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2021-06-25 00:24:11 -07:00
shiwgupt
705731cf34 dt-bindings: msm: Add bindings for flash type
Add binding support for flash type for khaje camera.

CRs-Fixed: 2938804
Change-Id: I844b59125bb08034b1937422ac29485d5a7a2746
Signed-off-by: shiwgupt <shiwgupt@codeaurora.org>
2021-06-24 17:06:31 +05:30
Chetan C R
e4bd49da29 clk: qcom: mmcc: Change halt to halt_voted for SDM660
Change halt flag from branch_halt to branch_halt_voted
for mmss video ahb clock in SDM660.

Change-Id: Ia6032064b57560afadc1032e6d5b8675a4555475
Signed-off-by: Chetan C R <cchinnad@codeaurora.org>
2021-06-24 15:53:01 +05:30
qctecmdr
d45271c30a Merge "leds: add initial driver for AW2016 LED device" 2021-06-23 08:58:32 -07:00
Hareesh Gundu
9607ab92b2 msm: kgsl: Keep private intact until last refcount is put
Currently, we are partially freeing private once last file is
closed but closing last file doesn't necessarily means that
all refcount on private is also put. This results in having a
partially initialized private struct which is not yet freed
and also can't be re-used. As a result if an application is
just opening and closing kgsl device in a loop we will end up
allocating and initializing a new private every time. This also
allows application to mis-use this and create more than allowed
limit of 200 contexts as they can use newly created private to
create new context every time.

To fix this, keep private intact until last refcount is put.
This ensures we can re-use same private if same pid is doing
kgsl open and close repeatedly and also ensures that an app.
can't breach 200 context limit.

Change-Id: Ia1d1071275c7691a3d50bc15477b71387c5806d6
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2021-06-23 18:51:11 +05:30
qctecmdr
ac05474e9f Merge "clk: qcom: khaje: Update freq_tbl and pll configurations" 2021-06-23 04:48:16 -07:00
Madhuri Medasani
8cd16017f1 clk: qcom: khaje: Update freq_tbl and pll configurations
Add intermediate freq 980MHz and 1100MHz in GPU code
for gx_gfx3d_clk_src and update pll configurations
in GPUCC and GCC.

Change-Id: Ic1d46f639c8817bf0c32d2ea43dac4f4f703b3ea
Signed-off-by: Madhuri Medasani <mmedasan@codeaurora.org>
2021-06-22 20:34:44 -07:00
Kishor Krishna Bhat
b81647a0c1 defconfig: Enable memory cgroup config
Userspace lmkd requires kernel support for memory cgroups.
Hence, enabled memory cgroup configs.

Change-Id: I8da891d040c9cfe89f64be142a7c488d9dc51b40
Signed-off-by: Kishor Krishna Bhat <kishkris@codeaurora.org>
2021-06-22 09:57:33 -07:00
Hui Liu
a650686ead leds: add initial driver for AW2016 LED device
Add initial driver for AW2016 LED device
which can support up to 3 LED channels.

Signed-off-by: liweilei <liweilei@awinic.com>
Git-commit: ed6556f262cf7e2086d7728c2f752be4cf94b4d1
Git-repo: https://github.com/awinic-driver/aw2016.git
[huliu@codeaurora.org: move the driver to leds folder
 and make corresponding changes in Kconfig and Makefile,
 also remove the dtsi config file and modify the code
 style.]
Signed-off-by: Hui Liu <huliu@codeaurora.org>
Change-Id: I252ca2710d393ff6dcbb691a2a530433ffbd21e3
2021-06-22 17:34:49 +05:30
qctecmdr
e8c7d22e81 Merge "pinctrl: Update PINCTRL macro definition for Khaje" 2021-06-22 01:52:48 -07:00
Komal Bajaj
bbff8340de pinctrl: Update PINCTRL macro definition for Khaje
Update PINCTRL macro definition for Khaje.

Fixes: 73bcd62
Change-Id: I7ce57554f23b1b2c4c4e5940a735471e7ad625e8
Signed-off-by: Komal Bajaj <kbajaj@codeaurora.org>
2021-06-21 21:02:17 +05:30
qctecmdr
6639890b6a Merge "pinctrl: msm: add range of reserved gpio for Khaje" 2021-06-21 05:06:17 -07:00
qctecmdr
300f5a8cac Merge "input: touchscreen: nt36xxx: Add Chip id and firmware" 2021-06-21 05:06:08 -07:00
qctecmdr
d16e7edb3f Merge "ANDROID: Incremental fs: Set credentials before reading/writing" 2021-06-21 01:18:24 -07:00
qctecmdr
24793476fc Merge "msm: kgsl: Remove sysfs entries after releasing memory" 2021-06-21 01:18:20 -07:00
Ravikanth Tuniki
817319885e input: touchscreen: nt36xxx: Add Chip id and firmware
Add novatek Chip id and firmware during boot up to
enable touch.

Change-Id: I382ae51c7bb4bf270c2e01b484281fcc24270062
Signed-off-by: Ravikanth Tuniki <rtunik@codeaurora.org>
2021-06-21 12:34:44 +05:30
qctecmdr
88656fc9b2 Merge "pinctrl: Add wakeup GPIO register and bit information for khaje" 2021-06-20 21:39:23 -07:00
qctecmdr
54a42cb388 Merge "mhi: core: Prevent doorbell with invalid tre" 2021-06-18 14:49:17 -07:00
qctecmdr
e5a76bd1ab Merge "defconfig: khaje: Enable khaje pinctrl" 2021-06-18 14:49:17 -07:00
Paul Lawrence
84bb7a652b ANDROID: Incremental fs: Set credentials before reading/writing
Use same selinux scheme as incfs v2
Fix memory leak.

Bug: 174692664
Test: incfs_test passes
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Change-Id: I6058ddad9d43ba01b2eabd7d3c576f2cc9b42292
Git-commit: d3b8915e6f1000cebd0ec67c0a45b59f60174482
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2021-06-18 16:58:31 +05:30
Komal Bajaj
73bcd6214f pinctrl: Add wakeup GPIO register and bit information for khaje
Enable and populate wake_reg and wake_bit fields for the pin
groups for Khaje. This is needed to configure GPIOs as wake
up capable.

Change-Id: Ie5c4ffdb312a93cfd941e614bedbb141c73e963f
Signed-off-by: Komal Bajaj <kbajaj@codeaurora.org>
2021-06-18 02:35:12 -07:00
Shadab Naseem
6396bc3354 defconfig: khaje: Enable khaje pinctrl
Enable config option to use khaje pin control.

Change-Id: If4ea0d85e083087ca87a1ada187372ad5c2bf292
Signed-off-by: Shadab Naseem <snaseem@codeaurora.org>
2021-06-17 21:34:10 -07:00
qctecmdr
45f490af96 Merge "defconfig: disable debug configs" 2021-06-17 21:21:10 -07:00
qctecmdr
bcd0d25b18 Merge "pinctrl: qcom: Add support for Khaje SoC pin control" 2021-06-17 08:13:49 -07:00
Komal Bajaj
36354e493f pinctrl: msm: add range of reserved gpio for Khaje
Add range of reserved gpios for khaje target.

Change-Id: I5a7e22b4889b885f35744279b9eb1fd65d477298
Signed-off-by: Komal Bajaj <kbajaj@codeaurora.org>
2021-06-17 18:35:49 +05:30
Swetha Chikkaboraiah
b3efa4f3c5 defconfig: disable debug configs
Disable debug configs not required for
8937 perf builds.

Change-Id: I15fe0a91ff93b3c73627d7b4e0aa9cdcb25bdbc5
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
2021-06-17 04:48:05 -07:00
Greg Kroah-Hartman
e8b542dd52 ANDROID: Incremental fs: fix up attempt to copy structures with READ/WRITE_ONCE
READ/WRITE_ONCE are for atomic data types, not for structures.  Fix this
up by doing a memcpy to make it explicit just how messy this copy is...

This fixes a build error on 5.8-rc1, as things are more strict, odds are
it's also wrong in other kernel versions as well...

Cc: Daniel Mentz <danielmentz@google.com>
Cc: Paul Lawrence <paullawrence@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I7ecd3d05bd94c936dd5e69c63028458786f37a78
Git-commit: 197d678a0efdc3d29597e11c4c6bb110b9d7b431
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2021-06-17 17:11:37 +05:30
qctecmdr
1fe3b507fe Merge "msm: ipa: Fix array out of bound and use after NULL check" 2021-06-17 04:23:13 -07:00