Commit graph

890,968 commits

Author SHA1 Message Date
qctecmdr
498879b848 Merge "cnss2: Avoid dereferencing pointer before NULL check" 2020-09-19 20:35:22 -07:00
qctecmdr
185f5e9c52 Merge "defconfig: Disable USB_CONFIGFS_RNDIS for Lahaina/Holi QGKI" 2020-09-19 20:35:22 -07:00
qctecmdr
29a9d28c82 Merge "FROMGIT: mm, oom_adj: don't loop through tasks in __set_oom_adj when not necessary" 2020-09-19 17:55:21 -07:00
qctecmdr
5f6aa13587 Merge "iio: adc: Add support to read parallel charger current channel" 2020-09-19 15:11:25 -07:00
qctecmdr
32113d11a3 Merge "i2c-msm-geni: Register suspend_late instead of suspend_noirq" 2020-09-19 09:09:16 -07:00
qctecmdr
d09483fe6c Merge "soc: qcom: spss_utils: IAR 3rd party uefi app" 2020-09-19 09:09:16 -07:00
qctecmdr
9d79203950 Merge "defconfig: Enable Synaptics DSX Touch for holi target" 2020-09-19 09:09:15 -07:00
qctecmdr
8ccd500ed6 Merge "input: qpnp-power-on: Fix the argument data-type for regmap_bulk_read" 2020-09-19 09:09:15 -07:00
qctecmdr
5636c8bedc Merge "msm: kgsl: Add IOMMU clocks for SA8155" 2020-09-19 09:09:14 -07:00
qctecmdr
8c0cae110c Merge "mhi: core: Add checks for bhie offsets" 2020-09-19 09:09:14 -07:00
qctecmdr
a2998ad434 Merge "dt-bindings: clock: Add support for APSS clock ids for SDXLEMUR" 2020-09-19 09:09:14 -07:00
Vivek Pernamitta
e80749a2a5 mhi: core: Add checks for bhie offsets
Return immediately if device returns an invalid BHIE offsets.

Change-Id: I2fd8fe73e47b28b1b212284c02e5c9c857805461
Signed-off-by: Vivek Pernamitta <vpernami@codeaurora.org>
2020-09-19 01:29:32 -07:00
Naveen Yadav
8d0cb02471 dt-bindings: clock: Add support for APSS clock ids for SDXLEMUR
Add clock IDs for APSSCC clients to be able to request for clocks
from these clock controllers.

Change-Id: I284beb3b62a4f5c4521c7e7e0f9d068c469a85bb
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2020-09-18 19:28:07 +05:30
Amir Samuelov
f19ffc2867 soc: qcom: spss_utils: IAR 3rd party uefi app
Set saved cmac on ioctl from user space.
Write saved cmac to shared memory on SSR.
Read calculated cmac from shared memory.
Provide calculated cmac to user space via sysfs.
Cleanup unused IAR-STATE fuses.
Cleanup unused IAR-FEATURE-ENABLED fuse.
Read actual PIL area size from register.
pbl_cmac_show() returns binary rather than string.
Change IOCTL to use variable-size-array.

Change-Id: Ic4ea38685f6b9d1100a28bd958e44f513373fea9
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2020-09-18 04:46:02 -07:00
Hui Li
9cdeebd042 msm: kgsl: Add IOMMU clocks for SA8155
To support SA8155, we need the following clocks:
GCC_GPU_CFG_AHB_CLK, GCC_DDRSS_GPU_AXI_CLK.

Change-Id: Ie2b4ec643136c11c1fa679a12f20b72ced3a6263
Signed-off-by: Hui Li <hul@codeaurora.org>
2020-09-17 21:09:13 -07:00
Yue Ma
0bb0ef6ed8 cnss2: Avoid dereferencing pointer before NULL check
Only dereference pci_priv pointer after NULL check.

Change-Id: I773cb4ae07599b737391ced3e67e4b1ad177b4f1
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-09-17 18:29:48 -07:00
qctecmdr
ae23001f63 Merge "iio: qcom-spmi-adc5: add support to read current channels" 2020-09-17 15:21:27 -07:00
qctecmdr
82d3128cd5 Merge "arm64: smp: Undo flushing of caches from local_cpu_stop" 2020-09-17 15:21:27 -07:00
qctecmdr
1059cd9eac Merge "thermal: qcom-spmi-temp-alarm: align temp readings with over-temp stage" 2020-09-17 15:21:26 -07:00
qctecmdr
02a5c488da Merge "soc: qcom: hwkm: clear previous command errors correctly" 2020-09-17 15:21:26 -07:00
qctecmdr
7c7105f9f7 Merge "iommu: arm-smmu: update access to SMMU TCU testbus registers with scm call" 2020-09-17 15:21:26 -07:00
qctecmdr
b8e9c3491e Merge "memshare: Correct the usage of index and client_id" 2020-09-17 15:21:26 -07:00
qctecmdr
3a9d08b148 Merge "coresight: tmc-etf: Set reading status to False" 2020-09-17 15:21:25 -07:00
Jack Pham
bb0471d047 defconfig: Disable USB_CONFIGFS_RNDIS for Lahaina/Holi QGKI
USB_CONFIGFS_RNDIS is currently enabled by gki_defconfig.
Although the upstream F_RNDIS driver can coexist with the USB
GSI driver, currently there is a conflict in userspace that can
result in choosing the wrong one. Disable the SW-only F_RNDIS
driver to allow the GSI driver to be enabled exclusively.

Change-Id: I272b632dda1e792931102f94554cd26065389b34
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-09-17 13:56:33 -07:00
qctecmdr
76a04e42a5 Merge "defconfig: msm: Enable minidump features" 2020-09-17 04:28:34 -07:00
qctecmdr
008510ccd4 Merge "defconfig: msm: Enable msm_performance driver for Holi" 2020-09-17 04:28:34 -07:00
qctecmdr
d9e7056e6c Merge "fsa4480: enable QGKI config for fsa4480 for holi" 2020-09-17 04:28:34 -07:00
qctecmdr
c468662028 Merge "iio: qcom-spmi-adc5: add CHG_TEMP channel for PMIC7" 2020-09-17 04:28:33 -07:00
qctecmdr
3f83363385 Merge "Bluetooth: Add support for Moselle chip" 2020-09-17 04:28:33 -07:00
qctecmdr
ebf187c5ef Merge "soc: mmrm: Adding domain info to identify the clients accurately" 2020-09-17 04:28:32 -07:00
Manoj Prabhu B
1ad024c390 memshare: Correct the usage of index and client_id
Array index of memblock and the client_id of memshare clients
confused usage can cause issue. Correct the usage by properly
defining variable names.

Change-Id: I29a0c6a01d63e92774e11fd258d018c03769ca50
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2020-09-17 10:46:56 +05:30
qctecmdr
1a49066119 Merge "usb: dwc3-msm: Add explicit out-of-bounds check before array access" 2020-09-16 21:04:12 -07:00
qctecmdr
461f66a474 Merge "defconfig: Enable configs for pil modem on sdxlemur" 2020-09-16 21:04:11 -07:00
qctecmdr
3199a268c1 Merge "msm: kgsl: Allow I/O coherency on imported buffers if we can" 2020-09-16 21:04:11 -07:00
qctecmdr
a8e7108d0d Merge "arch: arm: Enables HAVE_FUTEX_CMPXCHG if FUTEX is enabled" 2020-09-16 21:04:10 -07:00
qctecmdr
504a97b013 Merge "rtc: rtc-pm8xxx: Read ALARM_EN and update to alarm enabled status" 2020-09-16 21:04:09 -07:00
qctecmdr
a94047278c Merge "smcinvoke: populate result from correct returned variable" 2020-09-16 21:04:09 -07:00
qctecmdr
ce86c793e6 Merge "defconfig: msm: Enable Yupik platform" 2020-09-16 21:04:09 -07:00
qctecmdr
b7a9f3bf0f Merge "net: qrtr: hold ept sem lock before node lookup" 2020-09-16 21:04:08 -07:00
qctecmdr
ec57ea0659 Merge "cpufreq: qcom-cpufreq-hw: Fix possible NULL pointer dereferences" 2020-09-16 18:18:33 -07:00
qctecmdr
8cc3bb6477 Merge "soc: qcom: smp2p: Add proper retrigger detection" 2020-09-16 18:18:33 -07:00
qctecmdr
8245ad56d8 Merge "cnss2: Update bus bandwidth device tree config read" 2020-09-16 18:18:32 -07:00
qctecmdr
316d8c2835 Merge "msm: kgsl: Enable veto_fal10 for A660 GPU variant" 2020-09-16 18:18:32 -07:00
qctecmdr
67d4b7effc Merge "drivers: thermal: Add limits cdsp Isense driver" 2020-09-16 18:18:31 -07:00
qctecmdr
9d630cbebe Merge "msm: kgsl: Add the user API definition for timelines" 2020-09-16 18:18:31 -07:00
qctecmdr
791f492c81 Merge "soc: mmrm: Adding mmrmm_client_data flags" 2020-09-16 18:18:30 -07:00
Suren Baghdasaryan
74cf1bc3a2 FROMGIT: mm, oom_adj: don't loop through tasks in __set_oom_adj when not necessary
Currently __set_oom_adj loops through all processes in the system to
keep oom_score_adj and oom_score_adj_min in sync between processes
sharing their mm. This is done for any task with more that one mm_users,
which includes processes with multiple threads (sharing mm and signals).
However for such processes the loop is unnecessary because their signal
structure is shared as well.
Android updates oom_score_adj whenever a tasks changes its role
(background/foreground/...) or binds to/unbinds from a service, making
it more/less important. Such operation can happen frequently.
We noticed that updates to oom_score_adj became more expensive and after
further investigation found out that the patch mentioned in "Fixes"
introduced a regression. Using Pixel 4 with a typical Android workload,
write time to oom_score_adj increased from ~3.57us to ~362us. Moreover
this regression linearly depends on the number of multi-threaded
processes running on the system.
Mark the mm with a new MMF_MULTIPROCESS flag bit when task is created with
(CLONE_VM && !CLONE_THREAD && !CLONE_VFORK). Change __set_oom_adj to use
MMF_MULTIPROCESS instead of mm_users to decide whether oom_score_adj
update should be synchronized between multiple processes. To prevent
races between clone() and __set_oom_adj(), when oom_score_adj of the
process being cloned might be modified from userspace, we use
oom_adj_mutex. Its scope is changed to global. The combination of
(CLONE_VM && !CLONE_THREAD) is rarely used except for the case of vfork().
To prevent performance regressions of vfork(), we skip taking oom_adj_mutex
and setting MMF_MULTIPROCESS when CLONE_VFORK is specified. Clearing the
MMF_MULTIPROCESS flag (when the last process sharing the mm exits) is left
out of this patch to keep it simple and because it is believed that this
threading model is rare. Should there ever be a need for optimizing that
case as well, it can be done by hooking into the exit path, likely
following the mm_update_next_owner pattern.
With the combination of (CLONE_VM && !CLONE_THREAD && !CLONE_VFORK) being
quite rare, the regression is gone after the change is applied.

Fixes: 44a70adec9 ("mm, oom_adj: make sure processes sharing mm have same view of oom_score_adj")
Reported-by: Tim Murray <timmurray@google.com>
Debugged-by: Minchan Kim <minchan@kernel.org>
Suggested-by: Michal Hocko <mhocko@kernel.org>
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Bug: 168521639
Link: https://lore.kernel.org/linux-fsdevel/20200902012558.2335613-1-surenb@google.com/
[isaacm: upstream bound, no cherry-pick info because patch is in mm tree]
Change-Id: I20352a77815fbc358c36e686bb1503fdeea658ed
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Git-commit: 40f057fb2d
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-09-16 09:56:55 -07:00
Shivendra Kakrania
8b21220a05 soc: mmrm: Adding domain info to identify the clients accurately
Along with client id, client domain info is also required
by mmrm driver to identify & register clients accurately.

Change-Id: I516749c363474604b4b24f967c1068f8d48d90a7
Signed-off-by: Shivendra Kakrania <shiven@codeaurora.org>
2020-09-16 09:41:22 -07:00
Satish Kodishala
cf3998d8d7 Bluetooth: Add support for Moselle chip
Overwrite EA provided in device tree with
Moselle's EA if Moselle is attached.

CRs-Fixed: 2778447
Change-Id: I73b01c5f4eb62bbe7d726695737c4e30b8e97cbf
Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>
2020-09-16 07:50:36 -07:00
Satish Kodishala
43864b4f64 Bluetooth:Change EA for HST and HSP before getting LA
-Change EA for HSP before getting LA based
 on the soc type queried from BT power driver.

-By default, HSP's Slimbus EA is added in DTSI file.
 Update HST's Slimbus slave EA address based on HST chip ver.

CRs-Fixed: 2667021
Change-Id: I49e06e2e43025797e6110bf55304c7b3f0616c8e
Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>
2020-09-16 06:53:03 -07:00