Commit graph

821091 commits

Author SHA1 Message Date
Kiran Gunda
252d6c84be uapi: Add UAPI headers for slatecom_interface driver
Add slatecom_interface header file in gen_headers to make it
accessible from userspace modules who uses Android.bp files
for compilation.

Change-Id: Ie298ec28983c16999d941ee8667e2dd7b5c3db22
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2021-09-08 04:43:44 -07:00
qctecmdr
dd304ccc10 Merge "ANDROID: xt_qtaguid: fix UAF race" 2021-09-08 00:31:01 -07:00
Satish Kodishala
9a96de3c3e Ignore -106 error while opening channel
Ignore -106 error when channel opened
again without closing.

CRs-Fixed: 2836671
Change-Id: Ib27179031e6bbdc20511132efd6c4578d1d0a911
Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>
2021-09-06 11:16:08 -07:00
qctecmdr
8c79c6778a Merge "arm64: defconfig: Set qrtr wakeup for lito" 2021-09-06 02:04:02 -07:00
qctecmdr
93d96157e9 Merge "byte-cntr: Don't write csr register when byte-cntr is disabled" 2021-09-04 17:09:40 -07:00
Mao Jinlong
81d63049e6 byte-cntr: Don't write csr register when byte-cntr is disabled
It is possible that byte-cntr release happens after byte-cntr is disabled.
Don't write csr register when byte-cntr is disabled to avoid the register
access issue.

Change-Id: Ic818107e1bcbe31e1a55cdc8c0f6ff89ff70564f
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
2021-09-03 23:35:11 +08:00
Sarannya S
3acc60ff8f arm64: defconfig: Set qrtr wakeup for lito
Set the wakeup timeout for qrtr to 500 ms for lito. This change
will help ensure the TUI client thread gets a chance to run before
the system is suspended again.

Change-Id: I8c8831995bf58fc39a3e8c107d0fd761745bbfed
Signed-off-by: Sarannya S <sarannya@codeaurora.org>
2021-09-03 13:56:42 +05:30
Chris Lew
898151cd02 net: qrtr: Make wakeup timeout configurable
The qrtr driver can guarantee that the packet gets queued to the socket
but cannot guarantee the client process will get time to run if auto
sleep is enabled. This config will help mitigate missed packets on
systems where auto sleep is too aggressive.

Use the pm_wakeup_ws_event() api so a hard wakeup can be specified.
This will ensure a resume occurs if the data coming in happens while
the device is going into suspend.

Change-Id: Ic596e06e585b3479a6faa1d0210c016fc9138c6e
Signed-off-by: Chris Lew <clew@codeaurora.org>
Signed-off-by: Arun Prakash <app@codeaurora.org>
2021-09-03 13:02:44 +05:30
qctecmdr
459d6fa3a5 Merge "mhi: core: Avoid race condition mhi channel prepare and M0 event" 2021-09-02 08:54:09 -07:00
Vivek Pernamitta
020b270ba1 mhi: core: Avoid race condition mhi channel prepare and M0 event
There is one race condition where mhi_prepare_channel is called
in which read pointer and write pointer is set to base address
and in parallel there could be an MHI M0 transaction which
checks any pending event rings on all channels (tre_ring)
with RP != WP and rings channel DB which causes Null pointer
access. Check for MHI channel is enabled before ringing channel
doorbell. Reset mhi channel chan_ctxt, tre_ring and buf_ring
wp and rp to NULL in mhi_deinit_chan_ctxt.

Change-Id: If30908fc7fcc26f6987bd0da886bb75468a29b9e
Signed-off-by: Vivek Pernamitta <vpernami@codeaurora.org>
2021-09-02 18:07:28 +05:30
qctecmdr
0008d16bc4 Merge "msm: ipa3: Fix to handle zero length frag skb packet" 2021-09-02 04:52:45 -07:00
Ashok Vuyyuru
1f9481a658 msm: ipa3: Fix to handle zero length frag skb packet
Due to zero length skb packet IPA HW going to stall state.
Adding changes to avoid sending these zero length SKB frag
packets to HW.

Change-Id: I4dae51bf767588095bc1fcd9e10196e913299227
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-09-02 10:47:41 +05:30
qctecmdr
8bfcb5a6d4 Merge "cnss_utils: Update the copyright years of file to 2017, 2019-2021" 2021-09-01 02:00:11 -07:00
Mohammed Siddiq
94e62e6085 cnss_utils: Update the copyright years of file to 2017, 2019-2021
Update the copyright years of file to 2017, 2019-2021.

Change-Id: Ic5c6ad17f546b981c131fc6bd0eb573859a104b5
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2021-09-01 12:21:59 +05:30
qctecmdr
5000f94593 Merge "clk: qcom: debugcc: Remove the gcc_camss_camnoc clocks" 2021-08-31 22:41:00 -07:00
qctecmdr
5e1dd0fa05 Merge "FM: mutex changes modified" 2021-08-31 15:48:22 -07:00
Prateek Raj Singh
a86fcb8a51 FM: mutex changes modified
Removed unrequired mutexes, and conditions.

Change-Id: I1d8b9f16f066aea39ffbeee994c8f573972787f5
Signed-off-by: Prateek Raj Singh <pratsing@codeaurora.org>
2021-08-31 08:23:21 -07:00
qctecmdr
1ea01c7be2 Merge "Revert "ANDROID: net: ipv4: sysfs_net_ipv4: Add sysfs-based knobs for controlling TCP window size"" 2021-08-31 07:30:25 -07:00
qctecmdr
9e50c517ba Merge "coresight: byte-cnter: limit error log output" 2021-08-31 04:02:21 -07:00
qctecmdr
13a10de50e Merge "coresight: byte-cnter: Add ETR status check in bypass notifier" 2021-08-30 23:46:48 -07:00
qctecmdr
d38ae1ea7c Merge "serial: msm_geni_serial: Enable SW flow on in runtime suspend" 2021-08-30 04:30:30 -07:00
qctecmdr
83bfad0dd6 Merge "coresight: byte-cntr: Add ETR status check in bypass notifier" 2021-08-30 04:30:29 -07:00
Maciej Żenczykowski
994c186fe0 Revert "ANDROID: net: ipv4: sysfs_net_ipv4: Add sysfs-based knobs for controlling TCP window size"
This reverts commit 8f414ea43f.

Test: builds, ran kernel net tests
Bug: 180068784
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Icd52ba17c8c26ab33df6f32b198df70415320d2d
Git-Commit: 46a6031c7e7583f9ffd71543cfc726cd6df29a01
Git-repo: http://source.codeaurora.org/quic/la/kernel/common
Signed-off-by: Kaustubh Pandey <kapandey@codeaurora.org>
2021-08-30 02:23:36 -07:00
Maciej Żenczykowski
bc7325313e Revert "RFC: ANDROID: net: ipv4: sysfs_net_ipv4: Fix TCP window size controlling knobs"
This reverts commit c6bc8ac9c5.

But there are revert conflicts in:
  net/ipv4/tcp_input.c
  net/ipv4/tcp_output.c

which effectively mean those files are not reverted (the relevant portions
of code area already missing).

Test: see follow up commit
Bug: 180068784
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I70bc587e7bae4090dfd101f2427d7cc4fb4435af
Git-Commit: b72347bdd09c65269646ce5eaefd0bb579552a44
Git-repo: http://source.codeaurora.org/quic/la/kernel/common
Signed-off-by: Kaustubh Pandey <kapandey@codeaurora.org>
2021-08-30 02:22:44 -07:00
Will McVicker
5efc888dcb ANDROID: xt_qtaguid: fix UAF race
Make sure to hold the sock_tag_list_lock while accessing the tag to
avoid a race between getting the tag and free'ing the tag.

Bug: 184018316
Fixes: c7ca0ac69702 ("ANDROID: netfilter: xt_qtaguid: add qtaguid matching module")
Signed-off-by: Will McVicker <willmcvicker@google.com>
Change-Id: Ia44dfcc1693bc3de1d767e024d09c11f4a8b02f9
Git-commit: 2398e650c58a6f4877dafce649188290f6e3b4f5
Git-repo: https://android.googlesource.com/kernel/msm
Signed-off-by: PavanKumar S.R. <pavasr@codeaurora.org>
2021-08-30 13:04:56 +05:30
Tao Zhang
7cdbbb1ff8 coresight: byte-cntr: Add ETR status check in bypass notifier
Add ETR status check while receiving USB_QDSS_CONNECT event.
Otherwise, there will cause crash due to NULL pointer issue.
Since ETR buffer will be released if ETR is disabled.

Change-Id: I358d25477c938844df5bff5c29ddbee307b770e3
Signed-off-by: Tao Zhang <taozha@codeaurora.org>
2021-08-30 13:33:06 +08:00
Madhuri Medasani
563df73427 clk: qcom: debugcc: Remove the gcc_camss_camnoc clocks
Remove the gcc_camss_camnoc clocks from debugcc
which are not registered in GCC to avoid the crash
because of parent index in KHAJE.

Change-Id: Ia8db40e55c3f7d96abb47bb810eb4f13c20e65f2
Signed-off-by: Madhuri Medasani <mmedasan@codeaurora.org>
2021-08-30 10:04:37 +05:30
Pratham Pratap
73f4406f74 usb: f_fs: Avoid invalid pointer access in ffs_fs_get_tree
Consider a case where ffs_data_new is getting called from
ffs_fs_get_tree and ffs_data_new returns error pointer since
the function (e.g. adb) is already mounted. The driver is only
checking for the NULL return value for ffs but in this case it
will not be NULL, which will fail the check and driver will go
ahead accessing invalid pointer which can lead to inconsistencies.

Fix this by having NULL as well as error pointer check for ffs.

Change-Id: Idad5a0b91148325258ea3f545d4da71644c7fc53
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2021-08-28 10:58:13 -07:00
Yatish Kumar Singh
5f5b4d05fe serial: msm_geni_serial: Enable SW flow on in runtime suspend
Stop_rx is bailing out in the runtime suspend path because of
parallel data from SOC and there is no SW  FLOW ON from UART,
causing SOC unable to send RX data to host.

Enabled SW flow on if the stop_rx is bailing out during
runtime suspend.

Change-Id: I0dd52fafe99466e6177a60a108132f25a5be570b
Signed-off-by: Yatish Kumar Singh <yatishku@codeaurora.org>
2021-08-27 21:39:12 +05:30
qctecmdr
71add66750 Merge "defconfig: msm: Enable RPM SMD cooling device driver for KHAJE" 2021-08-26 23:39:22 -07:00
qctecmdr
561d9e90c7 Merge "irqchip: mpm: Add mpm mapping for Khaje" 2021-08-26 15:09:52 -07:00
Gopala Krishna Nuthaki
7ace159680 defconfig: msm: Enable RPM SMD cooling device driver for KHAJE
Enable RPM SMD cooling device driver for KHAJE. It monitors
device temperature and request different temperature band levels
to RPM hardware.

Change-Id: Ia0c4deed12ee94f8fa0a6e98950e0654576740e1
Signed-off-by: Gopala Krishna Nuthaki <gnuthaki@codeaurora.org>
2021-08-26 09:47:10 -07:00
qctecmdr
2e616bbbc3 Merge "usb: pd: Clear vdm_tx if SVDM message is sent on SOP'" 2021-08-26 07:37:13 -07:00
qctecmdr
d8ffa18efa Merge "cnss2: Assert on FW memory allocation failure" 2021-08-26 03:37:50 -07:00
Yuanfang Zhang
36ea672012 coresight: byte-cnter: limit error log output
Limit error log output in usb_bypass_notify().

Change-Id: I74e7635d10bc273cd378a62ca90874e73c9c856b
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
2021-08-26 14:53:02 +08:00
Yuanfang Zhang
922ca3d4c9 coresight: byte-cnter: Add ETR status check in bypass notifier
when usb_bypass_notify is called by ush_qdss_close(), no need to
response to USB_QDSS_DISCONNECT event. so add etr status check to
avoid exception.

Change-Id: I4ab5d7f4ba054b0d1ecc7026b5662ddc1c8b5ca1
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
2021-08-26 14:14:07 +08:00
qctecmdr
0aa2905eaa Merge "f2fs: change to use rwsem for cp_mutex" 2021-08-25 22:58:06 -07:00
Raghavendra Kakarla
62742bbbb0 irqchip: mpm: Add mpm mapping for Khaje
Currently both Bengal and Khaje use the same MPM pins mapping
configuration as they use the same compatible string. USB PHY
has a different GIC IRQ on Khaje, so different MPM configuration
is required.

Change-Id: I680bb0529145dfe2166f5b26d934da34e5c52f98
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2021-08-25 20:04:53 +05:30
qctecmdr
f1dda4158d Merge "dma-mapping-fast: Fix sg-list length calculation in fast_smmu_unmap_sg()" 2021-08-25 07:02:08 -07:00
Sahitya Tummala
a2e201948f f2fs: change to use rwsem for cp_mutex
Use rwsem to ensure serialization of the callers and to avoid
starvation of high priority tasks, when the system is under
heavy IO workload.

Change-Id: Ifac519c3de127f79d8613ee742a68f7fc0377e36
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2021-08-25 15:43:19 +05:30
Naman Padhiar
19ccf5a52e cnss2: Assert on FW memory allocation failure
Add code to assert if FW requested memory allocation fails.
This helps us to collect logs at the time of failure.

Change-Id: I8d3ff82eee545510318e0a9a2a128a71dc8a9fb3
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2021-08-25 15:07:09 +05:30
qctecmdr
713f0247f0 Merge "msm: kgsl: Keep the context alive until its fences signal" 2021-08-24 11:05:49 -07:00
Lynus Vaz
db3cf7f3f7 msm: kgsl: Keep the context alive until its fences signal
The context is currently kept alive until all its fences are
released. This means that we do not destroy a context until all
the fence fds associated with it are closed by userspace, which may
be a long time. Instead, remove the timeline's refcount on its
context when it is detached. This permits the context to be freed
once all its fences signal.

Change-Id: Ifc5dd55980358ddbb4d3f6220d8b5d9f725aed1b
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
Signed-off-by: Pankaj Gupta <gpankaj@codeaurora.org>
2021-08-24 18:42:58 +05:30
qctecmdr
cbd97cb475 Merge "cnss_utils: Increase unsafe channel max num for 6G" 2021-08-23 07:48:19 -07:00
Jianmin Zhu
d7f6493b91 cnss_utils: Increase unsafe channel max num for 6G
2G+5G+6G, total channel num is 157 until now, increase unsafe channel max
num to avoid out of buffer.

Change-Id: I1e433c0bd88290bb5493b2c4b0bda86e17b04a01
CRs-Fixed: 2752689
Signed-off-by: Jianmin Zhu <jianminz@codeaurora.org>
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2021-08-23 16:29:36 +05:30
qctecmdr
ec522445a8 Merge "driver: Fix compilation error with new sdclang 12" 2021-08-22 23:26:55 -07:00
qctecmdr
7c5403b4f9 Merge "clk: qcom: gpucc: Update voltage fmax table for GPU clock for KHAJE" 2021-08-22 16:56:40 -07:00
qctecmdr
7b77d26f38 Merge "defconfig: Enable CONFIG_ION_SYSTEM_HEAP for bengal" 2021-08-20 04:35:52 -07:00
Madhuri Medasani
6bcbcedd03 clk: qcom: gpucc: Update voltage fmax table for GPU clock for KHAJE
The following frequencies (320, 785 and 1025MHz) require
fmax table update for not crossing voltage bound.

Change-Id: I4c26c39ce1e7c655358a7ef14ab2aeaad0c57af5
Signed-off-by: Madhuri Medasani <mmedasan@codeaurora.org>
2021-08-20 15:43:12 +05:30
qctecmdr
7cff1369a8 Merge "usb: phy: qusb: Add wrapper function for phy reset" 2021-08-20 01:01:57 -07:00