Commit graph

892,089 commits

Author SHA1 Message Date
qctecmdr
c8e2ca976a Merge "cnss2: Handle resume request while suspend in progress" 2020-11-11 23:52:34 -08:00
qctecmdr
eeb4692062 Merge "arm64: defconfig: Enable CONFIG_ARM_SMMU_POWER_ON_ALWAYS for GKI targets" 2020-11-11 23:52:34 -08:00
qctecmdr
c64a5ca35d Merge "arm64: defconfig: Disable serial console defconfig" 2020-11-11 23:52:33 -08:00
qctecmdr
963cc1176a Merge "f2fs: should avoid inode eviction in synchronous path" 2020-11-11 23:52:32 -08:00
qctecmdr
97bdb3c282 Merge "defconfig: Enable new download/restart mode driver on sdxlemur" 2020-11-11 23:52:31 -08:00
qctecmdr
5491eb5827 Merge "msm: kgsl: Compare pid pointer instead of TGID for a new process" 2020-11-11 23:52:31 -08:00
qctecmdr
65cd45d458 Merge "defconfig: sdxlemur: Enable QG driver" 2020-11-11 23:52:30 -08:00
qctecmdr
59ba700363 Merge "mm: do not shrink pages marked for reclaim by MADV_FREE" 2020-11-11 23:35:26 -08:00
qctecmdr
77c1bc11c1 Merge "power: supply: qti_battery_charger: run usb_type_work during probe" 2020-11-11 23:35:26 -08:00
qctecmdr
fe8c094f8c Merge "dwc3: Don't perform set xfer resource from EP_OP_CONFIG for GSI endpoint" 2020-11-11 23:35:26 -08:00
qctecmdr
d2deb0f365 Merge "msm: kgsl: Fill a6xx crash dumper buffer with known pattern" 2020-11-11 23:35:25 -08:00
qctecmdr
6d1978e749 Merge "mm/oom_kill: defer panic_on_oom for a timeout" 2020-11-11 23:35:25 -08:00
qctecmdr
83a4d55aad Merge "defconfig: msm: Enable IPC logging" 2020-11-11 23:35:25 -08:00
qctecmdr
cb703de0e3 Merge "mmc: core: Add IPC logging config for mmc" 2020-11-11 23:35:24 -08:00
qctecmdr
e794c68d5c Merge "mmc: Add IPC tracing events for eMMC and SD card" 2020-11-11 23:35:24 -08:00
qctecmdr
97956dc079 Merge "input: qcom-hv-haptics: add support to operate from non-HBoost regulator" 2020-11-11 23:35:24 -08:00
qctecmdr
b90e4c8ecb Merge "soc: qcom: socinfo: Add supprot for SDXNIGHTJAR soc-id" 2020-11-11 23:35:24 -08:00
qctecmdr
f2fc00f408 Merge "defconfig: Added PM configs for sdxlemur" 2020-11-11 23:35:23 -08:00
qctecmdr
4fc723f7af Merge "msm: pcie: support EQ preset request vector configuration" 2020-11-10 14:09:14 -08:00
qctecmdr
295a7cb934 Merge "pinctrl: qcom: spmi-gpio: Add support for PMD9650" 2020-11-09 23:34:44 -08:00
qctecmdr
67665e9ea4 Merge "power: smblite-lib/smb5-lib: Fix partner registration for microusb" 2020-11-09 23:34:43 -08:00
qctecmdr
7f439aa4a9 Merge "msm: ep_pcie: Clear PERST_RAW_RESET_STATUS after link training" 2020-11-09 23:34:43 -08:00
qctecmdr
fb456054b8 Merge "input: touchscreen: Remove linking across different modules" 2020-11-09 23:34:43 -08:00
qctecmdr
c560170820 Merge "defconfig: enable rimps plh interface" 2020-11-09 23:34:42 -08:00
qctecmdr
92efb2ac5a Merge "Correct the FM port numbers for Chk 3.x" 2020-11-09 09:59:53 -08:00
qctecmdr
259cc85af8 Merge "msm: kgsl: Do not fail after drawobj is added to context queue" 2020-11-09 09:59:52 -08:00
qctecmdr
a3b4c5531f Merge "msm: kgsl: Add support for voting vdd parent supply voltage" 2020-11-09 09:59:52 -08:00
qctecmdr
96509a115e Merge "rpmsg: rpm-smd: Add null check for irq_chip affinity callback" 2020-11-09 09:59:51 -08:00
Mayank Rana
940ae309aa dwc3: Don't perform set xfer resource from EP_OP_CONFIG for GSI endpoint
By default when ep0 gets enable, current code SET XFER resource command
for all USB endpoints excluding USB GSI endpoint. SET XFER resource
command shall fail if all resources are allocated. All allocated transfer
resources are resets in controller when DEPXFERCFG cmd is send with ep0
with value as 2 OR when controller is being peformed power on reset or
being restarted (i.e. device initiated disconnect and reconnect).
Consider case as below:
a. USB enumerated
b. USB bus suspend
c. USB bus reset
d. USB connect done
e. USB set_config() (set_alt())
f. Reenable all USB endpoint and resize tx fifo for it except ep0 and ep1
g. USB GSI endpoint operation (EP_OP_CONFIG) is sending SET XFER RESOURCE
which is failing as all resources are already allocated.

ep0 is disabled while clearing run stop and re-enabled when setting run
stop. For USB device mode we know that ep0 enabling is prerequisite before
setting run stop. Hence let ep0 enabling takes care of reallocating
transfer resources for all endpoint including USB GSI endpoints.

Change-Id: Ic5ab7558fadc636aaf255d62f91abf7842460659
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-11-09 09:43:34 -08:00
qctecmdr
ca7e73792c Merge "f2fs: fix a race condition between f2fs_write_end_io and f2fs_del_fsync_node_entry" 2020-11-09 04:48:55 -08:00
qctecmdr
30db81ccfa Merge "ANDROID: scsi: ufs: Handle double release of clocks" 2020-11-09 04:48:54 -08:00
qctecmdr
014cedbc8b Merge "gki: Adding GKI_VERSION to fetch corresponding images" 2020-11-09 04:48:54 -08:00
Jaegeuk Kim
971d48f9e9 f2fs: should avoid inode eviction in synchronous path
https://bugzilla.kernel.org/show_bug.cgi?id=208565

PID: 257    TASK: ecdd0000  CPU: 0   COMMAND: "init"
  #0 [<c0b420ec>] (__schedule) from [<c0b423c8>]
  #1 [<c0b423c8>] (schedule) from [<c0b459d4>]
  #2 [<c0b459d4>] (rwsem_down_read_failed) from [<c0b44fa0>]
  #3 [<c0b44fa0>] (down_read) from [<c044233c>]
  #4 [<c044233c>] (f2fs_truncate_blocks) from [<c0442890>]
  #5 [<c0442890>] (f2fs_truncate) from [<c044d408>]
  #6 [<c044d408>] (f2fs_evict_inode) from [<c030be18>]
  #7 [<c030be18>] (evict) from [<c030a558>]
  #8 [<c030a558>] (iput) from [<c047c600>]
  #9 [<c047c600>] (f2fs_sync_node_pages) from [<c0465414>]
 #10 [<c0465414>] (f2fs_write_checkpoint) from [<c04575f4>]
 #11 [<c04575f4>] (f2fs_sync_fs) from [<c0441918>]
 #12 [<c0441918>] (f2fs_do_sync_file) from [<c0441098>]
 #13 [<c0441098>] (f2fs_sync_file) from [<c0323fa0>]
 #14 [<c0323fa0>] (vfs_fsync_range) from [<c0324294>]
 #15 [<c0324294>] (do_fsync) from [<c0324014>]
 #16 [<c0324014>] (sys_fsync) from [<c0108bc0>]

This can be caused by flush_dirty_inode() in f2fs_sync_node_pages() where
iput() requires f2fs_lock_op() again resulting in livelock.

Change-Id: I5d7ef35a21cdb074e7bf5288371f579bfc0eb19d
Reported-by: Zhiguo Niu <Zhiguo.Niu@unisoc.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Git-commit: b0f3b87fb3abc42c81d76c6c5795f26dbdb2f04b
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2020-11-09 14:58:02 +05:30
Raghavendra Kakarla
20a7398ee0 rpmsg: rpm-smd: Add null check for irq_chip affinity callback
Add the null checks for irq_chip callback while calling
affinity call of glink interrupt.

Change-Id: I62cec6ade0233094ef9a821185677b703d3ba1a3
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2020-11-09 14:45:58 +05:30
Prakash Gupta
b2c3e3287a mm/oom_kill: defer panic_on_oom for a timeout
It takes sometime for complete memory reclaimed by oom kills to be
available, specifically ion allocations. This either require FDs to be
closed which is not covered by oom reaper or released by another process
not being kiled. So defer panic_on_oom to avoid panic trigger before memory
become available.

Change-Id: I9f3312c780e4d8444f58de5f781c9c8dfec9b2c7
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
2020-11-09 12:48:44 +05:30
Tushar Nimkar
c05285f9c1 defconfig: Added PM configs for sdxlemur
This change adds power config changes for sdxlemur.

Change-Id: Icb09b5361cfda42c18c316e0a0d79aeee3d18b97
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2020-11-09 10:33:05 +05:30
Prakash Gupta
a25275e2bd mm: do not shrink pages marked for reclaim by MADV_FREE
MADV_FREE clears pte dirty bit and then marks the page lazyfree (clear
SwapBacked). PPR increments ISOLATE_FILES count, then isolates page and
invokes a reclaim. Inbetween if this lazyfreed page is touched by user then
it becomes dirty.  PPR in shrink_page_list in try_to_unmap finds the page
dirty, marks it back as PageSwapBacked and skips reclaim. As PageSwapBacked
set, PPR identifies the page as anon and decrements ISOLATED_ANON, thus
creating isolated count mismatch.

This results in too_many_isolated() check causing delay in reclaim. Skip
reclaiming lazyfreed pages in PPR path.

Change-Id: I87223c4fa492c5e373ac48f116384b5de03da9fa
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2020-11-09 09:04:50 +05:30
Fenglin Wu
8faff2497b power: supply: qti_battery_charger: run usb_type_work during probe
Currently, updating USB type only depends on USB status change
notification from the charger firmware. During a reboot with USB
connected, there is a chance that a USB power supply notification would
have been sent by the charger firmware little earlier even before the
battery charger driver was ready to handle it. Hence it would've got
missed and USB type is not updated properly. Fix it by scheduling
usb_type_work once the driver probes.

Change-Id: I0ae482e90a76a0b2128fcc45561adb77a2ca017c
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-11-09 07:57:34 +08:00
Tony Truong
b9347c809b msm: pcie: support EQ preset request vector configuration
Provide the option to configure the request of preset during
the initial part of the equalization master phase.

Change-Id: Ib33e84b3d333bc7c7275dd7108ef37067d92abbd
Signed-off-by: Tony Truong <truong@codeaurora.org>
2020-11-06 10:34:18 -08:00
Siddartha Mohanadoss
e7ff4a4ecf msm: ep_pcie: Clear PERST_RAW_RESET_STATUS after link training
Clear AOSS_CC_RESET_STATUS::PERST_RAW_RESET_STATUS
after PCIe link training in HLOS. Failure to clear it in
HLOS will result in PBL to consider it a controller reset
pending state during warm reset and initiate a controller
reset even if the PCIe link is up.

Change-Id: I3e5b89181be29062f79e4c5ace1863124367c72c
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2020-11-06 09:23:23 -08:00
Siddartha Mohanadoss
b3b4878e49 msm: ep_pcie: Add support to control pipe clock mux
Toggle between tcxo and phy pipe clock as part of
LPM sequence. Switch the source to XO before disabling
PCIe gdsc to avoid PCIe gdsc to be stuck until source
is switched to XO.

Change-Id: Ie2044da622962ff316319e7891974621e5c0ee92
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2020-11-06 09:23:17 -08:00
Kavya Nunna
a00317108c power: smblite-lib/smb5-lib: Fix partner registration for microusb
Typec attach_detach handler gets executed which is not
expected for micro-usb design. Return from type-C attach-detach
handler for micro-usb stack.

Change-Id: Ia7bfe6b407757663be4f7d143ccd88a60079657b
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
Signed-off-by: Ashish Chavan <ashichav@codeaurora.org>
2020-11-06 10:24:04 +05:30
Kavya Nunna
325d5f396f power: smblite-lib/smb5-lib: Add partner registration for microusb otg
Add partner registration for otg to provide UX. USB_HAL expects
power_role and data_role to be updated for the notification to UI.
Update power_role and data_role for microusb otg.

Change-Id: I741df638e18a400c862845bddd5bb19130adecd7
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
Signed-off-by: Ashish Chavan <ashichav@codeaurora.org>
2020-11-06 10:23:49 +05:30
Isaac J. Manjarres
81bccbcba8 arm64: defconfig: Enable CONFIG_ARM_SMMU_POWER_ON_ALWAYS for GKI targets
Enable CONFIG_ARM_SMMU_POWER_ON_ALWAYS for all GKI targets, and only
in the GKI configuration. This feature should not be enabled in
the QGKI/production configurations.

Change-Id: Ifa16169b2595408d4f5c2142f6fddb9aa941eb2a
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-11-05 15:40:43 -08:00
Isaac J. Manjarres
8ffa6450ba iommu/arm-smmu: Add support for not removing SMMU power votes
The SMMU driver will vote for the resources it needs before performing
a particular operation, and will remove its votes after the operation
is complete.

When power resources are not currently enabled by other drivers,
the SMMU driver's requests to enable its devices' power resources
go through the slow paths where the hardware power resources
get turned on. So, in a scenario where the SMMU driver is constantly
performing work and having to toggle the state of the power resources,
the SMMU driver operations take more time.

On GKI, the upstream implementation of the IOMMU page table management
code is used, which doesn't have the optimizations we have downstream,
which improve the performance of the SMMU driver when unmapping memory.

The GPU can go into slumber if it is not active, and can relinquish its
votes for the power resources that the SMMU driver votes for when
unmapping memory. This requires the SMMU driver to take the slowpath
of enabling all of these power resources and then disabling them
on every call to unmap memory, which can incur a considerable amount
of delay.

This delay, along with the usage of the unoptimized IOMMU page table
management code in GKI results in slow unmap calls.

Thus, add support for the SMMU driver to never remove its power votes,
so that it doesn't have to spend time voting for power resources while
it is operating.

Change-Id: Id93aafef18f69e377391875e2a7b340b34b4b3e8
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-11-05 15:36:09 -08:00
Melody Olvera
1a9ffc5bc4 defconfig: Enable new download/restart mode driver on sdxlemur
Enable download/restart mode driver on sdxlemur

Change-Id: I469cb46fbf2729fcececaadfefb7119e03dc250a
Signed-off-by: Melody Olvera <molvera@codeaurora.org>
2020-11-05 12:04:43 -08:00
Subbaraman Narayanamurthy
f72737de3c defconfig: sdxlemur: Enable QG driver
Add CONFIG_QPNP_QG to enable the QG device present on PM7250B
that can be used on sdxlemur platforms.

Also, add CONFIG_TYPEC and CONFIG_QCOM_POWER_SUPPLY to compile
QG and SMB5 drivers properly.

Change-Id: Ibb8230ccb1366b7f2a04e2ac77b043ece7f463dd
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-11-05 11:40:26 -08:00
Siddartha Mohanadoss
77bd2d1044 msm: ep_pcie: add PCIe endpoint driver snapshot
Snapshot of PCIe endpoint driver as of msm-4.14.

'commit <adeff59> (""drivers: clk: msm:
fix compilation for non DEBUG_FS build"")'.

The following changes were done:
-Replace msm_bus driver with interconnect framework.
-Remove iommu deprecated API's.
-Fix checkpatch warnings on usage of module param.
-Fix several checkpatch warnings.

Change-Id: I04ee8f5d5802af0aa0cdd607a79c91e3eca7f194
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2020-11-05 09:50:23 -08:00
Isaac J. Manjarres
be81ead736 Revert "iommu/arm-smmu: Leave power resources enabled across unmap and sync ops"
This reverts commit fc6d479bac4c756359388647d45f39f08d0c8534. The
functionality offered by this change was not implemented correctly,
so revert it in favor of a different way of addressing the issue
that was supposed to be fixed.

Change-Id: Id061372026dea2960758c4dad0a5e37c2604576e
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-11-05 09:21:13 -08:00
Hareesh Gundu
bfdf436e78 msm: kgsl: Fill a6xx crash dumper buffer with known pattern
Sometimes crashdumper can timeout due to  unresponsive hang
scenarios. Hence fill the crash dumper with known pattern to
know the progress of crashdumper before it gets timed out.

Change-Id: I757fa345b4d7db7d7012ff6501b169a562f9b9c6
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2020-11-05 20:58:56 +05:30