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>
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>
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>
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>
Add the halt flag for bimc axi modem subsystem clock.
Change-Id: I3cf71afd2b0a692bff32248bc2176c265c937b83
Signed-off-by: Chetan C R <cchinnad@codeaurora.org>
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>
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>
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>
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>
Add binding support for flash type for khaje camera.
CRs-Fixed: 2938804
Change-Id: I844b59125bb08034b1937422ac29485d5a7a2746
Signed-off-by: shiwgupt <shiwgupt@codeaurora.org>
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>
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>
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>
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
Add novatek Chip id and firmware during boot up to
enable touch.
Change-Id: I382ae51c7bb4bf270c2e01b484281fcc24270062
Signed-off-by: Ravikanth Tuniki <rtunik@codeaurora.org>
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>
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>