Commit graph

893,362 commits

Author SHA1 Message Date
Satish Babu Patakokila
1020ab13d4 msm: mfd: Enable MFD for sdxlemur
Enable MFD for sdxlemur

Change-Id: I2d97c507ea846287351365f21ad415a3dcb8289b
Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
2020-10-06 18:13:52 +05:30
Sarthak Garg
c3d355d133 mmc: core: Avoid mmc_power_off during shutdown/reboot
During shutdown/sleep putting vdd-io in LPM mode after sending the
Poweroff notify command is leading to OCP.

Avoid putting vdd-io in LPM mode during shutdown/sleep.

This change is inline with earlier kernels.

Change-Id: I08698bc8b4f1c420910747b6374485f6265d553b
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2020-10-06 14:49:33 +05:30
Prateek Sood
49e771b618 qcom: wdog: improve error handling in watchdog core
Improve error handling in watchdog core driver, to avoid aborts
when watchdog enable fails.

Change-Id: I09a8e0815755a90c7288b0b5fd43679208158977
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
2020-10-06 01:16:43 -07:00
Jagadeesh Kona
986b61bc1a clk: qcom: gcc-shima: Remove support for CPUSS clocks
Remove support for CPUSS clocks as these clocks are
not required to be controlled from HLOS.

Change-Id: Iad004f3bfddddfa7cead7cfeab2f9e52c69a7f01
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-10-06 12:59:15 +05:30
Neeraj Upadhyay
53fc7838ad haven: hh_dbl: Add missing unlock in hh_dbl_validate_params
Add missing unlock of cap_entry_lock in hh_dbl_validate_params().

Change-Id: Icdcf7aa1bcb2c037f4a924cddcad36007beadd00
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-10-06 11:26:47 +05:30
Sarthak Garg
7cbd556e90 mtd: msm_qpic_nand: Add snapshot of QPIC nand driver
Add snapshot of QPIC nand driver and it's supported files.

This is a snapshot of the QPIC nand driver as of kernel msm-4.14
'commit 5cc17e2cfb19 ("mtd: msm_qpic_nand: Disable Pagescope on
sdxprairie")'.

Change-Id: I994f4432ddd417743a1d7bf27b57755adc90b702
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2020-10-06 10:32:35 +05:30
Satya Durga Srinivasu Prabhala
580788d5df sched: fix suspicious RCU usage warning
Below warning is observed during boot when lockdep is enabled:

[    0.233539] =============================
[    0.237668] WARNING: suspicious RCU usage
[    0.241798] 5.4.57-qgki-debug-g003be53-dirty #2 Not tainted
[    0.247528] -----------------------------
[    0.251657] include/linux/cgroup.h:488 suspicious rcu_dereference_check() usage!
[    0.259250]
[    0.259250] other info that might help us debug this:
[    0.259250]
[    0.267467]
[    0.267467] rcu_scheduler_active = 1, debug_locks = 1
[    0.274179] 2 locks held by swapper/0/0:
[    0.278222]  #0: ffffff800b7b89b0 (&p->pi_lock){....}, at: wake_up_new_task+0x44/0x1f4
[    0.286367]  #1: ffffff8179306018 (&rq->lock){-.-.}, at: __task_rq_lock+0x60/0xd8
[    0.294061]
[    0.294061] stack backtrace:
[    0.298544] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.57-qgki-debug-g003be53-dirty #2
[    0.306946] Hardware name: Qualcomm Technologies, Inc. LahainaP MTP (DT)
[    0.313828] Call trace:
[    0.316353]  dump_backtrace.cfi_jt+0x0/0x4
[    0.320569]  show_stack+0x18/0x24
[    0.323989]  dump_stack+0xe0/0x160
[    0.327496]  lockdep_rcu_suspicious+0x138/0x154
[    0.332155]  task_fits_max+0x11c/0x290
[    0.336015]  enqueue_task_fair+0x104/0x268
[    0.340230]  enqueue_task+0x154/0x1c8
[    0.344003]  wake_up_new_task+0xd4/0x1f4
[    0.348048]  _do_fork+0x264/0x37c
[    0.351469]  kernel_thread+0x50/0x78
[    0.355156]  rest_init+0x2c/0x1f0
[    0.358577]  start_kernel+0x0/0x424
[    0.362168]  start_kernel+0x3ac/0x424

Fix the issue by adding RCU lock while dereferencing css for the task.

Change-Id: I1f690dcf93a3bc3c39b401942654cc4f3b302346
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2020-10-05 21:18:10 -07:00
Arun Kumar Neelakantam
ec707c5973 rpmsg: glink: Send READ_NOTIFY command in FIFO full case
The current design sleeps unconditionally in TX FIFO full case and
wakeup only after sleep timer expires which adds random delays in
clients TX path.

Avoid sleep and use READ_NOTIFY command so that writer can be woken up
when remote notifies about read completion by sending IRQ.

Change-Id: I1b44df0ec437d4e76aff181470fcf4cafbdd098a
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Signed-off-by: Jay Jayanna <jayanna@codeaurora.org>
2020-10-05 16:09:14 -07:00
Jungrae Kim
ebaebc32e5 ANDROID: ABI: update allowed list for galaxy
Leaf changes summary: 28 artifacts changed (1 filtered out)
Changed leaf types summary: 0 (1 filtered out) leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 28 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

28 Added functions:

  [A] 'function vm_struct* __get_vm_area(unsigned long int, unsigned long int, unsigned long int, unsigned long int)'
  [A] 'function int __kfifo_init(__kfifo*, void*, unsigned int, size_t)'
  [A] 'function unsigned int __kfifo_out_peek(__kfifo*, void*, unsigned int)'
  [A] 'function void __kfree_skb(sk_buff*)'
  [A] 'function void argv_free(char**)'
  [A] 'function char** argv_split(unsigned int, const char*, int*)'
  [A] 'function void cfg80211_port_authorized(net_device*, const u8*, gfp_t)'
  [A] 'function void class_dev_iter_exit(class_dev_iter*)'
  [A] 'function void class_dev_iter_init(class_dev_iter*, class*, device*, const device_type*)'
  [A] 'function device* class_dev_iter_next(class_dev_iter*)'
  [A] 'function unsigned int cpufreq_get(unsigned int)'
  [A] 'function device* create_function_device(char*)'
  [A] 'function void emergency_restart()'
  [A] 'function file* get_mm_exe_file(mm_struct*)'
  [A] 'function pid* get_task_pid(task_struct*, pid_type)'
  [A] 'function void gether_get_host_addr_u8(net_device*, u8*)'
  [A] 'function ktime_t ktime_get_coarse_with_offset(tk_offsets)'
  [A] 'function task_struct* pid_task(pid*, pid_type)'
  [A] 'function bool rfkill_set_sw_state(rfkill*, bool)'
  [A] 'function int send_sig(int, task_struct*, int)'
  [A] 'function int skb_copy_ubufs(sk_buff*, unsigned int)'
  [A] 'function void smpboot_unregister_percpu_thread(smp_hotplug_thread*)'
  [A] 'function __anonymous_struct__ sock_i_uid(sock*)'
  [A] 'function void sock_wfree(sk_buff*)'
  [A] 'function unsigned long int strspn(const char*, const char*)'
  [A] 'function int usb_gadget_connect(usb_gadget*)'
  [A] 'function int usb_gadget_disconnect(usb_gadget*)'
  [A] 'function unsigned long int vmalloc_to_pfn(void*)'

Bug: 170065985
Signed-off-by: Jungrae Kim <jryu.kim@samsung.com>
Change-Id: Ic14fc4aa42c42b2346e0235f92ee73fb558b2437
Signed-off-by: Jungrae Kim <jryu.kim@samsung.com>
2020-10-05 22:48:24 +00:00
Sivan Reinstein
6ebcafa9e7 msm: Add dataipa to SDXLEMUR compilation
Add IPA to sdx lemur defconfig file

Change-Id: Ie9b62b2ebf4cd6f17ba87887f83d4420fae8d5a0
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2020-10-05 21:55:14 +03:00
Vijayanand Jitta
38edc27806 iommu: arm-smmu: add capturebus support for smmuv500
add a debugfs interface under /sys/kernel/debug/iommu/capturebus
to support capture bus for smmuv500.

Change-Id: Ibf2a2daf87941387c1b3f990f05d86a1cd4dbfff
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
[guptap@codeaurora.org: refactored implementation]
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
2020-10-05 23:03:36 +05:30
Manu Gautam
d68a3490c1 msm: pcie: Disable access to MSI register during drv_suspend
Access to MSI registers requires PCIe clocks to be ON. If any
pcie client driver tries to disable PCIe MSI provided by the
controller then that can result in unclocked access. Fix it
by restricting access during drv_suspend. For non drv_suspend
or pm_suspend it is already handled.

Change-Id: I4db72ce22773f0b6b52c9e704c9ec9a3a1de3d8c
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2020-10-05 22:19:37 +05:30
Ronald Karyodisa
235171a308 msm: cvp: Fix sum fps aggregation setting
Initialize the sum fps calculation to avoid the value keep
increasing.

Change-Id: I826c88f7e75d318e2b328e8a525afb44511fb662
Signed-off-by: Ronald Karyodisa <ronaldk@codeaurora.org>
2020-10-05 09:20:43 -07:00
Mohammed Siddiq
6e0948fdf4 cnss2: Add debug dump for Wlan FW PBL and SBL for HST
Primary and secondary bootloader debug data is required to debug
FW initialization issues. Add support to dump debug data for
PBL and SBL for HST.

Change-Id: If5c3a5c76a4b073bc6122f8a866592515fe277ad
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2020-10-05 19:50:17 +05:30
Sarthak Garg
dbeba97906 mmc: sdhci-msm: dump vendor specific registers during error
Implement dump_vendor_registers host operation to print the
vendor specific registers in addition to standard SDHC
register during error conditions.

Change-Id: Id0b322d0c7bf229c86dd9b290fcfc37208a4eafe
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2020-10-05 18:31:43 +05:30
Sarthak Garg
48686b39b3 mmc: core: Remove SD card upon recovery failure
In case of bad SD card recovery fails everytime.
Also some SD cards fail on Read/writes but can get initialized
successfully.

Mark card as removed and gracefully remove by calling
mmc_detect_change. Also mark the card as corrupted and return
to avoid reinitialization as sdhci_get_cd will return non zero as the
card is physically present and avoid mmc_rescan from proceeding ahead.

Change-Id: Id4c99d4608ef2b5f49cf5ac796a2aaf6d12a56c2
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2020-10-05 17:23:02 +05:30
Sayali Lokhande
b3ccc39737 mmc: core: Select HS mode in device first and then in the host
While switching from hs400 to hs200 mode, high speed mode
timing should be selected in the device before changing the
clock frequency in the host. But current implementation,
(mmc_hs400_to_hs200) first updates the frequency in the host
and then updates mode in the device. This is a spec violation.
Hence update the sequence to comply with the spec.

Change-Id: I0694edac9dd005ec68add9cc38bbe6fa4245ed48
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2020-10-05 03:17:56 -07:00
Maulik Shah
101b41990a irqchip: qcom-pdc: Add yupik target support
Add yupik target support as irqchip and module.

Change-Id: I4933690d5225824026d0da1930943068cc93c48f
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2020-10-05 14:03:40 +05:30
Maulik Shah
9da10e16ba pinctrl: qcom: Add GPIO to PDC pin map for yupik
Add GPIO to PDC pin mapping for wakeup capable GPIOs.

Change-Id: I1652cee62e335fd7ff32cf4e67b29249023fac37
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2020-10-05 14:02:52 +05:30
Jishnu Prakash
29a6857afe power: smb1390: Add snapshot of SMB1390 charger driver
Add snapshot of smb1390 charger driver as of msm-4.19
'commit 76a3eb924c55 ("msm: ipa: stay in NAPI mode when default pipe has
low credits")'.

Change-Id: Iad8cb744b1031d75dfc7457b142dcbd018584d92
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-10-05 01:16:23 -07:00
Santosh Mardi
3da3b760c2 drivers: soc: qcom: update rimps memlat while saving pmu counters
During hoplug cpu going down path pmu event handles will be freed.
If the hotplug path and idle path run in parallel there are chances
in idle path that the driver will try to read the PMU counters with
freed pointer resulting in a crash.

Add NULL pointer check before performing PMU reads.

Change-Id: I9b8a4a8dfa63e70e879c3530a878a9c96062872f
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2020-10-04 23:33:00 -07:00
Hareesh Gundu
9dc72d9f38 msm: kgsl: Use readl_poll_timeout() for crashdumper status
Crashdumper required sometime to finish all register dumps.
Hence add minimum 100msec sleep time before we start polling
on crashdumper completion. Use readl_poll_timeout() for
crashdumper completion check to reduce AHB traffic.

Change-Id: I112466e67760f26e73e7c8a69bf466ce8b8ef09b
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2020-10-04 21:40:20 -07:00
Mahesh Kumar Sharma
0e123a024c Bluetooth: Implement a minimum off-time for AON discharge issue
Sometimes it is seen that AON LDO output takes minimum
off-time (worst case 100ms) to fully discharge. If BT is
turned on in this timeframe when AON is not fully discharged
yet ,BT would fail to turn ON.

This fix ensures to
Toggle BT_EN high when WL_EN is already high.
Handle corner case if WL_EN goes low in step 1.
Add 100ms to toggle BT_EN high when WL_EN is low.

Change-Id: Ibe082165788bd9ddb553e6043696bebc5bf4b609
Signed-off-by: Mahesh Kumar Sharma <smahesh@codeaurora.org>
2020-10-04 21:08:45 -07:00
Sangmoon Kim
2ea974a00c ANDROID: workqueue: add vendor hook for wq lockup information
- Add the hook to provide additional information like
   a task scheduling log.

Bug: 169374262

Signed-off-by: Sangmoon Kim <sangmoon.kim@samsung.com>
Change-Id: I203dbc6faa77687ea48769f76658d28b29ef46fd
2020-10-05 10:27:15 +09:00
Pooja Kumari
f7cc520c67 msm: ipa4: Add changes to support PCIe addr for WDI2 over GSI
Add changes to support PCIe addr for WDI2 over GSI

Change-Id: I6021ea79a44c0981cf2656de2976574f7ce79f7d
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
2020-10-04 06:15:21 -07:00
qctecmdr
5168327a4f Merge "tracing: Add CONFIG_KPROBES_QGKI config" 2020-10-03 15:19:06 -07:00
qctecmdr
461e53e008 Merge "defconfig: Enable CONFIG_UFS_DBG for general builds" 2020-10-03 15:19:06 -07:00
qctecmdr
19b319fef6 Merge "ICNSS2: Send MSA address range to firmware" 2020-10-03 15:19:05 -07:00
qctecmdr
9627f80437 Merge "msm: pcie: add debugfs cat capabilities for PCIe entries" 2020-10-03 15:19:05 -07:00
qctecmdr
db00d9572b Merge "icnss2: Fix null-pointer derefrence while thermal unregister" 2020-10-03 15:19:05 -07:00
qctecmdr
656aca69a7 Merge "defconfig: enable rpmh retry debug prints for lahiana" 2020-10-03 04:38:40 -07:00
qctecmdr
a859fa7618 Merge "dwc3-msm: Map IPA GSI channel doorbell register for different UDC core" 2020-10-03 04:38:40 -07:00
qctecmdr
733b596e70 Merge "defconfig: Enable IPC logging for f_fs on Holi" 2020-10-03 04:38:40 -07:00
qctecmdr
5bacff506a Merge "tracing: Add CONFIG_KPROBES_DEBUG config" 2020-10-03 04:38:39 -07:00
qctecmdr
e35b5d5867 Merge "net: aquantia: support for 32-bit ARM target" 2020-10-03 04:38:39 -07:00
Paras Singh Jain
6d6a3d3ffc Netfilter: Fixes for NATTYPE module compilation
These changes allow for proper compilation of the
NATTYPE module.

Change-Id: I0d172ea7ce3280716653cfa551d27639e0032f08
Signed-off-by: Paras Singh Jain <parassin@codeaurora.org>
2020-10-03 01:49:06 -07:00
qctecmdr
4e37bafc65 Merge "pci/of: expand match PCI devices to OF nodes" 2020-10-03 01:44:48 -07:00
qctecmdr
dd5fab13e3 Merge "cnss2: Add logs for dev_boot debugfs" 2020-10-03 01:44:47 -07:00
qctecmdr
3d7208efbd Merge "cnss2: Check for BT Enable GPIO in QCA6490" 2020-10-03 01:44:47 -07:00
qctecmdr
a41c2a6ccc Merge "net/embms-kernel : EMBMS Tunneling Module" 2020-10-03 01:44:47 -07:00
qctecmdr
a6670033d9 Merge "arm64: defconfig: Enable ramdumps for GKI" 2020-10-03 01:44:46 -07:00
qctecmdr
f2874311d5 Merge "usb: dwc3: Don't queue the request if gadget is in suspended state" 2020-10-03 01:44:45 -07:00
Prateek Sood
348287cf46 minidump: use *_irqsave() and *_irqrestore() API's for minidump locks
Use *_irqsave() and *_irqrestore() API's for minidump locks.
Since with minidump current task stack feature, minidump
locks can be acquired from interrupt context also.

Change-Id: I9e86a3c46f1f7fcedb14d8ec713420198f1b8cd1
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
2020-10-02 23:51:39 -07:00
qctecmdr
116b7811ee Merge "msm: netfilter: NATTYPE Refresh Timer Changes" 2020-10-02 22:58:44 -07:00
qctecmdr
6d922e2c32 Merge "mmc: host: sdhci-msm: Enable SDHC FIFO explicitly" 2020-10-02 22:58:43 -07:00
qctecmdr
efb8798d6a Merge "host: sdhci-msm: implement get_current_limit() host op" 2020-10-02 22:58:43 -07:00
qctecmdr
0587d80485 Merge "defconfig: Enable NAND related configs for sdxlemur" 2020-10-02 22:58:43 -07:00
qctecmdr
f8711d112f Merge "ANDROID: kallsyms: ignore ThinLTO+CFI hash suffix in kallsyms_lookup_name()" 2020-10-02 22:58:42 -07:00
qctecmdr
35f68aa21c Merge "defconfig: holi: Enable F2FS_CHECK_FS for holi" 2020-10-02 18:08:54 -07:00
qctecmdr
9b3635accb Merge "mm: slub: Add debugfs interface to capture slub allocs owner" 2020-10-02 18:08:53 -07:00