Commit graph

892,791 commits

Author SHA1 Message Date
Deepak Kumar Singh
947d90b200 mailbox: apcs-ipc: Add compatible string for sdxnightjar
Add compatible string in mailbox driver to match sdxnightjar
apcs block.

Change-Id: Ib0105e71a77dbd2c93d14f25a814f54b62c32a85
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2020-11-25 18:42:30 +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
Jeya R
4d758b1561 msm: ADSPRPC: Register CMA region for minidump
Add CMA region to minidump entry during region
region create. Remove the entry when region is
unmapped.

Change-Id: I9b56b0a7a31347087e17702c50620a3f23f973fc
Acked-by: Ekansh Gupta <ekangupt@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
2020-11-25 00:30:26 -08:00
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
Tapas Dey
6aa08d2a70 NFC: Fix possible NULL pointer dereference issue
Due to possible NULL pointer dereference
kw issues are seen.

Modify code and add proper NULL check to avoid
NULL pointer dereference.

Change-Id: Ie9f19fa9ac57a108575c08bdc123313eea3df49c
Signed-off-by: Tapas Dey <tdey@codeaurora.org>
2020-11-25 11:08:24 +05:30
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
Raghavendra Kakarla
d37b856ed7 drivers: soc: ddr_stats: Initialize the uninitialized variable
This patch can initialize the uninitialized local variables.

Change-Id: I3f37a25ddaa52979657396da81830fdc8f9c2332
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2020-11-24 23:45:57 +05:30
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
Jaegeuk Kim
b995a9f2d6 f2fs: fix deadlock between quota writes and checkpoint
f2fs_write_data_pages(quota_mapping)
 __f2fs_write_data_pages             f2fs_write_checkpoint
  * blk_start_plug(&plug);
  * add bio in write_io[DATA]
                                      - block_operations
                                      - skip syncing quota by
                                                >DEFAULT_RETRY_QUOTA_FLUSH_COUNT
                                      - down_write(&sbi->node_write);
  - f2fs_write_single_data_page
   - down_read(node_write)
                                      - f2fs_wait_on_all_pages(F2FS_WB_CP_DATA);

Change-Id: I0081e701db50dee0b915c788e875d16a2c7da73d
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Git-commit: 1fd280188d1f1e7318264a34aba435f3b69e71e8
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 13:02:15 +05:30
qctecmdr
9598d00451 Merge "msm: pcie: add support to vote and scale MX rail" 2020-11-23 23:23:26 -08:00
Akash Asthana
f3b9eb508a platform: msm-geni-se: Correct unit for ICC optimization
In older kernel target we had ICB and it use to take input
in BCM units for QUP core path, whereas in recent kernel we
have ICC for BW NOC voting and it accept input in KHz.

So correct unit for ICC optimization code.

Change-Id: Ia6c88dbd328dad1ff96c6c7ffd22c93db942d509
Signed-off-by: Akash Asthana <akashast@codeaurora.org>
2020-11-24 12:52:50 +05:30
Aniket Randive
c03a607b0c ARM: dts: msm: Add macros for QMP USB register offsets on SA8155
Add macro definitions in a dt-bindings header file for all
the QMP USB DP and USB UNI PHY register offsets.

Change-Id: Id04ab6faede01471196d06d6729f97fb1076119f
Signed-off-by: Aniket Randive <arandive@codeaurora.org>
2020-11-24 12:29:46 +05:30
Shaik Sajida Bhanu
d4a94d664b mmc: sdhci-msm: Add err_stat's in CQE path
Add err_stat's in CQE path for eMMC.

Change-Id: Ie1b304ab853a5956ae3e2cd9d89ceac5fcbb473b
Signed-off-by: Shaik Sajida Bhanu <sbhanu@codeaurora.org>
2020-11-24 11:12:55 +05:30
qctecmdr
6a2beea9de Merge "dt-bindings: clock: Add support for clock ids for MONACO" 2020-11-23 19:13:34 -08:00
qctecmdr
95808eb9c5 Merge "soc: qcom: Fix presence of garbage value in 32 msb of smcinvoke_obj->fd" 2020-11-23 19:13:34 -08:00
qctecmdr
5030e53cf0 Merge "drivers: rpmsg: rpm-smd: define readq_relaxed for ARM variants" 2020-11-23 19:13:34 -08:00
qctecmdr
029b14031b Merge "msm: ipa: CV2X header file changes" 2020-11-23 19:13:33 -08:00
qctecmdr
0b8fd9009b Merge "cnss2: Avoid printing some verbose logs to kmsg" 2020-11-23 19:13:33 -08:00
qctecmdr
48c30d3f71 Merge "mm/memory_hotplug: drain per-cpu pages again during memory offline" 2020-11-23 19:13:33 -08:00
qctecmdr
28b36d6392 Merge "cnss2: Check link status before setting wlaon_pwr_ctrl registers" 2020-11-23 19:13:32 -08:00
qctecmdr
4c9b1b52ce Merge "msm: pcie: scale PCIe resources based on Gen speed after link is up" 2020-11-23 19:13:31 -08:00
Tao,Zhang
dee26de962 coresight: Doesn't save and restore ETMs state while CPU hot-plug
Doesn't save and restore ETMs state while CPU being offline and
online hot-plug. Since ETM driver can save and restore ETMs state
in hot-plug process. If JTAG driver save and restore ETMs state
as well, there could be some conflicts with ETM driver.

Change-Id: Ib4de3c0e3d0abb4cb15946fc444e0c1fc9188fd1
Signed-off-by: Tao,Zhang <taozha@codeaurora.org>
2020-11-24 10:45:53 +08:00
Isaac J. Manjarres
387fa7403c ion: Restore secure system heap buffers' heap pointer after being freed
When a secure system heap buffer is freed, the buffer's heap pointer
is changed to the system heap, so that the buffer's pages can be freed
into the secure pools properly. However, the buffer's heap pointer
is not reset back to the secure system heap after the buffer has been
freed.

This is problematic, as the ION buffer tracking code uses the buffer's
heap pointer to figure out which heap's memory accounting stats it has
to decrement when a buffer is freed. In this case, we end up not
decrementing the system secure heap's memory accounting stats, but
instead, decrement the system heap's accounting stats, which is not
correct.

After freeing a buffer's pages, restore the buffer's heap pointer to
the secure system heap, to ensure that the correct heap's accounting
stats are adjusted.

Change-Id: I4ade80660fb5585a2be93be4929db5c534351c2d
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-11-23 12:41:52 -08:00
Weilun Du
4271ad6e8a BACKPORT: mac80211_hwsim: add frame transmission support over virtio
This allows communication with external entities.

It also required fixing up the netlink policy, since NLA_UNSPEC
attributes are no longer accepted.

Signed-off-by: Erel Geron <erelx.geron@intel.com>
[port to backports, inline the ID, use 29 as the ID as requested,
 drop != NULL checks, reduce ifdefs]
Link: https://lore.kernel.org/r/20200305143212.c6e4c87d225b.I7ce60bf143e863dcdf0fb8040aab7168ba549b99@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

(cherry picked from commit 5d44fe7c9808c56e136e59147bd932f5491520f1)
Bug: 173808904
Signed-off-by: Weilun Du <wdu@google.com>
Change-Id: I6097464f47460c2383e941594c88637446a77dd5
2020-11-23 17:45:44 +00:00
Tony Truong
08f5d1a0c3 msm: pcie: support configurable number of PARF testbus selectors
The number of PCIe PARF testbus signals available varies for each
PCIe controller version. In order to capture all possible signals
during a PARF dump, add support to define how many PCIe PARF
testbus selectors are provided.

Change-Id: I4d99df6f61b66cbccc3c5e2e7ce6ab2f89db5669
Signed-off-by: Tony Truong <truong@codeaurora.org>
2020-11-23 08:09:50 -08:00
Mohammed Siddiq
0e154ccd5e cnss2: Increase mhi timeout to 30 sec for perf builds
cnss2: Increase mhi timeout in debug builds to 30sec from 10sec
for firmware download. Once MHI power On is done then the
timeout is reverted to default 10sec.

Change-Id: Ib18cda6da612d37e69cc6f1fee169f01d994daaa
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2020-11-23 21:39:50 +05:30
qctecmdr
6f6827e597 Merge "mmc: core: Dereference dev pointer after NULL check" 2020-11-23 03:49:20 -08:00
qctecmdr
2cb1a30fe9 Merge "msm: Update the kernel log messages" 2020-11-23 03:49:20 -08:00
qctecmdr
ca57f5b3f1 Merge "defconfig: Enable USB PD on sdxlemur" 2020-11-23 03:49:19 -08:00
qctecmdr
a5608a4cd5 Merge "msm: kgsl: Add addr_mode_cntl registers for legacy snapshot for holi gpu" 2020-11-23 03:49:19 -08:00
qctecmdr
5b668a4482 Merge "drivers: irqchip: qcom-pdc: Add PDC IRQ chip support for sm8150" 2020-11-23 03:49:19 -08:00
qctecmdr
f6689cd632 Merge "ARM: msm: Define scuba architecture on 5.4" 2020-11-23 03:49:18 -08:00