Commit graph

892,914 commits

Author SHA1 Message Date
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
qctecmdr
b02292d242 Merge "mtd: msm_qpic_nand: Update bus voting with the new icb framework" 2020-11-23 03:49:18 -08:00
Pavel Tatashin
fe78103d5e mm/memory_hotplug: drain per-cpu pages again during memory offline
There is a race during page offline that can lead to infinite loop:
a page never ends up on a buddy list and __offline_pages() keeps
retrying infinitely or until a termination signal is received.

Thread#1 - a new process:

load_elf_binary
 begin_new_exec
  exec_mmap
   mmput
    exit_mmap
     tlb_finish_mmu
      tlb_flush_mmu
       release_pages
        free_unref_page_list
         free_unref_page_prepare
          set_pcppage_migratetype(page, migratetype);
             // Set page->index migration type below  MIGRATE_PCPTYPES

Thread#2 - hot-removes memory
__offline_pages
  start_isolate_page_range
    set_migratetype_isolate
      set_pageblock_migratetype(page, MIGRATE_ISOLATE);
        Set migration type to MIGRATE_ISOLATE-> set
        drain_all_pages(zone);
             // drain per-cpu page lists to buddy allocator.

Thread#1 - continue
         free_unref_page_commit
           migratetype = get_pcppage_migratetype(page);
              // get old migration type
           list_add(&page->lru, &pcp->lists[migratetype]);
              // add new page to already drained pcp list

Thread#2
Never drains pcp again, and therefore gets stuck in the loop.

The fix is to try to drain per-cpu lists again after
check_pages_isolated_cb() fails.

Change-Id: I7d9b42fdbf436458242385f795126e42294562b1
Fixes: c52e75935f ("mm: remove extra drain pages on pcp list")
Signed-off-by: Pavel Tatashin <pasha.tatashin@soleen.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: David Rientjes <rientjes@google.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Wei Yang <richard.weiyang@gmail.com>
Cc: <stable@vger.kernel.org>
Link: https://lkml.kernel.org/r/20200903140032.380431-1-pasha.tatashin@soleen.com
Link: https://lkml.kernel.org/r/20200904151448.100489-2-pasha.tatashin@soleen.com
Link: http://lkml.kernel.org/r/20200904070235.GA15277@dhcp22.suse.cz
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Git-Commit: 9683182612214aa5f5e709fad49444b847cd866a
Git-Repo: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2020-11-23 17:03:25 +05:30
Faiyaz Mohammed
955ebf10d3 mm: slub: add type casting in alloc_trace_locations to avoid build warning
Add type casting in alloc_trace_locations to avoid build below warning.

mm/slub.c: In function ‘alloc_trace_locations’:
mm/slub.c:6322:27: warning: format ‘%p’ expects argument of type ‘void *’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
error, forbidden warning: slub.c:6322.

Change-Id: I87e337cc73c36274aaaa8dfd384f3f80f0d2d79d
Signed-off-by: Faiyaz Mohammed <faiyazm@codeaurora.org>
2020-11-23 16:33:05 +05:30
Veera Vegivada
d1a1ab0940 interconnect: qcom: Add SM8150 interconnect provider driver
Introduce Qualcomm SM8150 specific provider driver using the
interconnect framework.

Change-Id: I5710b7c30f49d159849c4b862bc252a8d964a164
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-11-23 14:41:05 +05:30
Charan Teja Reddy
4690fae9cd mm: page_owner: add pid, allocated time in page owner dump
Add pid and page allocated time in page owner dump.

Change-Id: I8ea2b18c14ad887f49fc7b05174169cc1fbb902e
Fixes: 65b0515874 ("mm, page_owner: record time and pid")
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2020-11-23 14:35:17 +05:30
qctecmdr
a2f8e24825 Merge "dt-bindings: clock: Add support for 5nm C-PHY shadow clock" 2020-11-22 23:40:45 -08:00
qctecmdr
da6a764a40 Merge "arm64: defconfig: Add support for Global clock controller for YUPIK" 2020-11-22 23:40:44 -08:00
qctecmdr
34dc2b1561 Merge "mmc: sdhci-msm: Add NULL check before dereferencing var_info" 2020-11-22 23:40:44 -08:00
qctecmdr
829fba660f Merge "scsi: ufs: Check qcg before dereferencing" 2020-11-22 23:40:44 -08:00
Liangcai Fan
8e3c3ebe1d ANDROID: ABI: add symbols of sprd_ion.ko and snd-soc-sprd-codec-sc2730.ko to unisoc
Add symbols of sprd_ion.ko and snd-soc-sprd-codec-sc2730.ko to unisoc,
and updates the ABI representation accordingly.

Leaf changes summary: 5 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 5 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

5 Added functions:

  [A] 'function int __kfifo_from_user_r(__kfifo*, void*, unsigned long int, unsigned int*, size_t)'
  [A] 'function int __kfifo_to_user_r(__kfifo*, void*, unsigned long int, unsigned int*, size_t)'
  [A] 'function unsigned int dapm_kcontrol_get_value(const snd_kcontrol*)'
  [A] 'function void* memset32(uint32_t*, uint32_t, size_t)'
  [A] 'function unsigned int snd_pcm_rate_bit_to_rate(unsigned int)'

Bug: 160255258
Change-Id: Id5d8384d4309b43dae6ccf3b8208cf46da7b6781
Signed-off-by: Liangcai Fan <liangcai.fan@unisoc.com>
2020-11-23 15:29:29 +08:00
Faiyaz Mohammed
d12e350603 mm: slub: avoid return code from slab_sysfs_init if debugfs is off
Avoid returning from slab_sysfs_init if debugfs is off as it is not fatal.

Change-Id: Ice8c26861ad6d6d143e910bb36aeed61dc23cb2f
Signed-off-by: Faiyaz Mohammed <faiyazm@codeaurora.org>
2020-11-23 11:41:23 +05:30
Hemant Kumar
a73babdb3e cnss2: pci: Trigger link down recovery if link fails to enter L0
In case if link fails to transition to L0 trigger inferred link
down recovery to collect RDDM dump.

Change-Id: I43326af34744501c542a1a1e22d6a9b5378c7289
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-11-22 21:14:18 -08:00
Raghavendra Kakarla
e21730c492 lpm-levels: Disable RIMPS timer based PLL/RAIL feature timer
This patch disables the RIMPS timer based PLL/RAIL trigger
timer in core C4 exit so that it stops the RIMPS from ticking
timer when core C4 exit happen before this timer expires.

Change-Id: I74b3e2222dc3ef5ba0fdebd71b7e86201016fc42
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2020-11-23 10:24:40 +05:30
qctecmdr
7af2b002ef Merge "msm: ADSPRPC: Add start and end timer for map and buffer" 2020-11-21 17:20:53 -08:00
qctecmdr
95990aa497 Merge "soc: qcom: glink_probe: Defer SSR unregister" 2020-11-21 17:20:53 -08:00
qctecmdr
6cfa244955 Merge "mhi: core: Disable preemption while processing data events" 2020-11-21 11:50:56 -08:00
qctecmdr
9be27828f5 Merge "mm: memory_hotplug: migration failure info of a page under DEBUG_VM" 2020-11-21 11:50:56 -08:00
qctecmdr
aa06537841 Merge "cnss2: Check device status before suspending PCIe bus" 2020-11-21 11:50:56 -08:00
Nitin Rawat
d553a0ff41 scsi: ufs: Check qcg before dereferencing
Check qcg before dereferencing to avoid NULL pointer
dereference and return if its NULL. This is is to
fix below kw warnings.

ufs-qcom.c:2489: 'qcg' is assigned the return value from
function 'cpu_to_group'.
ufs-qcom.c:2439: 'cpu_to_group' explicitly returns
a NULL value.
ufs-qcom.c:2490: 'qcg' is explicitly dereferenced.

Change-Id: I291c9230bb7fb5df414db8f80bfb17a50c8fc7cf
Signed-off-by: Nitin Rawat <nitirawa@codeaurora.org>
2020-11-22 01:10:41 +05:30
Jagadeesh Kona
e5af27d253 arm64: defconfig: Add support for Global clock controller for YUPIK
Enable Global clock controller for YUPIK.

Change-Id: I8f903168d22f4451eebecb7d2cd76e803876ebb0
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-11-21 20:15:29 +05:30
Jagadeesh Kona
1601cb9434 clk: qcom: gcc-yupik: Add support for GCC clock driver
Add support for global clock controller for peripheral
clock clients to be able to request for the clocks.

Change-Id: If68b92b5f599c06412434dacb0e438e5d8aaa5f5
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-11-21 20:13:14 +05:30
qctecmdr
41a072792c Merge "net: Kconfig changes to enable sfe feature" 2020-11-21 06:18:44 -08:00
qctecmdr
44d57bb97f Merge "scsi: ufs: update pm_lvl during probe only when current pm_lvl is invalid" 2020-11-21 06:18:44 -08:00
qctecmdr
1f4310e460 Merge "defconfig: sdxlemur: Enable CONFIG_SPMI_MSM_PMIC_ARB{_DEBUG}" 2020-11-21 06:18:43 -08:00
qctecmdr
5183c6e616 Merge "dm verity: correcting logic used with corrupted_errs counter" 2020-11-21 06:18:43 -08:00
Vatsal Bucha
70d6e6fe76 fsa4480: Update bits for switch ctl in reg notifier
Update bits for switch ctl in reg notifier so that
after PDR euro headset is detected as US and playback dosent
get paused on headset.

Change-Id: I02639b2c1db64bea03c0bb0696568a3aa9275b01
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-11-21 12:58:35 +05:30
rbandi
f7945b4f75 HID: qvr: wake up after acknowledgment from viewer
wake up wait_event_interruptible_timeout after receiving
acknowledgment from viewer.

Change-Id: I8d80b72ccfcfcb97a59185a35bb2824fe105198c
Signed-off-by: rbandi <rohitbandi@codeaurora.org>
2020-11-20 13:46:22 -08:00
Liangwei Dong
9ea529cf46 cnss2: Avoid printing some verbose logs to kmsg
Create cnss_pr_buf() to print verbose log to IPC buffer only.

Change-Id: I21556bbaced860d5b27967b9790b2e1396d7822d
CRs-Fixed: 2820766
Signed-off-by: Paul Zhang <paulz@codeaurora.org>
Signed-off-by: Liangwei Dong <liangwei@codeaurora.org>
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-11-20 11:25:42 -08:00
Yue Ma
e70b20554b cnss2: Check link status before setting wlaon_pwr_ctrl registers
If PCIe link is down, skip setting wlaon_pwr_ctrl registers to avoid
unclocked access.

Change-Id: I156f936ad87089754d6644d2eb3199105065ee32
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-11-20 11:10:28 -08:00
Jack Pham
145832c3a6 usb: gadget: f_accessory: Fix check for dev->disconnected
The previous commit d378aeae512d ("usb: gadget: f_accessory: avoid
requeuing write req if disconnected") added a check for
dev->disconnected during write operation, but incorrectly
inverted the value, thus it fails when connected. Fix the polarity
of this check.

Change-Id: I447871d054e35a9d21eb9e55087facfbf7701dd5
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-11-20 09:42:17 -08:00