Commit graph

892,914 commits

Author SHA1 Message Date
Prakash Gupta
ed8be7b855 proc/meminfo: update offline region in Memtotal
When memory block is logically offlined, it is still part of System RAM but
is inactive, and can be made active or Onlined anytime.
Take totalram snapshot to include offlined memory in Memtotal.
This method avoids taking device_hotplug lock to meminfo.

Fixes: dc00b6d99a ("proc/meminfo: include offlined region for mem total")
Change-Id: I2b69444e6f066e1c1928278707616840308b00d0
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
2020-12-03 02:42:01 -08:00
Prakash Gupta
88d7aafe84 iommu: arm-smmu: defer tlbi invalidation
With QCOM quirks, the invalidations are agrregated to reduce map/unmap
time.  In absenence of CONFIG_QCOM_IOMMU_TLBI_QUIRKS enabled, the map/unmap
latency impact time critical usecases. Hence defer TLB invalidation when
CONFIG_QCOM_IOMMU_TLBI_QUIRKS is not enabled.

Change-Id: I866b4211901f71fe054bbd9f465b4df5c7dac82c
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
2020-12-03 02:29:26 -08:00
Deepak Kumar Singh
c3c08ac7a1 soc: qcom: glink_probe: use lock while sending ssr notification
In ssr handling of remote subsystem down, all rpmsg devices are removed
for that edge. If at the same time ssr down is received for other remote
subsystem, it may try to notify already down remote and end up using
invalid rpmsg device which causes use after free.

Store device state in ssr context and update this with holding a lock.
SSR notification function should also use the same lock and perform
check for validity of rpmsg device.

CRs-Fixed: 2580433
Change-Id: I339e228a527f7b6a737944d8e9e53caa31992914
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2020-12-03 13:49:27 +05:30
Deepak Kumar Singh
95d601bb7f soc: qcom: glink_probe: Use ref count for holding ssr context
During ssr rpmsg ssr device will unregister, which can result
in use of stale device pointer in ssr callback function.

Now incrementing refcount inside ssr callback function to
prevent release of rpmsg device.

CRs-Fixed: 2551255
Change-Id: If3fc57c4635378dc6fdcb7df120c83dca0e83758
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2020-12-03 13:49:09 +05:30
Ravikanth Tuniki
6b33e5f704 input: touchscreen: nt36xxx: Fix Propagation
This change propagates the missing fixes in novatek tcm touch
driver from msm-4.19 to msm-5.4.

Change-Id: Ie404c8412f7efa847b8e14965bcaf45568225502
Signed-off-by: Ravikanth Tuniki <rtunik@codeaurora.org>
2020-12-03 13:26:01 +05:30
Armaan Siddiqui
d3634cfade msm: ipa3: add support on sockv5 info
Add the header file changes for socksv5
info passed from other modules.

Change-Id: I24c0bbb3344fd97d0468a78b9d5fa95f05fbe198
Signed-off-by: Armaan Siddiqui <asiddiqu@codeaurora.org>
2020-12-03 12:07:09 +05:30
chenx
46689bcfc2 input: touchscreen: nt36xxx: add new touch driver
Add this new touch driver code here.

Change-Id: Ibc8c382cb67246ccc0fad570648bf78963cc7f51
Signed-off-by: chenx <luxh0702@thundersoft.com>
Git-commit: 7af455f1e6f65871f9c722dff4c1c9de6989500b
Git-repo: https://source.codeaurora.org/external/thundersoft/ihvjointlab/sensor-driver/commit/?h=Novatek_nt36xxx
Signed-off-by: Fei Mao <feim1@codeaurora.org>
2020-12-02 21:37:55 -08:00
Vamsi krishna Gattupalli
7b145c3ad4 msm: ADSPRPC: Handle third party applications
Reject the session when third party applications
try to spawn signed PD and  channel configured as secure.

Change-Id: Iab18ad364985372f8007b6dda933ef4e5adf0213
Acked-by: Nishant Chaubey <chaubey@qti.qualcomm.com>
Signed-off-by: Vamsi krishna Gattupalli <vgattupa@codeaurora.org>
2020-12-03 11:06:29 +05:30
Jishnu Prakash
348ea390bc iio: adc: Add support to read ADC5 current channels
Add scaling function required to read PMIC5 current ADC channels
so that channel 0xA5 (ADC5_PARALLEL_ISENSE) can use that.

Change-Id: I55ede0c736c6f350df8ac92ea8661db4129da13c
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-12-03 10:49:08 +05:30
Blagovest Kolenichev
e0d735105c gki: Set GKI_VERSION to 4271ad6
Change-Id: I8af18243659aaf7f29cc07f9106be2e25f235505
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-12-02 20:55:23 -08:00
Jishnu Prakash
5140c1e124 dt-bindings: iio: Add ADC support for PM7325 and PM7325B
Add virtual channel definitions for PM7325 and PM7325B for
use by their ADC clients.

Change-Id: I75ddc15f6866a56678f344f6d18062857c4fc550
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-12-03 10:21:33 +05:30
Jishnu Prakash
5bf1ef9f82 pinctrl: qcom: spmi-gpio: add support for PM7325 and PM7325B PMIC variants
Add support for qcom,pm7325-gpio and qcom,pm7352b-gpio variants.

Change-Id: I667af9a375d2bcc4a3576001b76d0366f45389ce
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-12-03 10:14:01 +05:30
Akash Asthana
2b1ef2cd9e uapi: Add QTI specific header for UART
Create QTI specific header for UART IOCTLs. Bluetooth uses the IOCTL
to control UART clock/power states.

Choose higher numerical value for UART IOCTL macros to avoid any
conflict with upstream addition for new IOCTL.

Change-Id: I6dbabe30f5a12b5bc21cfe8fb16cdccfcc770484
Signed-off-by: Akash Asthana <akashast@codeaurora.org>
2020-12-03 09:40:24 +05:30
qctecmdr
e14ef833ac Merge "guestvm_loader: isolate cpus when VM is starting" 2020-12-02 16:21:18 -08:00
qctecmdr
1ddf016918 Merge "icnss: Update FW_INIT_DONE QMI indication with hang event params" 2020-12-02 16:21:17 -08:00
qctecmdr
3068283a7a Merge "clk: qcom: Add support for NPU QDSS clocks" 2020-12-02 16:21:17 -08:00
qctecmdr
16577402f7 Merge "coresight: Doesn't save and restore ETMs state while CPU hot-plug" 2020-12-02 16:21:17 -08:00
Paras Singh Jain
d30948cecd netfilter: Changes to handle segmentation in SIP ALG
Linux Kernel SIP ALG did not handle Segmented TCP Packets
because of which SIP communication could not be established
for some clients. This change fixes that issue.

Also,This change handle porting of below changes
c39f2db28d61ec4 ("Additional fixes for SIP Segmentation Support")
07c07c942ec37f0 ("Changes to handle MT call issue in SIP ALG")
18f40547250d8b6 ("Enable/Disable SIP Segmentation Support").

Change-Id: I8c77322f69cf4d9ad4c7b4971da924ffd585dea0
Acked-by: Vinisha Varre <vvarre@qti.qualcomm.com>
Signed-off-by: Paras Singh Jain <parassin@codeaurora.org>
2020-12-02 13:08:19 -08:00
Melody Olvera
a1ee505096 defconfig: Enable EUD on sdxlemur
Added defconfig for EUD on sdxlemur.

Change-Id: I7ea1c964f9442b7a093e7f57ed6bc7e98973a0e2
Signed-off-by: Melody Olvera <molvera@codeaurora.org>
2020-12-02 13:07:15 -08:00
qctecmdr
858cd7768a Merge "msm: kgsl: Poll a6x crashdumper register memory for status" 2020-12-02 12:33:05 -08:00
qctecmdr
716324595c Merge "icnss2: Add support for host triggered recovery" 2020-12-02 12:33:04 -08:00
qctecmdr
03ee1e4f8a Merge "icnss2: Avoid race between soc wake release threads" 2020-12-02 12:33:04 -08:00
qctecmdr
a9178e5c9b Merge "spi: spi-msm-geni: Bypass hw_version read for SVM" 2020-12-02 12:33:04 -08:00
qctecmdr
9c36b67360 Merge "soc: qcom: Initialize the irq count work item" 2020-12-02 12:33:03 -08:00
Jeya R
5d7778a02a msm: adsprpc: Change perf module design
Change perf module design such that perf counters from
DSP and kernel are returned as part of header. Add
trace event for kernel counters.

Change-Id: I9a1bec0068898995f79b033fe6d4517ef5bac50b
Acked-by: Deepika Singh <dsi@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
Signed-off-by: Vamsi krishna Gattupalli <vgattupa@codeaurora.org>
2020-12-02 23:27:46 +05:30
qctecmdr
e72d8c95da Merge "defconfig: sdxlemur: add dependence defconfig" 2020-12-02 08:44:35 -08:00
qctecmdr
4420d6ffed Merge "cnss2: pci: Trigger link down recovery if link fails to enter L0" 2020-12-02 08:44:35 -08:00
qctecmdr
ac8cdc9962 Merge "msm: pcie: support configurable number of PARF testbus selectors" 2020-12-02 08:44:34 -08:00
qctecmdr
1db02978e4 Merge "msm: dp: fix no audio over DP on device bootup" 2020-12-02 08:44:34 -08:00
Sami Tolvanen
559c23e691 ANDROID: vmlinux.lds.h: merge compound literal sections
After LLVM rG9e33c096476a ("[ELF] Keep orphan section names
(.rodata.foo .text.foo) unchanged if !hasSectionsCommand"), LLD splits
compound literals to separate sections with -fdata-sections, which
it always enables with LTO. Merge these sections to allow LLVM to be
upgraded.

Bug: 174047799
Change-Id: I858c5fcc48283d5528c1d3e2b2d7a3c72f9e03d6
Link: https://github.com/ClangBuiltLinux/linux/issues/958
Suggested-by: Danny Lin <danny@kdrag0n.dev>
Suggested-by: Fangrui Song <maskray@google.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
2020-12-02 16:39:51 +00:00
Vinayak Menon
b530583498 drivers: staging: ion: mark secure page private
check_valid_vmid does not mark page private when
releasing the page to secure pool. Do it.

Change-Id: I258561421c520a7b8b50dbf9421bc0aea459dfee
Fixes: cae595f476 ("ion: Check for valid vmids for msm system heap")
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2020-12-02 17:55:00 +05:30
qctecmdr
e10adfe482 Merge "regulator: qpnp-amoled: add support to disable pulse skipping" 2020-12-02 03:04:39 -08:00
qctecmdr
27be1572fd Merge "defconfig: Add support for compiling sdxnightjar target" 2020-12-02 03:04:39 -08:00
qctecmdr
9936d8bd66 Merge "cfg80211: export regulatory_hint_user() API" 2020-12-02 03:04:39 -08:00
qctecmdr
7f38220137 Merge "input: qcom-hv-haptics: add mutex lock for FIFO play" 2020-12-02 03:04:38 -08:00
qctecmdr
a9bfd29936 Merge "arm64: defconfig: Enable power drivers for gen3auto" 2020-12-02 03:04:38 -08:00
qctecmdr
a9ad07647e Merge "HID: qvr: wake up after acknowledgment from viewer" 2020-12-02 03:04:38 -08:00
Jeya R
1a2ea5094c msm: ADSPRPC: Handle Null pointer De-reference
Retrieved tgid from current process instead of
mapping  for naming the minidump region.

Change-Id: I598606577c63794f495c9ca92adc951c088046be
Acked-by: Krishnaiah Tadakamalla <ktadakam@qti.qualcomm.com>
Acked-by: Gururaj Chalgeri <gchalger@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
2020-12-02 10:29:04 +05:30
Murali Nalajala
56a1e8a1fe guestvm_loader: isolate cpus when VM is starting
Do initial CPU reservation before starting VM, to
avoid any resource contention, while booting guest
VM. Remove the reservation after a configured timeout,
which defaults to 8 seconds.

Change-Id: Id49b07edd3e558dee074eafb729423ad8f8ff98d
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2020-12-02 09:52:41 +05:30
Ajay Agarwal
3737f15cc7 usb: dwc3-msm: Avoid access of gsi_reg for non-GSI targets
Some targets do not have GSI feature. For such targets, gsi_reg
array does not get allocated. DWC3_CONTROLLER_NOTIFY_CLEAR_DB
event from gadget driver will access this unallocated memory.
Fix this by putting a check for gsi_reg.

Change-Id: I9903c0c6533abf3d6e689a40ea84ecbc066e10d8
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2020-12-01 20:22:26 -08:00
Michael Adisumarta
33962cd2e1 msm: ipa: Support hardware accelerated DIAG over qdss with ipa_fmwk
Add support to accelarate QDSS diag traffic over IPA to the PCIe
host with ipa fmwk support.

Change-Id: I64a8c493e8b6ef3fc525a3edcfd57e1cd11ccb6c
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-12-01 17:13:20 -08:00
Pratham Pratap
026280fcfa usb: phy: snps: Return error if driver fails to enable power
Currently driver is not returning any error from the error
handling path if driver fails to enable power for PHY.
This patch adds a check and returns error if the driver
actually fails to set_voltage or fails to enable a particular
regulator.

Change-Id: I5427690602b6152151adee71c6388ce836ab90c6
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2020-12-01 11:32:20 -08:00
Narendra Muppalla
16d99ebeaf ANDROID: ABI: Update allowed list for QCOM
Leaf changes summary: 0 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 0 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

Bug: 174461333
Change-Id: If0033c24aca5a9cfb755a0f30ee1ca54815f516d
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
2020-12-01 10:59:17 -08:00
Jack Pham
a109977adf usb: gadget: composite: Allow vbus_draw() to be called with 0mA
Similar to commit 9ffbd89c4a ("USB: gadget: composite: Allow
bMaxPower=0 if self-powered"), c->MaxPower may be allowed to be 0
when the gadget's configuration indicates it is self-powered. Thus
allow 0 to be passed directly to usb_gadget_vbus_draw() instead of
defaulting to CONFIG_USB_GADGET_VBUS_DRAW which is non-zero.

Change-Id: I4bf677a31a449c7763e2decad4860909f359dcb7
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-12-01 09:33:43 -08:00
Hareesh Gundu
1817bbf51b msm: kgsl: Poll a6x crashdumper register memory for status
Use a6x crashdumper register memory end location to know
the crashdumper status completion. This will avoid AHB
traffic while crashdumper was active in snapshot dumping
and fixes the slave timeout issue.

Change-Id: Ic24e75557297c6a1a3f2ad7893f4d8d308f9943c
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2020-12-01 08:58:50 -08:00
qctecmdr
d1d92738ec Merge "Merge android11-5.4.61+ (3720133) into msm-5.4" 2020-12-01 02:17:29 -08:00
Hemant Kumar
d948568a1f usb: phy: snps: Ensure VDDA regulator is put in HPM
To properly ensure that the vdd regulator is put in the correct
operating mode, it needs to have a call to regulator_set_load()
prior to being enabled. This is crucial for platforms where the
HS PHY is the only consumer of the regulator as it could be
inadvertently left in LPM mode and cause the PHY to not function
properly.

Change-Id: I87815c60f044d854ecc75ac6039fd80c2d3197aa
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-11-30 23:51:08 -08:00
Maulik Shah
ef6d5a474e arm64: defconfig: Enable power drivers for gen3auto
Enable LPM and SoC sleep stats drivers for gen3auto.

Change-Id: I7dd08d1044054d5b330d149aa1f26f13d9d7b9bf
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2020-12-01 10:53:50 +05:30
Fenglin Wu
b8790b3e44 input: qcom-hv-haptics: add mutex lock for FIFO play
When stop command comes during FIFO refill, it would free custom_effect
FIFO sample memory and set the pointer to NULL, and this would cause
the NULL pointer dereference during FIFO refill. To fix this, add a
mutex lock between FIFO stop and FIFO refill sequence to avoid a race.

Change-Id: I8792c2183f06e84fca3a7c4dddfed667b25f2528
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-12-01 11:53:51 +08:00
Naina Mehta
4bae620443 drivers: llcc: Add LLCC driver for Yupik
Add Last Level Cache Controller(LLCC) driver for
Yupik platform.

Change-Id: I2ce5e70c2d112f9ff3a7f3c68b54a809e9f7d00d
Signed-off-by: Naina Mehta <nainmeht@codeaurora.org>
2020-11-30 18:54:06 -08:00