Commit graph

894,770 commits

Author SHA1 Message Date
Yue Ma
112dc33583 cnss2: Use CONFIG_INTERCONNECT to protect icc related APIs
This makes sure CNSS2 driver is able to work in the platforms and
kernels which do not have on-chip interconnect management feature.

Change-Id: I282ef1a282fab9ce4910e7ab914f26789b34ba64
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-02-04 22:02:30 -08:00
Yue Ma
872b48bc98 cnss2: Use CONFIG_QCOM_COMMAND_DB to protect MSM command DB APIs
This makes sure CNSS2 driver is able to work in non-MSM platforms
which do not have command DB feature.

Change-Id: I9551bfc639e6db0256e475a27db5dec87bce74ed
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-02-04 22:02:18 -08:00
Yue Ma
a7ae359deb cnss2: Use CONFIG_IPC_LOGGING to protect MSM IPC logging APIs
This makes sure CNSS2 driver is able to work in non-MSM platforms
which do not have IPC logging feature.

Change-Id: I4c8fe3eb45e38fd106f47c28f0e4da82b0bdf76f
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-02-04 22:02:07 -08:00
Yue Ma
9c8b92051d cnss2: Use proper flags to protect MSM memory dump APIs
This makes sure CNSS2 driver is able to work in non-MSM platforms
which do not have memory dump and mini dump features.

Change-Id: I5193deed941ff8e2e2ca2693150396a53eb3db7d
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-02-04 22:01:57 -08:00
Yue Ma
e0af665bc1 cnss2: Abstract of_reserved_mem_device_init() API
Currently in MSM platform reserved memory is attached to PCI
device of_node which may not apply to other non-MSM platforms.
Hence abstract the API using CONFIG_ARCH_QCOM flag.

Change-Id: Ic02b087c188b8dcb0959e17c80e72bb4021a725c
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-02-04 22:01:25 -08:00
Yue Ma
7e108a73af cnss2: Use empty tables for default regulators and clocks
Current default regulator and clock tables are for MSM platform
only. Use empty tables for non-MSM platforms by default so that
proper regulators and clocks can be added later based on platforms.

Change-Id: I2705d8ca2a0fde636f346f01e677a762b4cf92b7
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-02-04 22:01:10 -08:00
Santosh Mardi
c90efd1d2a drivers: soc: qcom: rimps_memlat: check cpu in idle path
In the idle notification, driver saves the mon pmu events
to pmu cache memory. Current implementation loops through
all the monitors in the group without checking if the given
cpu is present in the mon cpumask or not. If the cpu is not
present in mon cpumask, the macro to_mon_ev_data in
save_mon_pmu_events function can return a wrong address
to mon_data which can result in crash.

Check if cpu is present in mon cpumask before storing the mon
pmu events.

Change-Id: Ia2d674fab401dd83f7ce7410607aa4a665851871
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2021-02-04 21:49:49 -08:00
qctecmdr
c63440cb49 Merge "crypto: Fix possible stack out of bound error" 2021-02-04 18:51:58 -08:00
qctecmdr
4122d2c4b1 Merge "usb: composite: Don't override -EAGAIN return value" 2021-02-04 18:51:58 -08:00
qctecmdr
430f613771 Merge "dwc3: gadget: Resume USB bus unconditionally for USB super speed and above" 2021-02-04 18:51:57 -08:00
qctecmdr
f48bee06f2 Merge "arm: defconfig: Add GCC support for MONACO" 2021-02-04 18:51:57 -08:00
qctecmdr
473c6dd997 Merge "msm: cvp: Add snapshot of fastcvpd driver" 2021-02-04 18:51:57 -08:00
qctecmdr
b55dd29b8c Merge "pinctrl: qcom: disable MPM_WAKEUP_INT_EN bits for gpio" 2021-02-04 18:51:56 -08:00
qctecmdr
4bf30d61d6 Merge "defconfig: quinvm: Enable RENAME_BLOCK_DEVICE for quinvm" 2021-02-04 18:51:55 -08:00
Subramanian Ananthanarayanan
3645569660 msm: mhi_dev: Update num_reqs for ADB channel
num_reqs feild as part of chan_attr is not updated properly, it is set
to true. So there is only 1 reqs allocated for this channel. This causes
the channel to run of reqs easily causing ADB to stall. Updated num_reqs
to 50.

Change-Id: I1d4ec246c5879dbf1e9ca38ceeec7ffd6b8feccb
Signed-off-by: Subramanian Ananthanarayanan <skananth@codeaurora.org>
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-02-04 17:59:46 -08:00
Subramanian Ananthanarayanan
c4c214940e msm: mhi_dev: UCI memory leak fix
mhi_init_read_chan() allocates max_packet_size*nr_trbs for async client for
inbound channel. Multiple open/close of channels can cause memory leak.
Adding free operation during channel release to resolve this.

Change-Id: I7be4d47d28140a4d04b5070cb7db776a7f909238
Signed-off-by: Subramanian Ananthanarayanan <skananth@codeaurora.org>
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-02-04 17:59:08 -08:00
Subramanian Ananthanarayanan
7f1d9ff41a msm: mhi_dev: Prevent invalid memory access during channel read
ring_cache is NULL as channel has not yet been started, read operation
accesses ring_cache before checking if channel is in stopped state.
Adding a check in UCI layer to perform read/write transfers only
if the channel is in valid state.

Change-Id: Ic8e6ae19badf43a7f64f92349e9c2427750a98b6
Signed-off-by: Subramanian Ananthanarayanan <skananth@codeaurora.org>
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-02-04 17:58:23 -08:00
Siva Kumar Akkireddi
18e10bee09 msm: mhi_dev: Redesign UCI transfer request structure management
Invalid memory access can happen if a client closes its channels
with transfers pending because the mhi transfer request structure
gets freed in UCI when channel is closed, but MHI driver accesses the
request structure in the transfer completion callback.

To avoid the invalid memory access, following changes are done:
  * Allocate mhi transfer request structures for a client in the
    first UCI client open call
  * Do not free mhi transfer request structs when client calls release,
    to allow for subsequent re-use
  * Maintain an in-use list to track active transfers
  * If a client exits with transfers pending, move the request structs
    corresponding to pending transfers to free list and mark them as
    stale.
  * Stale transfers, if completed later, are ignored.

Change-Id: I170e06321de9c67b0a1d107b775d75b2ed97febb
Signed-off-by: Siva Kumar Akkireddi <sivaa@codeaurora.org>
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
2021-02-04 17:57:14 -08:00
Fei Mao
93f39379e6 input: touchscreen: focaltech: use proper dev
When enable touch over SPI, choose the right device
and avoid wrong pointers.

Change-Id: I9198701fed915da22518430bba3c3cb1943f937e
Signed-off-by: Fei Mao <feim1@codeaurora.org>
2021-02-04 17:45:03 -08:00
Yue Ma
c690a7dbd6 cnss2: Handle -ETIMEDOUT properly for MHI power on failure
If MHI power on returns -ETIMEDOUT, controller needs to take care
the cleanup by calling MHI power down. Force to set the power on
bit for driver internal MHI state to make sure it can be handled
properly later.

Change-Id: Icdeb3fc10a18cf643710240aa4984af61c8b5195
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2021-02-04 15:57:49 -08:00
Mayank Rana
718f2b7a95 usb: gsi: Retry USB function wakeup if USB is into low power mode
Consider case where USB is into low power mode after receiving USB
function suspend from host. To invoke function remote wakeup USB
controller is rerquired to bring out of low power mode. Hence once
USB controller and USB bus is resumed, perform USB function wakeup
from composite_resume() context to resume USB function on host side.

Change-Id: Id5103f0e7bf3d324cd6c206d1d6214f6d6c107a4
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2021-02-04 12:42:38 -08:00
Rohith Kollalsi
978e7642e6 usb: f_gsi: Implement remote wakeup feature for gsi for bus suspend
Earlier remote wakeup feature for gsi was only available for
function suspend. This change adds remote wakeup feature even
for bus suspend. The entire implementation of remote wakeup
for gsi is now moved to gsi driver from func_ep_queue present
in composite.

Change-Id: I773ea038f1ee7c081c50388db3f3d397fa7e28ba
Signed-off-by: Rohith Kollalsi <rkollals@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2021-02-04 12:42:12 -08:00
Komal Bajaj
5ea1da1601 soc: qcom: Reset watchdog before setting bite time
Reset watchdog before setting bite time in watchdog panic
handler. If the watchdog’s bite time is reduced below its
current count, there is a possibility that it will bite as
the virtual watchdog sets times relative to the last pet.

Change-Id: I27a456a0f81525987003c7eb54a9e766b6e184ca
Signed-off-by: Komal Bajaj <kbajaj@codeaurora.org>
2021-02-04 10:06:07 -08:00
Raghavendra Rao Ananta
14788e08ca perf: Add exclude_idle support for armv7 PMU
By adding the exclude_idle support, the driver would update
the PMU counter values into event->count right before it goes
into an idle state. This way, even if the client, from another
core, tries to read the value during this idle period, it would
return the last updated value before moving into idle without
waking the idle core up.

Change-Id: Iccc9a9d73e7079b27d0e2978bd286c4c464ce28f
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2021-02-04 07:52:13 -08:00
Veerendranath Jakkam
0eca6b834d cfg80211: Indicate support for configuring PMKSA timer params
This commit adds backport flag to indicate support for configuring PMKSA
timer params such as pmk_lifetime and pmk_reauth_threshold.

Change-Id: Icda969d1f53caf642e21d9ec1b1f21f8be419e5c
CRs-Fixed: 2871040
Signed-off-by: Veerendranath Jakkam <vjakkam@codeaurora.org>
2021-02-04 20:04:34 +05:30
qctecmdr
7141e265d8 Merge "ARM64: defconfig: enable kgsl driver" 2021-02-04 04:20:35 -08:00
qctecmdr
9d2aa50e8c Merge "icnss2: Add support to enable IO Coherency" 2021-02-04 04:20:35 -08:00
qctecmdr
72571c4baf Merge "usb: gadget: f_gsi: Handle IPA remote wakeup notification properly" 2021-02-04 04:20:34 -08:00
qctecmdr
00dcbc2cbe Merge "defconfig: Disable upstream SOUNDWIRE driver for sdxnightjar" 2021-02-04 04:20:34 -08:00
qctecmdr
3c7b7b5379 Merge "neighbour: Prevent a dead entry from updating gc_list" 2021-02-04 04:20:34 -08:00
qctecmdr
07afb6af62 Merge "interconnect: qcom: Add OSM L3 support on SM6150" 2021-02-04 04:20:33 -08:00
qctecmdr
92ca465653 Merge "mm: skip speculative path for non-anonymous COW faults" 2021-02-04 04:20:33 -08:00
Lingutla Chandrasekhar
388e756e30 sched: fair: consider all running tasks in cpu for load balance
Load_balancer considers only cfs running tasks for finding busiest cpu
to do load balancing. But cpu may be busy with other type tasks (ex: RT),
then that cpu might not selected as busy cpu due to weight vs nr_run
checks fails). And possibley cfs tasks running on that cpu would suffer
till other type tasks finishes or weight checks passes, while other cpus
sitting idle and not able to do load balance.

So, consider all running tasks to check cpu busieness.

Change-Id: Iddf3f668507e20359f6388fc30ff5897d234c902
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2021-02-04 17:23:18 +05:30
Venkata Rao Kakani
e0d73ac10e defconfig: quinvm: Enable RENAME_BLOCK_DEVICE for quinvm
Enable RENAME_BLOCK_DEVICE in quinvm to support renaming of
partitions for AVB 2.0 support.

Change-Id: Ia283eb8217ea019dd66680480487cfefdffcfb02
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
2021-02-04 14:38:14 +05:30
Ajay Prathi
facf1631a4 msm: pci: Update VREG info fron DT
Assign Voltage regulator max and min values from DT.

Change-Id: Ib1e58894b4498ed7f196cb548ca7bd170b5c3455
Signed-off-by: Ajay Prathi <aprathi@codeaurora.org>
2021-02-04 12:42:43 +05:30
Ajay Agarwal
ac1c3838c7 usb: phy: snps: Ensure SIDDQ is disabled for proper functioning
Some platforms may have the SIDDQ enabled by default as a part of
PHY POR. This leads to PHY analog blocks staying down and hence
the PHY is not in a proper state to function.
Ensure that SIDDQ is disabled as a part of init routine.

Change-Id: I6685c34fc69168472d4a97d14e714b9b5a3558b5
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2021-02-03 22:31:46 -08:00
Rohith Kollalsi
62aecc3734 defconfig: Configure MaxPower to 900mA on sdxnightjar
Add the config entry to set the MaxPower to 900mA to accommodate
Super Speed and above on sdxnightjar.

Change-Id: I6a0766d825b992eaf22c87200cc4d68baaa91df7
Signed-off-by: Rohith Kollalsi <rkollals@codeaurora.org>
2021-02-03 22:11:43 -08:00
Rohith Kollalsi
de534b00b3 defconfig: Add support for usb function wakeup on sdxnightjar
Enable CONFIG_USB_FUNC_WAKEUP_SUPPORTED defconfig inorder to
support usb function wakeup on sdxnightjar.

Change-Id: I9437a7f39f167ec81486062e0de7dac58e493aac
Signed-off-by: Rohith Kollalsi <rkollals@codeaurora.org>
2021-02-04 11:38:45 +05:30
Mohammed Siddiq
6044ba189b cnss2: Fix error case print for dev_boot debugfs
Add code to fix error case print for dev_boot debugfs.

Change-Id: Id73e8d98fa493ff3a7cfe3820e33543aae7091a6
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2021-02-04 10:26:06 +05:30
qctecmdr
d6a42214ab Merge "usb: phy: snps: Enable autoresume for FS/HS peripherals only" 2021-02-03 19:56:16 -08:00
qctecmdr
0fd88e79e4 Merge "defconfig: sdmsteppeauto: Enable SPMI PMIC drivers" 2021-02-03 19:56:15 -08:00
qctecmdr
2fd8b50117 Merge "icnss2: Use correct pointer to access icnss_priv state" 2021-02-03 19:56:15 -08:00
Mayank Rana
1e6f91ba62 usb: f_cdev: Retry USB function wakeup if USB is into low power mode
Consider case where USB is into low power mode after receiving USB
function suspend from host. To invoke function remote wakeup USB
controller is rerquired to bring out of low power mode. Hence once
USB controller and USB bus is resumed, perform USB function wakeup
from composite_resume() context to resume USB function on host side.

Change-Id: If15b70bc7d3781bc26bf593e3ee3edef621f72d7
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2021-02-03 16:11:11 -08:00
Hemant Kumar
b9b4ade986 pci: msm: msm_pcie_iatu_config API clean
Get rid of access to pciedev_table. Update data type
for bdf from unsigned long to u32. Remove support for
viewport.

Change-Id: I2bb27eab2b37a640c468377f5d4993d67b5979d0
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2021-02-03 15:30:43 -08:00
Jindong Yue
a9cae6eab7 ANDROID: PCI: dwc: Export symbols for ep driver
Several symbols in DesignWare PCI Core driver are used
to support PCIe controller work at Endpoint Mode.
Export them to support such driver built as module.

Bug: 159736148
Signed-off-by: Jindong Yue <jindong.yue@nxp.com>
Change-Id: I2c77bfbfbec750ecdf21f0cd1bbb20fe339a2f0c
2021-02-03 22:20:28 +00:00
qctecmdr
7bdfe17c46 Merge "defconfig: sdxlemur: Enable serial on sdxlemur perf" 2021-02-03 12:03:01 -08:00
qctecmdr
8ca355864f Merge "interconnect: qcom: Add qos configuration for scshrike" 2021-02-03 12:03:01 -08:00
qctecmdr
3c93f5a7d9 Merge "backlight: qcom-spmi-wled: Change the SYNC toggle sequence" 2021-02-03 12:03:00 -08:00
qctecmdr
5190cfa369 Merge "defconfig: Add CNSS_UTILS config for monaco" 2021-02-03 12:03:00 -08:00
qctecmdr
86b4635874 Merge "power: smb5-lib: Add additional check to exit charge-termination WA" 2021-02-03 12:03:00 -08:00