Commit graph

892,494 commits

Author SHA1 Message Date
qctecmdr
93e8db43d7 Merge "mem-offline: increment the NR_ISOLATED_ANON stat properly" 2020-11-27 15:17:16 -08:00
qctecmdr
3c3949bc73 Merge "spi: spi-geni-msm: Return from resume without Touching Resources" 2020-11-27 15:17:16 -08:00
qctecmdr
caf87fb20b Merge "coresight-tmc-etr: Reuse the sysfs buf" 2020-11-27 15:17:15 -08:00
qctecmdr
22fe037afd Merge "power: smb1351: Remove parallel support for smb1351" 2020-11-27 15:17:15 -08:00
qctecmdr
192e6256eb Merge "input: qpnp-power-on: Add KPDPWR software debounce for PON_HLOS" 2020-11-27 15:17:15 -08:00
qctecmdr
4f677ecb1b Merge "msm: kgsl: Simplify GBIF halt sequence for stall-on-fault case" 2020-11-27 15:17:14 -08:00
qctecmdr
5cd90ec00f Merge "f2fs: prepare a waiter before entering io_schedule" 2020-11-27 11:18:50 -08:00
qctecmdr
c55f30b9e1 Merge "Bluetooth: Fix bluetooth enable failure for sdxlemur" 2020-11-27 11:18:49 -08:00
qctecmdr
7cd71280fa Merge "clk: qcom: gpucc: Add Support for GPUCC clock driver for YUPIK" 2020-11-27 11:18:49 -08:00
qctecmdr
7a220acaac Merge "mmc: sdhci-msm: Add dbg_state sysfs" 2020-11-27 11:18:49 -08:00
qctecmdr
7347dcaedb Merge "rpmsg: qcom_smd: allow smd create device if remote state is closing" 2020-11-27 11:18:48 -08:00
Kiran Gunda
9a93cf3280 input: qpnp-power-on: Add KPDPWR software debounce for PON_HLOS
The PON_HLOS module does not have the PON_DEBOUNCE_CTL register
to read the debounce delay configured for KPDPWR debounce.
This register is present in PON_PBS peripheral. Due to this the
software debounce control logic does not work as expected. To fix
this add support to read the PON_PBS peripheral from PON_HLOS
module by adding PON_PBS register as a second SPMI register base
in device tree node.

Change-Id: I15737a3dc6e8c99cd21531685c41ec1b2752b2ef
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2020-11-26 20:21:19 -08:00
Deepak Kumar Singh
694313785a rpmsg: qcom_smd: allow smd create device if remote state is closing
Some remote edge initial rx channel state is set to CLOSING, in this
scenario, allow creation of smd device for this edge.

Change-Id: I5937b8f2451630c9ecbe8627ab8817a4ce00e673
Signed-off-by: Suresh Kumar Allam <allamsuresh@codeaurora.org>
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2020-11-26 22:23:59 +05:30
Charan Teja Reddy
3efde2bdaa mem-offline: increment the NR_ISOLATED_ANON stat properly
Increment NR_ISOLATED_ANON when isolate a page so that the same is
decremented when the page migration is successful or when adding pages
back to the lru.

Change-Id: I6879c0029342560496b79d649a77283c767ab08e
Fixes: aa3fa08df4 ("mem-offline: improve the effective utilization of movable zone")
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2020-11-26 05:53:11 -08:00
qctecmdr
efc64e396a Merge "interconnect: qcom: Add SM8150 interconnect provider driver" 2020-11-26 05:30:42 -08:00
qctecmdr
2c92659f9e Merge "scsi: ufs: Don't disable core_clk_unipro if the link is active" 2020-11-26 05:30:42 -08:00
qctecmdr
7952df3579 Merge "usb: dwc3: Revert Add support for nominal elastic buffer" 2020-11-26 05:30:42 -08:00
qctecmdr
8dd308c9f8 Merge "icnss2: Vote for chain1 regulators if RD card is 2x2" 2020-11-26 05:30:41 -08:00
qctecmdr
d994764fca Merge "platform: msm-geni-se: Correct unit for ICC optimization" 2020-11-26 05:30:41 -08:00
qctecmdr
77625e5815 Merge "PM / devfreq: export functions to allow freeing of pmu counters" 2020-11-26 05:30:41 -08:00
qctecmdr
6586778045 Merge "interconnect: qcom: Fix the issue with uninitialized variable for Holi" 2020-11-26 00:33:36 -08:00
qctecmdr
153234f920 Merge "iommu/dma: Fix cache maintenance in iommu_dma_map_sg()" 2020-11-26 00:33:36 -08:00
qctecmdr
d6613611d1 Merge "icc: dt-bindings: Update endpoint IDs for interconnects for YUPIK" 2020-11-26 00:33:35 -08:00
Mukesh Kumar Savaliya
d616f4060d spi: spi-geni-msm: Return from resume without Touching Resources
Return the captured value during TX and RX config from API
dmaengine_slave_config().

Also For LE VM case, do not touch resources like clocks, ICB vote,
GPIO etc. LE VM doesn't need resources to be controlled in TVM for
now till we have SOC infra support.

Change-Id: Iaa74b1b12a53da5764b1766188075349f3c42db8
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
2020-11-26 02:01:27 +05:30
Santosh Mardi
2055929c91 PM / devfreq: export functions to allow freeing of pmu counters
Memlat and compute governors are made immutable to avoid governor
switch at run time as the devices using these governors are tightly
coupled with hardware features. These governors allocate pmu counters
to count various events used in the algorithm. These counters are
allocated exclusively for algorithm's use.

This leaves limited counters available for other uses in the system
such as profiling in user space using perf tool. Add and export a
function in devfreq memlat governor to remove immutable flag to allow
governor switch, which in turn can free pmu counters.

Similarly add and export a function in rimps_memlat driver to
free pmu counters.

The intended use of these functions is to be called by test modules
to allow freeing of pmu counters at runtime.

Change-Id: I243a3201368d5a82aeaf820e775cdc1aecdfea07
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2020-11-25 05:54:03 -08:00
Santosh Mardi
3e84ab94dd drivers: soc: qcom: rimps_log: remove unused character while printing
Discard character printing in ipc log buf when get_next_logbuf()
returns count value less than the size argument.

Change-Id: I0ba388400c76c16da423a2ccb67d961ed31e87b4
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2020-11-25 05:53:58 -08:00
Santosh Mardi
69baed9a80 drivers: soc: qcom: rimps_memlat: update error checks
set_event will return NULL if event_id is not valid, the
caller is proceeding further without proper check for NULL.
Update pmu event setup function to check pevent for NULL.

From the RIMPS perspective, pmu counter IDs 0 and 1 correspond
to 64bit cycle counter with ID 0 representing low 32 bit and
ID 1 representing high 32bit, while the counter IDs from 2 to 7
correspond to remaining PMUs. At the time of storing pmu counter
values to RIMPS shared memory, the function store_event_val()
stores both low and high 32bit values of cycle counter when ID 0 is
passed as argument to pmu index, hence no need to handle ID 1
separately. Update logic accordingly to drop check for ID 1.

Change-Id: Idd345c825572710753f18306f565043347921216
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2020-11-25 05:53:50 -08:00
Kavya Nunna
abf26a22ad power: smb1351: Remove parallel support for smb1351
Remove parallel support for smb1351, as it is not
required for sdxnightjar.

Change-Id: I4b6b39fed9871559a4d8a200b1de9fb8784ead5e
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2020-11-25 18:51:54 +05:30
Odelu Kukatla
f6ef5e1ced icc: dt-bindings: Update endpoint IDs for interconnects for YUPIK
Update master and slave ID constants for all Qualcomm Technologies, Inc.
Yupik interconnect providers which consumers can use to set bandwidth
constraints and find paths in the NoC (Network-On-Chip) topology.

Change-Id: I0deffed7d8c08d5921cd54b396fa7daad673550e
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-11-25 03:02:40 -08:00
Rohith Kollalsi
c711b9454a usb: dwc3: Revert Add support for nominal elastic buffer
Commit 3bb697514e ("usb: dwc3: Add support for nominal
elastic buffer") breaks working of current 5.4 kernel
based targets by clearing elastic buffer which is not
expected. Hence revert the change.

Change-Id: I3a492289eea1cb728c2e16ea1b991862d2219bbe
Signed-off-by: Rohith Kollalsi <rkollals@codeaurora.org>
2020-11-25 15:53:34 +05:30
qctecmdr
dd05986c8b Merge "drm/bridge: lt9611uxc: fix a crash issue for hpd support" 2020-11-24 22:12:52 -08:00
qctecmdr
45ba2c2e03 Merge "soc: qcom: Change the way to locate log_buf_len" 2020-11-24 22:12:52 -08:00
qctecmdr
a0d74020c7 Merge "mmc: sdhci-msm: Add err_stat's in CQE path" 2020-11-24 22:12:51 -08:00
Ziqi Chen
b6322f77e6 scsi: ufs: Don't disable core_clk_unipro if the link is active
If we want to disable clocks but still keep the link active, both
ref_clk and core_clk_unipro should be skipped.

Commit 284fa080cb5f ("scsi: ufs: fix broken hibern8_on_idle sysfs
nodes") is the original change from msm-4.14. We pick it up to msm-5.4
due to upstream missed this change. To follow GKI policy on 5.4, we
simplifed it and kept parameters name to avoid breaking ABI.

Change-Id: I5f86775c150e495322d14ec57ebf76a710257931
Signed-off-by: Ziqi Chen <ziqichen@codeaurora.org>
2020-11-25 11:50:34 +08:00
Zijun Hu
5ed662971c Bluetooth: Fix bluetooth enable failure for sdxlemur
it will rarely causes bluetooth enable failure due to
enable already enabled clock, so take this scenario as
warning intead of error.

CRs-Fixed: 2824381
Change-Id: I8e52ff659787fa805469ed808643ef281aa6750d
Signed-off-by: Zijun Hu <zijuhu@codeaurora.org>
2020-11-24 18:18:17 -08:00
qctecmdr
e8b3c55035 Merge "mm: page_owner: add pid, allocated time in page owner dump" 2020-11-24 12:44:43 -08:00
qctecmdr
2d133aadb4 Merge "soc: qcom: Fix smcinvoke_obj->fd assignment" 2020-11-24 12:44:43 -08:00
qctecmdr
5cf878ed9f Merge "cnss2: Increase mhi timeout to 30 sec for perf builds" 2020-11-24 12:44:42 -08:00
qctecmdr
d0d989d95a Merge "fsa4480: Update bits for switch ctl in reg notifier" 2020-11-24 09:02:36 -08:00
qctecmdr
6f9cdf8941 Merge "power: smblite: Add smblite-reg header" 2020-11-24 09:02:36 -08:00
Mao Jinlong
798f4b0b16 coresight-tmc-etr: Reuse the sysfs buf
Reuse the sysfs buf when it is not NULL.

Change-Id: I4fe62e2bb645f1ed4eced4f9888a84da8754574d
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
2020-11-24 22:33:04 +08:00
qctecmdr
45fdb4a9f8 Merge "lpm-levels: Disable RIMPS timer based PLL/RAIL feature timer" 2020-11-24 05:19:04 -08:00
qctecmdr
67946f122f Merge "mm: slub: avoid return code from slab_sysfs_init if debugfs is off" 2020-11-24 05:19:04 -08:00
qctecmdr
f4a66ea800 Merge "mm: slub: add type casting in alloc_trace_locations to avoid build warning" 2020-11-24 05:19:03 -08:00
qctecmdr
63a6377aa4 Merge "usb: gadget: f_accessory: Fix check for dev->disconnected" 2020-11-24 05:19:03 -08:00
Mayank Grover
169645d9cc soc: qcom: Change the way to locate log_buf_len
Use the exported function instead of kallsyms_lookup to get
log_buf size, this can save a lot of time during boot up.

Change-Id: I99fe49e9f014c0a4bb16162d836c38e31236e8ea
Signed-off-by: Mayank Grover <groverm@codeaurora.org>
2020-11-24 15:20:21 +05:30
Jagadeesh Kona
0d2f59928c clk: qcom: gpucc: Add Support for GPUCC clock driver for YUPIK
Add Graphics clock controller driver for the GPU clients to be
able to control clocks.

Change-Id: I42cc7ba81c7b1dca8fd62979a0fd4a0d620eca70
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-11-24 15:19:15 +05:30
Jagadeesh Kona
a19f293c81 clk: qcom: EXPORT lucid and zonda pll configure functions
PLL configuration functions can be used by clock drivers
in probe functon to bringup the PLL, so export the same in
order for clock drivers to be compiled as modules.

Change-Id: I655cbec391f1225851d4bda4e3c0613e0d784918
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-11-24 15:19:15 +05:30
Zhao, Yuan
d184461091 drm/bridge: lt9611uxc: fix a crash issue for hpd support
IRQ workqueue handler should be initialized before irq register,
or that when irq was triggered, could lead a crash.

Change-Id: If5551f622ae58a75ae655d4752bb397af0a00f98
Signed-off-by: Zhao, Yuan <yzhao@codeaurora.org>
2020-11-24 01:39:58 -08:00
Jaegeuk Kim
16df0193d6 f2fs: prepare a waiter before entering io_schedule
This is to avoid sleep() in the waiter thread.

[   20.157753] ------------[ cut here ]------------
[   20.158393] do not call blocking ops when !TASK_RUNNING; state=2 set at [<0000000096354225>] prepare_to_wait+0xcd/0x430
[   20.159858] WARNING: CPU: 1 PID: 1152 at kernel/sched/core.c:7142 __might_sleep+0x149/0x1a0
...
[   20.176110]  __submit_merged_write_cond+0x191/0x310
[   20.176739]  f2fs_submit_merged_write+0x18/0x20
[   20.177323]  f2fs_wait_on_all_pages+0x269/0x2d0
[   20.177899]  ? block_operations+0x980/0x980
[   20.178441]  ? __kasan_check_read+0x11/0x20
[   20.178975]  ? finish_wait+0x260/0x260
[   20.179488]  ? percpu_counter_set+0x147/0x230
[   20.180049]  do_checkpoint+0x1757/0x2a50
[   20.180558]  f2fs_write_checkpoint+0x840/0xaf0
[   20.181126]  f2fs_sync_fs+0x287/0x4a0.

Change-Id: I8ec83957172abca950945cafa6c4311d8ec08a59
Reported-by: Eric Biggers <ebiggers@kernel.org>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Git-commit: 828add774f0d2bf930cdeca6c982c1fbcdd846bb
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-24 14:26:27 +05:30