Commit graph

855748 commits

Author SHA1 Message Date
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
Sumukh Hallymysore Ravindra
cfe53c62b3 msm: synx: acquire ref of synx handle in each function
The change ensures appropriate reference is held in
each function before accessing valid synx handle.

This avoids release function destroying the synx
handle while any other process is working with the
same handle, leading to use-after-free issues.

Change-Id: I5b828c5ab6f7fcdd5b5a66e04d9c7c827de5d15f
Signed-off-by: Sumukh Hallymysore Ravindra <shallymy@codeaurora.org>
2021-09-02 16:55:38 +05:30
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
Zhenlin Lian
7e2a87eb1c Revert "qseecom: Add shmbrdige to allocate memory"
This reverts commit b6b130b0cf.

Change-Id: I1ab38440b496657974a20ed7d98fb3e1a99842a1
Signed-off-by: Zhenlin Lian <lianzhenlin@codeaurora.org>
2021-08-31 09:22:25 +05:30
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
Jebaitedneko
6b414e784e dts: don't add qcom subdir
we're using vendor/qcom

Signed-off-by: Jebaitedneko <Jebaitedneko@gmail.com>
2021-08-30 14:13:06 +05:30
Jebaitedneko
d06c973953 build.sh: ship compiled dtb.img and dtbo.img
Signed-off-by: Jebaitedneko <Jebaitedneko@gmail.com>
2021-08-30 14:13:06 +05:30
Jebaitedneko
379d474a43 arm64: generate dtb.img from dtbs
Signed-off-by: Jebaitedneko <Jebaitedneko@gmail.com>
2021-08-30 14:13:06 +05:30
Jebaitedneko
f6d5913eb1 dts: enable new tianma and xinli v2 panels
also fixup pwm configuration

Signed-off-by: Jebaitedneko <Jebaitedneko@gmail.com>
2021-08-30 14:13:06 +05:30
Jebaitedneko
af453d1720 dts: build only bengal-idp-overlay.dtbo and bengal.dtb
Signed-off-by: Jebaitedneko <Jebaitedneko@gmail.com>
2021-08-30 14:13:05 +05:30
Jebaitedneko
c19c6fa0d3 dts: align bengal.dtb sources to oem
Signed-off-by: Jebaitedneko <Jebaitedneko@gmail.com>
2021-08-30 14:13:05 +05:30
Jebaitedneko
80bc395a13 dts: align bengal-idp-overlay.dtbo sources to oem
Signed-off-by: Jebaitedneko <Jebaitedneko@gmail.com>
2021-08-30 14:13:01 +05:30
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
Gagan Malvi
4611b50c3a
drone: Try GH releases.
Signed-off-by: Gagan Malvi <malvigagan@gmail.com>
2021-08-28 07:11:42 +02: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
Linux Build Service Account
1a3118a350 Merge "defconfig: Enable CONFIG_ION_SYSTEM_HEAP for bengal" 2021-08-26 07:51:12 -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
Vijayanand Jitta
3a100ef531 defconfig: Enable CONFIG_ION_SYSTEM_HEAP for bengal
Enable CONFIG_ION_SYSTEM_HEAP for bengal which is required to
get ion pool stats for system heap.

Change-Id: Ia41490fdffe3c1a1cd0a8a56e718eff42c0bc646
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
2021-08-26 06:53:55 -07:00
Sahitya Tummala
0d5e57d733 f2fs: fix the periodic wakeups of discard thread
Fix the unnecessary periodic wakeups of discard thread that happens under
below two conditions -

1. When f2fs is heavily utilized over 80%, the current discard policy
sets the max sleep timeout of discard thread as 50ms
(DEF_MIN_DISCARD_ISSUE_TIME). But this is set even when there are
no pending discard commands to be issued.

2. In the issue_discard_thread() path when there are no pending discard
commands, it fails to reset the wait_ms to max timeout value.

Change-Id: Ic358ea425a1e152438eb3185e6b7932c7fd4930f
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Git-commit: c35b8d5e757e0fd0144890b7b536f7b756f3a648
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2021-08-26 06:52:50 -07:00
Gagan Malvi
5264660de5
msm: vidc: Disable debugfs not created logspam.
Signed-off-by: Gagan Malvi <malvigagan@gmail.com>
2021-08-26 15:09:06 +02:00
Sahitya Tummala
28153bdff9 f2fs: allow to change discard policy based on cached discard cmds
With the default DPOLICY_BG discard thread is ioaware, which prevents
the discard thread from issuing the discard commands. On low RAM setups,
it is observed that these discard commands in the cache are consuming
high memory. This patch aims to relax the memory pressure on the system
due to f2fs pending discard cmds by changing the policy to DPOLICY_FORCE
based on the nm_i->ram_thresh configured.

Change-Id: Icac4a6ad2885eb463d7e11bfc99486a4cb96533b
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Git-commit: d6d2b491a82e1e411a6766fbfb87c697d8701554
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2021-08-26 05:23:53 -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
Swaroop Belur Sudhanva
a823779f11 msm: synx: fix synx_release_core race condition
Fix resolves potential issue where code might lock one mutex and
release another mutex inadvertantly.

Change-Id: Ia693640e3de7001707f5f97461d33ae142a8e4d5
Signed-off-by: Swaroop Belur Sudhanva <ssudhanv@codeaurora.org>
2021-08-25 22:04:53 -07:00
Gagan Malvi
092b8d091f
kernel: Merge LA.UM.9.15.r1-02200-KAMORTA.0
Signed-off-by: Gagan Malvi <malvigagan@gmail.com>
2021-08-26 06:45:49 +02:00
Panchajanya1999
f510fb0be6
power/wakelock: Add a timeout to wakelocks globally
Few wakelocks tends to get stuck for no reason. Blocking them
isn't necessary and sometimes blocking them breaks basic
functionality.
Wakelocks like "tx_swr_ctrl" tends to get stuck if we keep earphones
connected and drops battery massively.

Test: Keep earphones plugged in and leave device for few hours
Expected result: No "tx_swr_ctrl" is being stuck.
Actual result: Patch is working as expected.

Change-Id: I5296990a84ab44cf6e449d6535b8b99408c415c8
Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live>
2021-08-26 05:56:34 +02: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
Gagan Malvi
6cab7584ca
drivers/staging/qca-wifi-host-cmn: Merge LA.UM.9.15.r1-03200-KAMORTA.0
Signed-off-by: Gagan Malvi <malvigagan@gmail.com>
2021-08-25 13:14:03 +02:00
Gagan Malvi
56446459cd
drivers/staging/fw-api: Merge LA.UM.9.15.r1-03200-KAMORTA.0
Signed-off-by: Gagan Malvi <malvigagan@gmail.com>
2021-08-25 13:13:53 +02:00