Commit graph

891,986 commits

Author SHA1 Message Date
Santosh Mardi
73ee91fc44 drivers: soc: qcom: read current counter value before PMU save
Call perf_event_read_local() to update current counter value
in hw_perf_event structure before saving PMU snapshot to
shared memory.

Change-Id: Id5945cd6b6c9fab6f87917224b5b5f54dca5ef9c
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2020-11-04 11:32:18 +05:30
qctecmdr
8c86f95982 Merge "drm/bridge: lt9611uxc: add hpd support for lt9611uxc" 2020-11-02 20:59:38 -08:00
qctecmdr
c0d9738fcd Merge "Merge android11-5.4.61+ (874de1d) into msm-5.4" 2020-11-02 20:59:38 -08:00
qctecmdr
160bf6e6d6 Merge "pci: msm: Add support to handle DRV power collapse" 2020-11-02 20:59:38 -08:00
qctecmdr
770c7141e8 Merge "arm: defconfig: Enable TSENS driver for sdxlemur" 2020-11-02 20:59:37 -08:00
qctecmdr
6da09c4559 Merge "clk: qcom: gdsc-regulator: Extend the support for ACD reset" 2020-11-02 20:59:37 -08:00
qctecmdr
e43996e3bb Merge "msm: kgsl: Don't skip gmufw preallocations during firmware read" 2020-11-02 20:59:37 -08:00
qctecmdr
69a33a0555 Merge "mtd: msm_qpic_nand: Add a check to read an ONFI parameter page" 2020-11-02 20:59:36 -08:00
qctecmdr
b728422299 Merge "usb: gadget: configfs: Correct usb functions order for UDC gadget bind" 2020-11-02 17:15:19 -08:00
qctecmdr
19a1e02a64 Merge "coresight-tmc-etr: Check if page is valid before dma_map_page" 2020-11-02 17:15:19 -08:00
qctecmdr
c648646142 Merge "msm: kgsl: Granule Fill Override Enable" 2020-11-02 17:15:18 -08:00
qctecmdr
244ab508be Merge "cnss2: Donot reserve TCS register space for WLAN" 2020-11-02 14:03:14 -08:00
qctecmdr
bad0254793 Merge "Bluetooth: Don't reserve TCS register address" 2020-11-02 14:03:12 -08:00
qctecmdr
eb72ab27a7 Merge "mmc: core: Fix clk scaling deadlock with irqsave" 2020-11-02 07:48:27 -08:00
qctecmdr
b5b0299091 Merge "usb: dwc3: Stop active transfer on control endpoints" 2020-11-02 07:48:27 -08:00
qctecmdr
30a9d161da Merge "qcom: qcom_ipcc: request ipcc irq IRQF_NO_SUSPEND" 2020-11-02 07:48:27 -08:00
qctecmdr
a40869b2ca Merge "defconfig: holi: Enable Incremental FS as module" 2020-11-02 07:48:26 -08:00
qctecmdr
6e0ca20610 Merge "serial: msm_geni_serial: memset RX buffer to Zero" 2020-11-02 07:48:26 -08:00
qctecmdr
bf4800b509 Merge "input: qcom-hv-haptics: switch API to trigger PBS for ISC configuration" 2020-11-02 07:48:26 -08:00
qctecmdr
67a8905131 Merge "mm: oom: wait for exit of killed current task" 2020-11-02 07:48:26 -08:00
qctecmdr
e2ad70a354 Merge "NFC: Add fix for CTS issue of IPC log file creation failed" 2020-11-02 07:48:25 -08:00
qctecmdr
b1189d1d9c Merge "msm: kgsl: Call dma_buf_unmap_attachment() early" 2020-11-02 02:18:44 -08:00
qctecmdr
e350f2d4e0 Merge "f2fs: fix indefinite loop scanning for free nid" 2020-11-02 02:18:44 -08:00
qctecmdr
621f4c9069 Merge "uapi: ipa: Support uc header proc ctx for DSCP insertion" 2020-11-02 02:18:44 -08:00
qctecmdr
bb2468e73f Merge "icnss2: Avoid race between SOC WAKE REQ/RESP" 2020-11-02 02:18:44 -08:00
qctecmdr
e6c07194da Merge "msm: kgsl: Store power_interval_timeout in msec" 2020-11-02 02:18:43 -08:00
qctecmdr
b3a0fafb1c Merge "clk: qcom: Add sync-state callback for clk-aop-qmp" 2020-11-02 02:18:43 -08:00
Taniya Das
2cc43ca942 clk: qcom: gdsc-regulator: Extend the support for ACD reset
In the case where the SW reset requires an additional ACD block reset or
misc reset, the support is added for the same.

Change-Id: I29b69f2a4ccc33a896ec8e201cbe761cca6800ea
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-11-02 15:36:40 +05:30
Wenjun Zhang
85cee8cd34 drm/bridge: lt9611uxc: add hpd support for lt9611uxc
When HDMI cable was pluged in/out, it could trigger an irq,
MSM can get HPD status from LT9611, and report the HPD status
using kernel uevent to userspace.

Change-Id: I47c148d92e877a80147ee81498513ead0e4afcf0
Signed-off-by: Wenjun Zhang <wjzhan@codeaurora.org>
2020-11-01 23:16:16 -08:00
Chandana Kishori Chiluveru
fbf383ace3 usb: gadget: configfs: Correct usb functions order for UDC gadget bind
During multiple adb reboots test case, adbd is taking time to start
and write the descriptors from the userspace. If adb is their in the
composition and its not ready when bind happens, UDC bind for ffs will
fail and adding the function back to the func_list in failure path and
calling purge_configs_funcs.

In purge_func adb driver unbind the functions from config->functions list
and add back to the tail of the func_list. With this order of the functions
in func_list got changed and next time when bind happens from adbd start
usb does not working.

Fix this issue by changing the order of the functions while adding the
functions back to the list in purge_configs_funcs.

Change-Id: I50c2362062130836d66edfcf8e1f020134248cb4
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-11-01 21:12:07 -08:00
Karthik Poosa
33d50bb739 NFC: Add fix for CTS issue of IPC log file creation failed
Checking IPC log handle during usage rather than after creation.
This is because IPC logging is not available with boot image of
of GKI.

Change-Id: I81f4d5910bf721fd94f5858a2b7aba675a7be931
Signed-off-by: Karthik Poosa <kpoosa2@codeaurora.org>
2020-11-02 10:01:39 +05:30
qctecmdr
4059648ed9 Merge "coresight: tmc: Configure cti trigger number in device tree" 2020-11-01 20:06:46 -08:00
qctecmdr
878a2ef45f Merge "coresight: tmc: fix spinlock bad magic/usb_qdss_close" 2020-11-01 20:06:46 -08:00
qctecmdr
3064610aa0 Merge "soc/qcom/hyp_core_ctl: Track VPM Group state for VM" 2020-11-01 20:06:45 -08:00
qctecmdr
8efb1e6396 Merge "qbt_handler: Memset userspace struct to zero" 2020-11-01 20:06:45 -08:00
Fenglin Wu
20a1939587 input: qcom-hv-haptics: switch API to trigger PBS for ISC configuration
SW trigger for PBS to configure ISC in LRA detection doesn't need to
pass any parameter or wait on any condition including checking status.
Hence switch using qpnp_pbs_trigger_single_event() instead of
qpnp_pbs_trigger_event() to trigger PBS.

Change-Id: I8b252e293265994976924435f8a6a11d9b463119
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-11-02 09:50:43 +08:00
Fenglin Wu
1d2e35e74e soc: qcom: qpnp-pbs: add an API to trigger single PBS event
A simple PBS can be triggered by SW writing to SW_TRIGGER (bit 7) in
TRIG_CTL register without passing any parameters through SCRATCH1
register and not waiting on any condition. Also, this simple PBS is more
like a fire and forget and doesn't even need to check on the status
through SCRATCH2 register. Add support for this simple PBS through an
API qpnp_pbs_trigger_single_event().

Change-Id: I8a6448f9be8f84269c6ba5672bead01a152185ad
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-11-02 09:50:31 +08:00
Deepak Kumar
7b9fd1956e msm: kgsl: Don't skip gmufw preallocations during firmware read
In scenario where GMU request firmware succeeded but preallocation
failed, a6xx_gmu_load_firmware returns error but during next open
call it return success only based on whether request_firmware was
successful or not. This results in issue during GMU start while
copying firmware to respective GMU memory blocks as some of the
memory blocks were not allocated.

Update the check in a6xx_gmu_load_firmware to ensure only request
firmware is skipped if it passed earlier.

Change-Id: I92920215aa9f47726c4470968ca804e1cee13468
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
Signed-off-by: Pranav Patel <pranavp@codeaurora.org>
2020-10-30 21:45:19 +05:30
Pradeep P V K
c807ca798f mtd: msm_qpic_nand: Add a check to read an ONFI parameter page
Add support to read an ONFI parameter page from the device on
QPIC 2.0 controllers.

Change-Id: I30e8696c17733dc745c6857c0dcb436764f229e2
Signed-off-by: Pradeep P V K <ppvk@codeaurora.org>
2020-10-30 07:47:40 -07:00
Sarthak Garg
9c6d556e10 mmc: core: Fix clk scaling deadlock with irqsave
Consider the following dump stack :

do_raw_spin_lock+0xf0
_raw_spin_lock_irqsave+0x80
mmc_request_done+0x48
sdhci_irq+0x954
__handle_irq_event_percpu+0x9c
handle_irq_event+0x60
handle_fasteoi_irq+0x140
__handle_domain_irq+0xc0
gic_handle_irq+0xcc
el1_irq+0x108
ktime_get+0xc0
mmc_cqe_clk_scaling_stop_busy+0x58
mmc_blk_cqe_complete_rq+0x138
mmc_blk_mq_complete+0x24
blk_done_softirq+0xe0

Here mmc_cqe_clk_scaling_stop_busy is being called from the soft irq
context and it acquires the clock_scaling lock.
Before it could unlock, a H/W irq gets triggered on the same core which
switches the context and starts execution but since lock is already held
in the softirq context, irq context ends up waiting for the same lock,
leading to a deadlock.

Use spin_lock_irqsave to avoid above explained deadlock.

Change-Id: I7684f4e349648414038cd6601cca58ac11b9409b
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
Signed-off-by: Ram Prakash Gupta <rampraka@codeaurora.org>
2020-10-30 18:10:53 +05:30
Manaf Meethalavalappu Pallikunhi
e831c3aa53 arm: defconfig: Enable TSENS driver for sdxlemur
Enable TSENS device driver for sdxlemur to monitor
different junction temperatures.

Change-Id: I2d130d3b4c9fe6f506e2704e67f9ba91a6f14d84
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2020-10-30 15:56:33 +05:30
Sayali Lokhande
804e7d5baa defconfig: holi: Enable Incremental FS as module
This change enables Incremental FS as module for holi.

Change-Id: Ie18a8877ed601197312adc3b6782d0b0e1f663d8
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2020-10-30 14:07:49 +05:30
qctecmdr
c19cc3d79e Merge "kernel: arch: Enable qcedev as gki module" 2020-10-30 01:02:18 -07:00
qctecmdr
1e8e6c8d2b Merge "icnss2: Send power save enter/exit via SMP2P" 2020-10-30 01:02:18 -07:00
qctecmdr
6665615cc3 Merge "msm: kgsl: Disable gpu_llc flags by default" 2020-10-30 01:02:18 -07:00
qctecmdr
43626c0ab3 Merge "f2fs: Fix double free issue for s_encoding" 2020-10-30 01:02:17 -07:00
Naman Padhiar
4ea02373bc icnss2: Avoid race between SOC WAKE REQ/RESP
There is a race between soc wake release in event queue
and soc wake request called from driver. Due to which
ref count is not updated properly and results in number
of soc wake release send to FW is more than number of
soc wake request. Fix it by atomically incrementing
ref count.

Change-Id: I1e134af8a1170d804aeaea53ea6bd288bbcb42b8
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2020-10-29 21:28:47 -07:00
Mahesh Kumar Sharma
0630ffe224 Bluetooth: Don't reserve TCS register address
Do not reserve TCS iomemory, Access TCS register
and remap it using devm_ioremap.

Change-Id: I21fef89af38ec3a5ad110947c1a5adf590c4f2d6
Signed-off-by: Mahesh Kumar Sharma <smahesh@codeaurora.org>
2020-10-29 20:39:07 -07:00
Blagovest Kolenichev
d9a7f5879a Merge android11-5.4.61+ (874de1d) into msm-5.4
* refs/heads/tmp-874de1d:
  ANDROID: GKI: enable CONFIG_CPU_FREQ_STAT and more thermal configs
  ANDROID: ABI: Update allowed list for QCOM
  ANDROID: sched: add restrict vendor hook to modify load balance behavior
  ANDROID: GKI: Update abi_gki_aarch64_oneplus
  ANDROID: scs: use vmapped shadow stacks by default
  ANDROID: ABI: update allowed list for QCOM
  UPSTREAM: sched/fair/util_est: Implement faster ramp-up EWMA on utilization increases
  ANDROID: GKI: Update abi_gki_aarch64_exynos
  ANDROID: kbuild: disable GCOV with CFI
  ANDROID: GKI: add built-in PCIE_DW_PLAT_EP
  ANDROID: PCI: dwc: export symbols for ep driver
  ANDROID: recordmcount: avoid STT_FILE as base for mcount offset relocation
  ANDROID: iommu: Enable CONFIG_IOMMU_IO_PGTABLE_ARMV7S
  BACKPORT: FROMLIST: iommu/io-pgtable-arm-v7s: Quad lvl1 pgtable for MediaTek
  BACKPORT: FROMLIST: iommu/io-pgtable-arm-v7s: Add cfg as a param in some macros
  BACKPORT: FROMLIST: iommu/io-pgtable-arm-v7s: Extend PA34 for MediaTek
  BACKPORT: FROMLIST: iommu/io-pgtable-arm-v7s: Use ias to check the valid iova in unmap
  ANDROID: ABI: Update allowed list for QCOM
  ANDROID: modules: fix suspicious rcu usage

 Conflicts:
	kernel/sched/fair.c
	kernel/sched/features.h

Change-Id: I5d8dc058a0aca2b90ca702f18f71f663af9774fc
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-10-29 15:36:09 -07:00
Blagovest Kolenichev
1eba98287b Merge android11-5.4.61+ (e17d9fc) into msm-5.4
* refs/heads/tmp-e17d9fc:
  ANDROID: GKI: Enable CONFIG_X86_X2APIC
  ANDROID: GKI: update xiaomi symbol list
  ANDROID: GKI: fix ABI breakage in module.h
  UPSTREAM: modules: inherit TAINT_PROPRIETARY_MODULE
  UPSTREAM: modules: return licensing information from find_symbol
  UPSTREAM: modules: rename the licence field in struct symsearch to license
  UPSTREAM: modules: unexport __module_address
  UPSTREAM: modules: unexport __module_text_address
  UPSTREAM: modules: mark each_symbol_section static
  UPSTREAM: modules: mark find_symbol static
  UPSTREAM: modules: mark ref_module static
  ANDROID: GKI: Update abi_gki_aarch64_exynos
  ANDROID: ABI: update allowed list for QCOM
  UPSTREAM: binder: fix UAF when releasing todo list

Change-Id: I6db85b4587d3b60f386c58fd6b1589746e9281c5
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
2020-10-29 10:35:10 -07:00