Commit graph

894,058 commits

Author SHA1 Message Date
qctecmdr
e39b3087c2 Merge "drivers: qcom: boot_stats: Update function signature" 2021-02-19 01:29:06 -08:00
qctecmdr
31e40c1439 Merge "drivers: qcom: socinfo: Add support for ADP hardware type" 2021-02-19 01:29:06 -08:00
qctecmdr
7c1dca2311 Merge "driver: soc: adsp vote: QMI driver to send ADSP vote" 2021-02-19 01:29:06 -08:00
qctecmdr
407c5c2763 Merge "msm: config: Enable adsprpc configuration" 2021-02-19 01:29:05 -08:00
qctecmdr
a3447330d7 Merge "defconfig: gen3auto: Set CONFIG_BLK_DEV_LOOP_MIN_COUNT to 16 for vts test" 2021-02-19 01:29:05 -08:00
qctecmdr
83857705fd Merge "usb: f_fs: Avoid use-after-free of epfile" 2021-02-19 01:29:05 -08:00
qctecmdr
c0c35a301d Merge "clk: qcom: gcc-yupik: Add support for PCIE clocks in YUPIK" 2021-02-19 01:29:04 -08:00
qctecmdr
84df7e4035 Merge "defconfig: gen3auto_debug: Add flags for suspend debug" 2021-02-18 03:01:54 -08:00
qctecmdr
277cc29f94 Merge "defconfig: steppeauto: Enable non GKI driver for SA6155" 2021-02-18 03:01:53 -08:00
qctecmdr
62c8c68914 Merge "defconfig: Add rtc and pwm drivers sdxnightjar" 2021-02-18 03:01:52 -08:00
qctecmdr
f4630de13f Merge "defconfig: Enable IOSS v2 for sdxlemur" 2021-02-18 03:01:52 -08:00
qctecmdr
1b39927680 Merge "defconfig: sdmsteppeauto_debug: Add flags for suspend debug" 2021-02-18 03:01:52 -08:00
Shreyas K K
5f4ebb2c89 drivers: qcom: boot_stats: Update function signature
Update init_bootkpi and boot_marker_enabled as inline
functions to avoid -Wunused-function compiler error.

Change-Id: I61098c8bcc941d21a2ff30905cd93d82af1cf1f4
Signed-off-by: Shreyas K K <shrekk@codeaurora.org>
2021-02-18 14:16:15 +05:30
Jeya R
ba8ca91c83 msm: config: Enable adsprpc configuration
Enable building of adsprpc driver along with
kernel image.

Change-Id: I34dd3098db1973d0a8e4e9a7bcb4dae507901de5
Signed-off-by: Jeya R <jeyr@codeaurora.org>
2021-02-18 11:57:01 +05:30
Vinay Sudra
51c81630df defconfig: gen3auto: Set CONFIG_BLK_DEV_LOOP_MIN_COUNT to 16 for vts test
Set CONFIG_BLK_DEV_LOOP_MIN_COUNT=16 that pre-create loop block
devices at init time for vts_kernel_loopconfig_test.

Change-Id: I136c0f620913d2ce8ddbb0ccbd8bc0b05f72a3ad
Signed-off-by: Vinay Sudra <vsudra@codeaurora.org>
2021-02-18 10:36:30 +05:30
Udipto Goswami
5acdbe597c usb: dwc3: gadget: Fix double add due to cleanup_cancelled_request
Commit 6a247993218c ("usb: dwc3: gadget: Properly handle failed
kick_transfer") introduces a piece of code where if gadget_ep_cmd
fails in kick_transfer, it calls stop_active_transfer for that ep
& move the request from started_list to cancelled_list. Finally
it checks for DWC3_EP_END_TRANSFER_PENDING flag, if not set then
moves ahead and calls dwc3_gadget_cleanup_cancelled_request as part
of which gadget giveback for the request is called. This will
ultimately mean ep_queue failure as ep_queue returns the status of
kick_transfer.

Now from the function driver perspective, when ep_queue fails
it tries to add the request back to the pool from which the request
was queued.

But,since we did a cleanup_cancelled_request the completion handler
of the function driver is also called which tries to add the same
request back to the pool, resulting in a double add scenario.

Fix this by returning 0 from ep_queue rather then returning the
status of kick_transfer. For a function driver it would mean
ep_queue success and will not add the request back to read pool
and since we already are giving back the request as part of
cleanup_cancelled_requests, the request will be added back to
the pool and avoid the double add scenario.

Change-Id: I82bc21c34a795820998483c4a88e1891495a6906
Signed-off-by: Udipto Goswami <ugoswami@codeaurora.org>
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2021-02-17 21:05:24 -08:00
Pratham Pratap
1c3b63b8d8 usb: f_fs: Avoid use-after-free of epfile
Consider a case where ffs_func_eps_disable is called from
ffs_func_disable as part of composition switch and at the
same time ffs_epfile_release get called from userspace.

ffs_epfile_release will free up the read buffer and call
ffs_data_closed which in turn destroys ffs->epfiles and
mark it as NULL. While this was happening the driver has
already initialized the local epfile in ffs_func_eps_disable
which is now freed and waiting to acquire the spinlock. Once
spinlock is acquired the driver proceeds with the stale value
of epfile and tries to free the already freed read buffer
casuing use-after-free.

Fix this race by assigning epfile under spin_lock from
ffs_func_eps_disable.

Change-Id: I9e1f376bb2212e8a8040f884514342c428098bdd
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2021-02-17 21:03:17 -08:00
Vinay Sudra
c3b13589d8 defconfig: sdmsteppeauto_debug: Add flags for suspend debug
Add clock debug and suspend state debug flags.

Change-Id: I23c5f2948675ccc0f9555762426e1307af7d6e59
Signed-off-by: Vinay Sudra <vsudra@codeaurora.org>
2021-02-17 20:57:43 -08:00
Jinesh K. Jayakumar
129d27e6e4 defconfig: Enable IOSS v2 for sdxlemur
Enable IPA offload sub-system for sdxlemur target.

Change-Id: Ief257fa0258db19c2bcb8acd4aa839dbc8a2a888
Signed-off-by: Jinesh K. Jayakumar <jineshk@codeaurora.org>
2021-02-17 19:59:39 -08:00
Jinesh K. Jayakumar
15c905f756 msm: Add config option for IOSS v2
Add kernel config option for IPA offload sub-system v2.

Change-Id: I8c48c3c0db5aff8d63289724b60842f7c1058622
Signed-off-by: Jinesh K. Jayakumar <jineshk@codeaurora.org>
2021-02-17 13:21:56 -08:00
qctecmdr
1e18bf1c46 Merge "pinctrl: qcom: enable/disable mpm wakeup bit when using gpio as IRQ" 2021-02-17 08:52:40 -08:00
qctecmdr
6f7cdb7d3b Merge "soc: qcom: guestvm_loader: Use proper cpu masks" 2021-02-17 08:52:40 -08:00
qctecmdr
d3f22253cf Merge "soc: qcom: pmic_glink: Fix a race condition in accessing rx_list" 2021-02-17 08:52:40 -08:00
qctecmdr
40d5e61294 Merge "power: smb1351-charger: Notify usb driver for ss hub" 2021-02-17 08:52:40 -08:00
qctecmdr
2f51d50989 Merge "soc: qcom: socinfo: Add soc information for yupik-iot" 2021-02-17 08:52:39 -08:00
Saurabh Ambulkar
ffa8640833 drivers: qcom: socinfo: Add support for ADP hardware type
Add ADP hardware support to socinfo driver.

Change-Id: I156a926a9426d2c891465aed3679b12dd21ff582
Signed-off-by: Saurabh Ambulkar <sambulka@codeaurora.org>
Signed-off-by: Shreyas K K <shrekk@codeaurora.org>
2021-02-17 22:02:37 +05:30
Vinay Sudra
5887b935cf defconfig: gen3auto_debug: Add flags for suspend debug
Add clock debug and suspend state debug flags.

Change-Id: I4b2297537e366eca8d3844047ca2fc97c02780e2
Signed-off-by: Vinay Sudra <vsudra@codeaurora.org>
2021-02-17 04:57:14 -08:00
qctecmdr
7468e64836 Merge "arm64: defconfig: Add missing config for sa8155" 2021-02-17 03:51:28 -08:00
qctecmdr
ef11848559 Merge "soc: qcom: Set QOS only to silver cluster" 2021-02-17 03:51:27 -08:00
qctecmdr
4ec71ffbee Merge "spi: spidev: add Qualcomm spi codec slave driver" 2021-02-17 03:51:27 -08:00
Vinay Sudra
c37401339b defconfig: steppeauto: Enable non GKI driver for SA6155
Enable non GKI driver for SA6155 boot.

Change-Id: I7dcf79ab9b3b1bd50faba83ca2a9e286242bd3d3
Signed-off-by: Vinay Sudra <vsudra@codeaurora.org>
2021-02-17 15:57:05 +05:30
Vinay Sudra
b4e935e69a driver: soc: adsp vote: QMI driver to send ADSP vote
New QMI communication driver implements sending ADSP unvote
while suspending APSS and sending ADSP vote while waking up.

Change-Id: I2dd0768d48dffd2da14f3eccf02d2b088024ce07
Signed-off-by: Vinay Sudra <vsudra@codeaurora.org>
2021-02-17 15:50:01 +05:30
Vishwanath Raju K
b196282514 soc: qcom: socinfo: Add soc information for yupik-iot
Add SOC ID to support socinfo for yupik-iot SoC.

Change-Id: Iad715ef092e7a68fb6a4c5e52f57b4ee110c335e
Signed-off-by: Vishwanath Raju K <vishk@codeaurora.org>
2021-02-17 14:26:36 +05:30
Bavyasritha Alahari
16a2c18559 soc: qcom: Set QOS only to silver cluster
CDSPRM module implements a RPMSG interface to communicate with CDSP
while providing a way for CDSP to vote for CPU QoS to benefit CDSP
applications performance.Glink IRQ mostly is taken by the silver cluster.
CDSPRM driver vote for sliver cluster prevents collapsing gold cluster
This saves significant power.

Change-Id: I6cac71e7ab85d823dfc44b19dd85a0dde62455db
Acked-by: Sreekanth Gande <sgande@qti.qualcomm.com>
Signed-off-by: Bavyasritha Alahari <alahari@codeaurora.org>
2021-02-17 13:57:21 +05:30
Kavya Nunna
e2a23c00a3 power: smb1351-charger: Notify usb driver for ss hub
Notify usb driver with extcon notification for
ss hub enumeration.

Change-Id: I3e6748a791bb424505aa937da52a99cd48b496a3
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2021-02-17 11:44:25 +05:30
qctecmdr
ea26407caa Merge "drivers: qcom: Add support for kernel boot markers" 2021-02-16 11:13:51 -08:00
qctecmdr
73b6f2e150 Merge "phy: qcom-ufs: add support in UFS PHY for sm6150 platform" 2021-02-16 11:13:50 -08:00
qctecmdr
2dea92f4c6 Merge "gen_headers: Remove headers of older camera kernel" 2021-02-16 11:13:50 -08:00
qctecmdr
10b31056a4 Merge "defconfig: enable dynamic minor for sdxnightjar" 2021-02-16 11:13:50 -08:00
qctecmdr
4887a3f262 Merge "defconfig: Enable cpufreq governors for sdmsteppeauto" 2021-02-16 11:13:49 -08:00
qctecmdr
2d9dc7412f Merge "sched: fair: consider all running tasks in cpu for load balance" 2021-02-16 07:00:36 -08:00
qctecmdr
7113933fe9 Merge "defconfig: gen3auto: enable audio config" 2021-02-16 07:00:36 -08:00
Lingutla Chandrasekhar
a183b6ab58 soc: qcom: guestvm_loader: Use proper cpu masks
To boot guest vm, loader hotplugs required cpus and bring them back once
bootup is completed. On hotplug operations, it uses isolation mask
to print offline cpus, which is not right mask.

Use cpu online mask instead of isolation mask to represent guest vm's
hotplugged/hotunplugged cpus.

Change-Id: I2805203df068c1192349867b6dc690af6fc32797
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2021-02-16 17:45:03 +05:30
Neeraj Upadhyay
b2abe9c6d5 pinctrl: qcom: Correct sdc1 rclk offset for Yupik
Correct the SDC1 rclk offset for configuration for
Yupik.

Change-Id: I81f8906ea662eb4d3e511841fb208388de75a25a
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2021-02-16 02:45:12 -08:00
Arun Prakash
618a7a4a23 arm64: defconfig: Add missing config for sa8155
Add APCS IPC configuration option for sa8155.

Change-Id: I27d1a04a26698db683b2c934de99f27c420c115f
Signed-off-by: Arun Prakash <app@codeaurora.org>
2021-02-16 15:51:54 +05:30
Shreyas K K
05e98f9a0e defconfig: Enable cpufreq governors for sdmsteppeauto
Enable Userspace and Ondemand cpufreq governors for
sdmsteppeauto target.

Change-Id: I21625164b29220f44ace9bb13d71ae9811a3a2b3
Signed-off-by: Shreyas K K <shrekk@codeaurora.org>
2021-02-16 13:19:26 +05:30
Shreyas K K
526c4c27a7 defconfig: Enable configs for ramdump support for sdmsteppeauto
Enable kernel configs needed to suppot ramdump on sdmsteppeauto
target. These drivers help to capture necessary debug information
in DDR and IMEM when the system crashes either after a panic
or due to any system lockup.

Change-Id: I09234c554e4e83d2c710583835b2e3f128d1a080
Signed-off-by: Shreyas K K <shrekk@codeaurora.org>
2021-02-16 13:18:00 +05:30
Shreyas K K
d24a6de9d3 defconfig: Enable ION support for sdmsteppeauto
Enable ION support configs on sdmsteppeauto target.

Change-Id: I6e171efa8c6a60f279af9e8108867f42314cb104
Signed-off-by: Shreyas K K <shrekk@codeaurora.org>
2021-02-16 13:16:43 +05:30
Fei Tong
c3f8495947 spi: spidev: add Qualcomm spi codec slave driver
Use spidev for Qualcomm spi audio codec driver.

Change-Id: I7f80c95e44f809f65a30de0d543f7c6a039d7550
Signed-off-by: Fei Tong <ftong@codeaurora.org>
2021-02-15 23:35:53 -08:00
Fei Tong
ec01b07ed7 defconfig: gen3auto: enable audio config
Enable audio and external display config for kernel 5.4

Change-Id: I62297d2bb95167a6f2408b12f83784b9f2928646
Signed-off-by: Fei Tong <ftong@codeaurora.org>
2021-02-15 23:35:31 -08:00