Commit graph

884,786 commits

Author SHA1 Message Date
Jeevan Shriram
95c72d05ab msm_rtb: Include <asm/io.h> header in rtb for QGKI
Include io.h header files in RTB only for QGKI configuration.

Change-Id: I81d7e38ed446040c63e35c66b0b0bd5352b970e6
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2020-07-03 18:28:08 -07:00
qctecmdr
7018e9ed05 Merge "defconfig: enable fixed and stub regulator for sdxlemur" 2020-07-03 12:28:56 -07:00
qctecmdr
a181eca3b9 Merge "msm: cvp: Re-initialize the HFI queue headers after CDSP-SSR" 2020-07-03 12:28:56 -07:00
qctecmdr
a265191ce0 Merge "mm: allow vmas with vm_ops to be speculatively handled" 2020-07-03 12:28:55 -07:00
qctecmdr
db51931ef7 Merge "arm64: defconfig: configuration for UTS namespace" 2020-07-03 12:28:55 -07:00
qctecmdr
54814fbe0c Merge "defconfig: msm: Enable CONFIG_QTI_TZ_LOG on perf builds" 2020-07-03 12:28:55 -07:00
qctecmdr
d4dd0c906b Merge "RTC6226: set the the Channel spacing value in Radio Config register" 2020-07-03 12:28:54 -07:00
qctecmdr
fb5e25c4b9 Merge "usb: dwc3-msm: Fix potential array out-of- bounds access" 2020-07-03 12:28:54 -07:00
qctecmdr
06a2496919 Merge "FROMGIT: binder: fix null deref of proc->context" 2020-07-03 12:28:54 -07:00
qctecmdr
412a67e1fe Merge "msm: cvp: Add IPCC mapping for CVP FW" 2020-07-03 04:10:19 -07:00
qctecmdr
30563a4dea Merge "Revert "irqdomain: Implement and expose API to clear IRQ mapping for radix tree"" 2020-07-03 04:10:18 -07:00
qctecmdr
64f0825f01 Merge "vmscan: Support multiple kswapd threads per node" 2020-07-03 04:10:18 -07:00
qctecmdr
9b42fe6257 Merge "defconfig: enable system pm violators for lahaina" 2020-07-03 04:10:17 -07:00
qctecmdr
b5c91fa029 Merge "mm: memory_hotplug: wait on device_hotplug_lock in OOM path" 2020-07-03 04:10:17 -07:00
qctecmdr
a84a5a18b4 Merge "arm64: defconfig: add trusted touch support to GKI defconfig" 2020-07-03 04:10:16 -07:00
qctecmdr
4cc91100ed Merge "leds: qti-flash: Disable flash LED channel after De-strobe" 2020-07-03 04:10:16 -07:00
qctecmdr
b4e7c7ab9c Merge "mm: disable fault around on emulated access bit architecture" 2020-07-03 04:10:16 -07:00
qctecmdr
92fd4ddff3 Merge "msm: cvp:fix potential prop_array idx out range" 2020-07-02 22:46:56 -07:00
qctecmdr
81c099aed2 Merge "ABI: Update whitelist" 2020-07-02 22:46:56 -07:00
qctecmdr
52c24cbf41 Merge "msm: kgsl: Fix kgsl_state_is_awake for gmu targets" 2020-07-02 22:46:55 -07:00
qctecmdr
5267e2c6f8 Merge "iommu: Remove iommu_debugfs_top" 2020-07-02 22:14:46 -07:00
qctecmdr
9a8fa3bef0 Merge "arm64: Enable a bunch of android recommended configs" 2020-07-02 22:14:45 -07:00
qctecmdr
472dad2bc9 Merge "defconfig: arm64: Disable SDCARD_FS for Lahaina" 2020-07-02 22:14:45 -07:00
qctecmdr
10d4fc23ab Merge "msm: ipa: Add more ipa API to ipa framework" 2020-07-02 22:14:45 -07:00
prernak
3f19888c6c defconfig: msm: Enable CONFIG_QTI_TZ_LOG on perf builds
Enable CONFIG_QTI_TZ_LOG as tz logs are required on perf builds.

Change-Id: I41db5d53a8eadc794edb0ba8c0abebafbb8f4594
Signed-off-by: prernak <prernak@codeaurora.org>
2020-06-30 13:46:21 +05:30
Arthur Shuai
86bf6f981f arm64: defconfig: configuration for UTS namespace
Add and enable UTS namespace.

Change-Id: I07fd4034d9371d3b47e93f73f2e94334bd31afdd
Signed-off-by: Arthur Shuai <shuaiq@codeaurora.org>
2020-06-30 00:39:05 -07:00
Haseeb Khan
6086680640 msm: cvp: Re-initialize the HFI queue headers after CDSP-SSR
The change is to fix hang issue after CDSP-SSR.

Change-Id: I7608b32b5c308c08902b19b1b2343a0fae6888ab
Signed-off-by: Haseeb Khan <hkhan@codeaurora.org>
2020-06-30 01:33:17 +05:30
Todd Kjos
6dfe047050 FROMGIT: binder: fix null deref of proc->context
The binder driver makes the assumption proc->context pointer is invariant after
initialization (as documented in the kerneldoc header for struct proc).
However, in commit f0fe2c0f050d ("binder: prevent UAF for binderfs devices II")
proc->context is set to NULL during binder_deferred_release().

Another proc was in the middle of setting up a transaction to the dying
process and crashed on a NULL pointer deref on "context" which is a local
set to &proc->context:

    new_ref->data.desc = (node == context->binder_context_mgr_node) ? 0 : 1;

Here's the stack:

[ 5237.855435] Call trace:
[ 5237.855441] binder_get_ref_for_node_olocked+0x100/0x2ec
[ 5237.855446] binder_inc_ref_for_node+0x140/0x280
[ 5237.855451] binder_translate_binder+0x1d0/0x388
[ 5237.855456] binder_transaction+0x2228/0x3730
[ 5237.855461] binder_thread_write+0x640/0x25bc
[ 5237.855466] binder_ioctl_write_read+0xb0/0x464
[ 5237.855471] binder_ioctl+0x30c/0x96c
[ 5237.855477] do_vfs_ioctl+0x3e0/0x700
[ 5237.855482] __arm64_sys_ioctl+0x78/0xa4
[ 5237.855488] el0_svc_common+0xb4/0x194
[ 5237.855493] el0_svc_handler+0x74/0x98
[ 5237.855497] el0_svc+0x8/0xc

The fix is to move the kfree of the binder_device to binder_free_proc()
so the binder_device is freed when we know there are no references
remaining on the binder_proc.

Fixes: f0fe2c0f050d ("binder: prevent UAF for binderfs devices II")
Signed-off-by: Todd Kjos <tkjos@google.com>
(cherry picked from commit d35d3660e065b69fdb8bf512f3d899f350afce52
     git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git char-misc-linus)
Bug: 158252621
Git-commit: bf0e4f96e4
Git-repo: https://android.googlesource.com/kernel/common/+/refs/heads/android-5.4-stable
Change-Id: Icb74dba032540a67854deb00e1e78e32326717b6
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-06-29 11:52:28 -07:00
himta ram
f5b71df415 RTC6226: set the the Channel spacing value in Radio Config register
Channel spacing value is not updated to Radio
Config register.This leads to scan all valid station
in scan list.
Update the the Channel spacing value in Radio Config
register as per rtc6226 driver data sheet.

CRs-Fixed: 2721208
Change-Id: I40b3a32c916714b4db15279b7e6abaa22b85afad
Signed-off-by: himta ram <hram@codeaurora.org>
2020-06-29 18:57:54 +05:30
Kavya Nunna
fde5540f5e defconfig: enable fixed and stub regulator for sdxlemur
Enable fixed and stub regulator and proxy consumer
support for sdxlemur.

Change-Id: I51ad8663806912832d01b51b794bf3b831d56d33
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2020-06-29 17:37:58 +05:30
qctecmdr
0ea391bae1 Merge "input: qcom-hv-haptics: restore RC calibration mode after FIFO playing" 2020-06-26 19:54:05 -07:00
qctecmdr
3dd4d83071 Merge "msm: adsprpc: limit number of cached buffers" 2020-06-26 19:54:05 -07:00
qctecmdr
ff524f07c1 Merge "msm: cvp: add trace utililty for systrace profiling" 2020-06-26 19:54:05 -07:00
qctecmdr
de04ebc9bc Merge "dt-bindings: clock: Add support for clock ids for SDXLEMUR" 2020-06-26 19:54:04 -07:00
qctecmdr
0cce5e66e8 Merge "defconfig: Enable MPM driver for Holi" 2020-06-26 19:54:04 -07:00
Jeevan Shriram
b7b999af6b Revert "irqdomain: Implement and expose API to clear IRQ mapping for radix tree"
IPCC module is never unloaded on GKI based build, so clearing of the IRQ
mappings are not needed. Remove it's implementation and usage.

This reverts commit 2fd144aa1b.

Change-Id: Iff747c574cced63425da3ab5adefd229d43d3ed6
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2020-06-26 19:05:21 -07:00
Jeevan Shriram
0cbd83002e buses: i2c: update i2c geni driver to include irq.h
Currently, geni driver is depending on header inclusion tree for symbol
and prototypes of irq.h. If the dependent header removes the header, geni
driver is failing to compile. To fix the compilation error, include the
header(irq.h) in geni i2c driver.

Change-Id: Ic0f2d6f541a7816e293e230710ae121712510602
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2020-06-26 18:53:56 -07:00
qctecmdr
8f161b7b67 Merge "power: smb1355: Add snapshot of SMB1355 charger driver" 2020-06-26 17:34:07 -07:00
qctecmdr
ee8ac78d1c Merge "config: Enable module signature in generic defconfig" 2020-06-26 17:34:07 -07:00
qctecmdr
79e3420f98 Merge "defconfig: msm: Disable CONFIG_MSM_TZ_LOG from perf builds" 2020-06-26 17:34:06 -07:00
qctecmdr
95d17c2e1d Merge "scsi: ufshcd: Properly set the device Icc Level" 2020-06-26 17:34:06 -07:00
qctecmdr
8119c34119 Merge "soc: qcom: hwkm: Re-format cmd packet for system kdf" 2020-06-26 17:34:05 -07:00
David Ng
0097194c07 defconfig: arm64: Disable SDCARD_FS for Lahaina
Disable SDCARD_FS for Android compliance for full switchover
to fusefs.

Change-Id: I54921f9651dec266b1aae51f075c95c71e670f34
Signed-off-by: David Ng <dave@codeaurora.org>
2020-06-26 15:55:05 -07:00
Shashank Babu Chinta Venkata
59d1508243 arm64: defconfig: add trusted touch support to GKI defconfig
Add trusted touch support to Lahaina GKI defconfig.

Change-Id: I1cd0b6d011695c14d1b9d8d9c00daf3dcca715d5
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
2020-06-26 10:36:55 -07:00
Shashank Babu Chinta Venkata
5507cbf1b8 arm64: defconfig: add trusted touch config for genericarmv8
Enable Trusted touch config in genericarmv8 defconfig.

Change-Id: I452f8088f8cc704ed8abf727412678c39248ae39
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
2020-06-26 10:36:45 -07:00
Siddharth Gupta
5db100cd26 ABI: Update whitelist
Common change to add required symbols to the whitelist.

Change-Id: I799bb1b8b2e637d6a5570ff82b8040447a9bf0e7
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-06-26 10:10:59 -07:00
Lina Iyer
60d5e8ca30 defconfig: enable system pm violators for lahaina
Enable system_pm_violators debug driver to read and report DRVs that are
preventing system low power modes.

Change-Id: I0e10010b6df3670c05d3d7aa5aed3581f664ec81
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
2020-06-26 07:44:24 -07:00
Charan Teja Reddy
49ab491930 mm: memory_hotplug: wait on device_hotplug_lock in OOM path
Use lock_device_hotplug() inplace of lock_device_hotplug_sysfs() as the
latter can return immediately if there are any parallel
onlining/offlining of memory blocks.

Change-Id: Ica3cc286b7d4f87310f86e8c9e6db2157e511419
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2020-06-26 05:09:26 -07:00
Minchan Kim
1886e65754 mm: disable fault around on emulated access bit architecture
fault_around aims to reduce minor faults of file-backed pages via
speculative ahead pte mapping and relying on readahead logic.  However,
on non-HW access bit architecture the benefit is highly limited because
they should emulate the young bit with minor faults for reclaim's page
aging algorithm.  IOW, we cannot reduce minor faults on those
architectures.

I did quick a test on my ARM machine.

512M file mmap sequential every word read on eSATA drive 4 times.
stddev is stable.

  = fault_around 4096 =
  elapsed time(usec): 6747645

  = fault_around 65536 =
  elapsed time(usec): 6709263

  0.5% gain.

Even when I tested it with eMMC there is no gain because I guess with
slow storage the major fault is the dominant factor.

Also, fault_around has the side effect of shrinking slab more
aggressively and causes higher vmpressure, so if such speculation fails,
it can evict slab more which can result in page I/O (e.g., inode cache).
In the end, it would make void any benefit of fault_around.

So let's make the default "disabled" on those architectures.

Change-Id: I5e6b74943c95f6779b3a6e463b4d0a8b27eaac01
Link: http://lkml.kernel.org/r/20160518014229.GB21538@bbox
Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Git-commit: d0834a6c2c
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
[vinmenon@codeaurora.org: trivial merge conflict fixes]
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2020-06-26 05:07:02 -07:00
Raghavendra Kakarla
7ad3e81608 defconfig: Enable MPM driver for Holi
Enable MPM interrupt controller driver to program
the APSS wakeup capable interrupts to RPM MSG RAM.

Change-Id: Ic62b0f82cc4c6172924625ee6e5eda3e6358c613
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2020-06-26 03:09:45 -07:00