Commit graph

891,929 commits

Author SHA1 Message Date
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
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
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
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
qctecmdr
b20ec664b6 Merge "defconfig: sdxlemur: Enable CONFIG_QPNP_SMB5" 2020-10-29 10:12:28 -07:00
qctecmdr
365f0b4c06 Merge "input: qcom-hv-haptics: correct register values when toggling RC_CLK_CAL" 2020-10-29 10:12:28 -07:00
qctecmdr
489010dce7 Merge "mmc: cqhci: Port two trivial fixes in cqhci from earlier kernels" 2020-10-29 10:12:28 -07:00
qctecmdr
ab12fbd666 Merge "rtc: Disable alarm irq if alarm time is in the past" 2020-10-29 10:12:27 -07:00
qctecmdr
a7c4fa6f46 Merge "soc: qcom: Conditional compile page/slub minidumps" 2020-10-29 10:12:27 -07:00
qctecmdr
79e5a6f4c3 Merge "msm: ipa3: Enable dynamic switch between WDI2 and WDI3" 2020-10-29 10:12:27 -07:00
qctecmdr
fa744a0fbd Merge "iommu: arm-smmu: Fail device attach when SMR write fails" 2020-10-29 10:12:27 -07:00
qctecmdr
71c6027501 Merge "cpuidle: lpm-levels: Store per core next hrtimer wakeup" 2020-10-29 10:12:26 -07:00
Sayali Lokhande
9bc7ed61dc f2fs: Fix double free issue for s_encoding
In case of error in fsync data recovery during mount,
sb->s_encoding is freed but not set to NULL, resulting
in double free issue in f2fs_put_super during unmount.

Log: Object already free
[ 1447.382542] INFO: Allocated in kvmalloc_node+0x58/0x9c
   age=351740 cpu=7 pid=695
[ 1447.382544] kvmalloc_node+0x58/0x9c
[ 1447.382549] f2fs_build_node_manager+0x244/0x4f0
[ 1447.382554] f2fs_fill_super+0x14f4/0x1c04
[ 1447.382557] mount_bdev+0x178/0x1d8
[ 1447.382558] f2fs_mount+0x18/0x24
[ 1447.382562] legacy_get_tree+0x4c/0xac
[ 1447.382563] vfs_get_tree+0x4c/0x118
[ 1447.382566] do_mount+0x678/0xcc4
[ 1447.382568] ksys_mount+0x98/0xdc
<>
[ 1447.382580] INFO: Freed in kvfree+0x38/0x44
  age=16 cpu=7 pid=1
[ 1447.382582] kvfree+0x38/0x44
[ 1447.382584] f2fs_destroy_node_manager+0x2f4/0x38c
[ 1447.382585] f2fs_put_super+0x198/0x2b4
[ 1447.382588] generic_shutdown_super+0x8c/0x140
[ 1447.382589] kill_block_super+0x20/0x50
[ 1447.382591] kill_f2fs_super+0xc0/0x108
[ 1447.382593] deactivate_locked_super+0x78/0x11c
[ 1447.382595] deactivate_super+0x80/0xa4
[ 1447.382596] cleanup_mnt+0x11c/0x158
[ 1447.382598] __cleanup_mnt+0x14/0x20

This change sets s_encoding to NULL after its freed
to avoid double free issue.

Change-Id: I017ba5386e76c81d7e545d3eefc2ed02dc6522cc
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2020-10-29 19:08:00 +05:30
Akshay Pandit
1491577868 uapi: ipa: Support uc header proc ctx for DSCP insertion
Add UC header proc ctx support for inserting DSCP in layer 3 header.

Change-Id: I0912d11982bc465183b4605b0c3035e428a42608
Signed-off-by: Akshay Pandit <pandit@codeaurora.org>
2020-10-29 15:59:35 +05:30
Rohan Sethi
4cc9960429 msm: kgsl: Disable gpu_llc flags by default
Set default value of flags gpu_llc_slice_enable and
gpuhtw_llc_slice_enable to false and disable change
via sysfs nodes.

Change-Id: I1446a04b25a793cdebf5428de2e84870a6b33b7c
Signed-off-by: Rohan Sethi <rohsethi@codeaurora.org>
2020-10-29 12:07:53 +05:30
Mayank Grover
3c23fa3a9a qcom: qcom_ipcc: request ipcc irq IRQF_NO_SUSPEND
Request ipcc irq with irqf no suspend flag.
This is required as to handle IPCC interrupt,
during suspend phase.

Change-Id: I5c34c5d446bd2cc2187550455071f35637a2c4b3
Signed-off-by: Mayank Grover <groverm@codeaurora.org>
2020-10-29 12:00:30 +05:30
Naman Padhiar
70e9a936d4 icnss2: Send power save enter/exit via SMP2P
Send power save enter/exit via SMP2P instead of QMI.

Change-Id: I8aeeab3efd2f7c39e4e7ac134af98c58827ff6d5
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2020-10-28 23:02:22 -07:00
Sahitya Tummala
03b72b1544 f2fs: fix indefinite loop scanning for free nid
If the sbi->ckpt->next_free_nid is not NAT block aligned and if there
are free nids in that NAT block between the start of the block and
next_free_nid, then those free nids will not be scanned in scan_nat_page().
This results into mismatch between nm_i->available_nids and the sum of
nm_i->free_nid_count of all NAT blocks scanned. And nm_i->available_nids
will always be greater than the sum of free nids in all the blocks.
Under this condition, if we use all the currently scanned free nids,
then it will loop forever in f2fs_alloc_nid() as nm_i->available_nids
is still not zero but nm_i->free_nid_count of that partially scanned
NAT block is zero.

Fix this to align the nm_i->next_scan_nid to the first nid of the
corresponding NAT block.

Change-Id: Ib979f5529a531ee6f4960eaadebc4d7340317bf5
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2020-10-28 22:05:07 -07:00
Sai Harshini Nimmala
f89f67ece0 soc/qcom/hyp_core_ctl: Track VPM Group state for VM
VM has to go into suspend state outside of use case boundary. Delay in
transitioning to system suspend or spurious wake-ups after the use case
is completed will result in a system regression.
Adding a mechanism to track both the scenarios of delay in system
suspend and spurious wake-ups of the VM by checking the VPM Group state
associated with the VM.

Change-Id: I2a5990989033ffd3cc57ae1cba93b8ba6b63a3c7
Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
2020-10-28 20:58:26 -07:00
Abir Ghosh
3511d06529 qbt_handler: Memset userspace struct to zero
Explicitly memset struct to zero before sending
to userspace. This is to prevent padded bytes
from possibly leaking kernel memory contents to
userspace.

Change-Id: Id3e873164430c34195344884b2899e61aa060dfc
Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
2020-10-28 07:33:00 -07:00
Sarthak Garg
d3028e1ef5 mmc: cqhci: Port two trivial fixes in cqhci from earlier kernels
This is a squash of below two minor fixes:

8fec754f57a8 mmc: cmdq: trigger get queue status after dcmd
327fd3225911 mmc: cqhci: CQ Register changes for v5.0 onwards.

Change-Id: I1bb6cae5a647c4ea189a992d5ace7b6c1e3a1c87
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
2020-10-28 18:48:24 +05:30
Yuanfang Zhang
837d016628 coresight: tmc: fix spinlock bad magic/usb_qdss_close
Modify the sequence of ETR disable,drvdata->mode is set to
CS_MODE_DISABLE before calling usb_qdss_close().

Change-Id: I575867cee95f4db5ba155a2619ab1eca954d6387
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
2020-10-28 17:49:09 +08:00
Guixiong Wei
381424fcbb rtc: Disable alarm irq if alarm time is in the past
If device is boot up by rtc alarm, the alarm irq will still be
enabled and the alarm time is smaller than current rtc time before
any alarm is set or canceled. If device is powered off now, it will
boot up automatically as the alarm irq is enabled.

So disable alarm irq if alarm is enabled and alarm time is in the
past.

Change-Id: I53dc7cdb1fa7c56eea07ed01d1f6cb63f0bb8a8d
Signed-off-by: Guixiong Wei <guixiong@codeaurora.org>
2020-10-27 20:43:15 -07:00
Tao,Zhang
4700692ee8 coresight: tmc: Configure cti trigger number in device tree
Configure flush and reset cti trigger number in device tree.
Replace configuring cti trigger number by hard code since some
platforms don't have same cti trigger number.

Change-Id: Ib26802b3bd3449566954752b100d6ea188e98e13
Signed-off-by: Tao,Zhang <taozha@codeaurora.org>
2020-10-28 11:06:55 +08:00