Commit Graph

820817 Commits

Author SHA1 Message Date
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
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
qctecmdr
d45271c30a Merge "leds: add initial driver for AW2016 LED device" 2021-06-23 08:58:32 -07:00
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: d3b8915e6f
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: 197d678a0e
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
qctecmdr
2cb79c2747 Merge "dt-bindings: msm: Add bindings for flash type" 2021-06-17 04:23:10 -07:00
santosh
704dd9a2c0 disp: uapi: drm: Add fsc format modifier
This change adds a format modifier to differentiate Field
Sequential Color (FSC) format from existing formats.

Change-Id: Ia5f0af28bc91448aadb8b626044b642308eea679
Signed-off-by: santosh <santoshkumar@codeaurora.org>
2021-06-16 22:38:10 -07:00
qctecmdr
9cdeb30ad5 Merge "msm: adsprpc: Remove bad ioctl log" 2021-06-16 09:01:30 -07:00
Sriharsha Allenki
50b98084f0 mhi: core: Prevent doorbell with invalid tre
In the cases of HW accelerated channels, there
is a possibility that the db_mode has changed while
a queue is in progress. This can happen when
mhi_queue_dma is scheduled out and an OOB event
is parsed.
Fix this by determining whether to ring the
doorbell or not without releasing the lock to
ensure persistence of db_mode.

Change-Id: I586937057ff0b3329813c10d5f4337a2df887fd1
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2021-06-16 21:02:40 +05:30
Jeya R
a4ab7676b8 msm: adsprpc: Remove bad ioctl log
Remove bad ioctl log as it can lead to flooding
in new ioctls scenarios which are not supported on
on kernel .

Change-Id: I548e606660c722f410c12a19cf71a4fc10ee6a22
Acked-by: Deepika Singh <dsi@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
2021-06-16 17:14:50 +05:30
Shadab Naseem
09346113b5 pinctrl: qcom: Add support for Khaje SoC pin control
Add support for Khaje pin configuration and control
via pinctrl framework.

Change-Id: I32b3d3e26aa3628f359005a7966a08fb195c38ba
Signed-off-by: Shadab Naseem <snaseem@codeaurora.org>
Signed-off-by: Komal Bajaj <kbajaj@codeaurora.org>
2021-06-16 14:42:25 +05:30
qctecmdr
1963553f91 Merge "usb: dt-bindings: Add USB QMP PHY registers definition for Khaje" 2021-06-15 14:56:44 -07:00
shiwgupt
fb4c3ab729 dt-bindings: msm: Add bindings for flash type
Add binding support for flash type for khaje camera.

CRs-Fixed: 2938804
Change-Id: Ie4c7978d9baf34456300f39cd1d607c693420862
Signed-off-by: shiwgupt <shiwgupt@codeaurora.org>
2021-06-15 19:08:52 +05:30
qctecmdr
c2944f3841 Merge "defconfig: Add HSUSB PHY configurations to Khaje" 2021-06-15 06:24:37 -07:00
Mohammed Javid
7e04ab0ab1 msm: ipa: Fix array out of bound and use after NULL check
Couple of code cleanup
 - Check for upper boundary for resource_index
   not to dependent on ipa_rm_dep_get_index function.
 - Check actual argument for NULL and return.

Change-Id: I0ab244e68d96f7841ab2a10e61f2546314166165
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2021-06-15 15:57:58 +05:30
Mohammed Javid
c87f188c26 msm: ipa: Fix to check only reset IPA stats can have data as NULL
Only reset IPA stats can have tether_stat
data as NULL. Query of of tether stat without
allocating memory for structure
wan_ioctl_query_tether_stats should fail.

Change-Id: Iab0fa98ffdcb2b32d75f4e8cb88f250002d2a787
Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2021-06-15 15:54:19 +05:30
Mohammed Javid
e8755fbb19 msm: ipa: Fix pointer checked for NULL may be used
Data pointer may be NULL, check for reset value
to be false in that case and return EINVAL for
invalid argument.

Change-Id: I05a4aa96724c123516a7965bd0e939bdf0c86553
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2021-06-15 15:45:57 +05:30
qctecmdr
1f60a15384 Merge "leds: led-class: Retain the latest user brightness request" 2021-06-15 02:59:04 -07:00
qctecmdr
2619465735 Merge "mmc: core: Add at least 3 mclk cycle delay before next command after ACMD41" 2021-06-15 02:59:03 -07:00
Kamal Agrawal
6b16d08cad msm: kgsl: Remove sysfs entries after releasing memory
Consider a scenario when device is in OOM situation. Assume a process is
doing sysfs operation, grabs kernfs_mutex and wants to allocate memory.
LMKD tries to kill processes but kgsl processes will be blocked waiting
for kernfs_mutex in sysfs_remove_file.

kgsl_process_private_close > kgsl_process_uninit_sysfs > sysfs_remove_file

KGSL won't free up memory as it is done after sysfs removal leading to a
livelock. Fix it by releasing memory before removing sysfs entries.

Change-Id: I99640d7a653faffa671d5b035abb78e9473da12e
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
2021-06-15 12:04:07 +05:30
Kamal Agrawal
f9416d6476 msm: kgsl: Remove debugfs directory inside lock
In kgsl_process_private_close, debugfs directory is removed after mutex
is unlocked. Considering this, a race can be created between
kgsl_process_private_close and kgsl_process_init_debugfs. Fix it by
moving debugfs directory removal inside lock.

Change-Id: Ida65ab8a3825d8c695c56556860495cce853117c
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
2021-06-15 11:51:35 +05:30
qctecmdr
4ae170e1e8 Merge "soc: qcom: Add check to handle out of bound access" 2021-06-14 17:15:20 -07:00
qctecmdr
9a64b5351f Merge "FM: Reduce high scan time" 2021-06-14 17:15:17 -07:00
Ram Chandrasekar
29cca490d4 leds: led-class: Retain the latest user brightness request
Retain the latest user brightness request. This ensures
that when a max brightness limit is altered, the last
brightness request is taken into account, when restoring
the current brightness.

Change-Id: I6461e06f64abe336cabc27a3992d734f1fb745c6
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2021-06-14 22:24:13 +05:30
Mohan Pallaka
0ba12a1e95 leds: led-class: add support for max_brightness store
Add store interface for max_brightness to allow users
to change the maximum brightness to be supported by
the hardware.

Change-Id: I8b65debdc52ded24227483c4db21aaec63e27927
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2021-06-14 22:19:41 +05:30
Jun Li
197ddb978d mmc: core: Add at least 3 mclk cycle delay before next command after ACMD41
As per design, internal CRC error flag will be cleared only after 3 MCLK
once clear command issued. Since the MCLK will be running at 400KHz during
initialization, it will take max of 7.5us (2.5us *3 = 7.5us) to clear
the status. If the CMD_CRC_CHECK_EN bit is enabled before the source is
cleared, CRC INTR bit will be set in the 17th bit of INTR status register.
Because the response of ACMD41 in sd and CMD1 in mmc are R3 response that
don't have CRC field, so it is expected to give next command after at least
3 MCLK periods.

Change-Id: I31b52a767f2212d33cab15251ab5b37a04b25618
Signed-off-by: Jun Li <liju@codeaurora.org>
2021-06-14 15:52:18 +05:30
Prateek Raj Singh
09a5335aa8 FM: Reduce high scan time
Changed logic to find Lower Band Limit from Search Up from current
channel with Wrap enable to tuning to Lower Band Limit + chan space
and Search Down with Wrap disable.

Change-Id: I79a686238d96db5dd5df9436b346b465435ae4f5
Signed-off-by: Prateek Raj Singh <pratsing@codeaurora.org>
2021-06-14 14:54:30 +05:30
Komal Bajaj
c0ceed81bc soc: qcom: Add check to handle out of bound access
Adding check in msm_minidump_add_region() to handle scenarios for
out of bound access while adding region in minidump table in SMEM.

Change-Id: Ic20663dbd2fa8ae96899930a7f7ba79dc204ff5e
Signed-off-by: Komal Bajaj <kbajaj@codeaurora.org>
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2021-06-14 14:19:49 +05:30