Commit graph

597005 commits

Author SHA1 Message Date
Linux Build Service Account
f0020b57b5 Merge "i2c-msm-v2: Use "subsys" instead of "arch" initcall" 2018-02-07 17:11:15 -08:00
Linux Build Service Account
324ecc4547 Merge "ath10k: Enable wlan firmware based on the driver mode" 2018-02-07 17:11:14 -08:00
Linux Build Service Account
645d6ad33c Merge "power: smb1351-charger: Fix check in shutdown path for parallel disable" 2018-02-07 08:41:44 -08:00
Linux Build Service Account
f5c9996a31 Merge "cnss_utils: Add support for derived MAC address" 2018-02-07 08:41:42 -08:00
Linux Build Service Account
b7c0ad4f6b Merge "drm/msm: Corrected CCU load bit configuration" 2018-02-07 08:41:41 -08:00
Atanas Filipov
1b0c0d8c44 i2c-msm-v2: Use "subsys" instead of "arch" initcall
The i2c-msm-v2 driver trying to get the clocks too early, but
the clock framework is not initialized yet. The change of the
initcall type reducing deferred calls and improving boot time.

Info:
[0.212999] i2c-msm-v2 78b6000.i2c: probing driver i2c-msm-v2
[0.213172] i2c-msm-v2 78b6000.i2c: error on clk_get(core_clk):-517
-- snipped --
[0.275922] i2c-msm-v2 78b6000.i2c: probing driver i2c-msm-v2
[0.276086] i2c-msm-v2 78b6000.i2c: error on clk_get(core_clk):-517
-- snipped --
[0.302980] msm_mpm_dev_probe(): Cannot get clk resource for XO: -517
[0.303394] i2c-msm-v2 78b6000.i2c: probing driver i2c-msm-v2
-- snipped --

Change-Id: Ia8c110b5f67eeec07586adb30ec3a7aff7ce265a
Signed-off-by: Atanas Filipov <afilipov@codeaurora.org>
2018-02-07 14:55:25 +05:30
Linux Build Service Account
e0c650273e Merge "reg: qcom: call reg notifier during wiphy registration" 2018-02-06 23:46:59 -08:00
Linux Build Service Account
2be3fbd7ed Merge "drm/msm: restore perfcounter after turning on GPMU" 2018-02-06 23:46:57 -08:00
Linux Build Service Account
84d2490998 Merge "ath10k: Handle mgmt tx completion event" 2018-02-06 23:46:56 -08:00
Sameer Thalappil
e2b2768357 cnss_utils: Add support for derived MAC address
MAC address programmed thru CNSS could be provisioned or
derived MAC address. So add support for programming the derived
MAC address.

Change-Id: I2fae232e32a8600949c286346acd05afefd94ef8
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
2018-02-06 20:36:18 -08:00
Linux Build Service Account
1766dce24a Merge "lpm-stats: cleanup lpm stats processing sanity wrapping" 2018-02-06 15:07:47 -08:00
Linux Build Service Account
53c56ac0a5 Merge "Merge android-4.4.114 (fe09418) into msm-4.4" 2018-02-06 15:07:46 -08:00
Kiran Kumar Lokere
2aa0bb3ac0 reg: qcom: call reg notifier during wiphy registration
Call reg notifier for self managed hints during wiphy
registration. Call the notifier with last reg-domain
request.

CRs-Fixed: 2183721
Change-Id: I4fdc0a8fae94f774c4b923fba26a8eec1c96730d
Signed-off-by: Kiran Kumar Lokere <klokere@codeaurora.org>
2018-02-06 11:44:16 -08:00
John Zhao
819b1faf12 lpm-stats: cleanup lpm stats processing sanity wrapping
during list_for_each_entry_reverse iteration, cleanup_stats
recursively on current operated stats node could result it
will be freed at the end of that cleanup_stats progress.
De-referencing it again should not happen.

CRs-Fixed: 2182622
Change-Id: Icf837b0aa796fed5fe1721f9fe66fd0dd36ccfd7
Signed-off-by: John Zhao <yuankuiz@codeaurora.org>
2018-02-06 06:25:17 -08:00
Mohammed Javid
6cb84eed2d msm: ipa: dynamic memory leak fix
This is a fix for dynamic memory leak seen with incorrectly
allocating memory of a different size than with intended
size.

Change-Id: I350719dadad9fd5c7f35a334e81c8d9f2298f888
Acked-by: Jyothi Jayanthi <jyothij@qti.qualcomm.com>
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2018-02-06 02:47:19 -08:00
Rakesh Pillai
ad91e76196 ath10k: Enable wlan firmware based on the driver mode
The firmware is always enabled in the mission mode,
even if the driver is in the utf mode. This causes
unexpected behaviour when driver is in utf mode.

Enable the firmware in FTM mode if the driver is
started in UTF mode, else enable the firmware in
the normal mission mode.

Change-Id: I4da204b6d19d41e208465a8314bfb8cacc346f4b
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2018-02-06 12:36:15 +05:30
Linux Build Service Account
a7e3f3f2de Merge "diag: Fix possible use-after-free issue for mdlog session info" 2018-02-05 16:30:01 -08:00
Linux Build Service Account
68a2f1c190 Merge "ARM: dts: qcom: add an empty hab into the baseline vplatform" 2018-02-05 16:29:59 -08:00
Linux Build Service Account
9c85fe89c6 Merge "reg: qcom: call regulatory callback for self managed hints" 2018-02-05 16:29:58 -08:00
Linux Build Service Account
a15bce8f33 Merge "msm: sensor: actuator: fix out of bound read for region params" 2018-02-05 07:53:20 -08:00
Venkateswara Rao Tadikonda
0a281e5e64 drm/msm: Corrected CCU load bit configuration
CCU load_bit is supposed to be configured for RB_PERFCTR_CCU register, but
it is configured for RB_POWERCTR_CCU register. Updated the RB_PERFCTR_CCU
register configuration with CCU load_bit.

Change-Id: I3b4ce056923b5bd39bc274a0744008f5bc5db0f1
Signed-off-by: Venkateswara Rao Tadikonda <vtadik@codeaurora.org>
2018-02-05 15:51:15 +05:30
Venkateswara Rao Tadikonda
e8df2440a4 drm/msm: restore perfcounter after turning on GPMU
Restore of TP perfcounters before turning ON the GPMU causes the GPU fault
and recovery. Restore the perfcounters after turning ON the GPMU.

Change-Id: I3c00ed0a487d452e29f360300f92227784b81bbf
Signed-off-by: Venkateswara Rao Tadikonda <vtadik@codeaurora.org>
2018-02-05 15:49:56 +05:30
Linux Build Service Account
980d13d0d0 Merge "ASoC: msm: qdsp6v2: Fix Set Lpass Clk Timeout Issue" 2018-02-04 23:33:30 -08:00
Haibin Liu
6821542253 msm: sensor: actuator: fix out of bound read for region params
Issue:
the region index is not validated against the region size.
this cause out-of-bound read on the KASAN kernel.

Fix:
Add restriction that region index smaller than region size.

CRs-Fixed: 2153841
Change-Id: I141bba45662769f0661c947fb642c2671578f32e
Signed-off-by: Haibin Liu <haibinl@codeaurora.org>
2018-02-04 19:10:18 -08:00
Yong Ding
81da8480a1 ARM: dts: qcom: add an empty hab into the baseline vplatform
The empty hab entry has no actual MMID group entries. With it,
hab driver can initialize successfully, but it can not be used
by any clients since no acutal physical channels are created.

Change-Id: Ia5c85cf9c32ae2cb33bd1f36de7ac3e9337dfa2f
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2018-02-04 17:38:28 -08:00
Amar Singhal
31e37a680d reg: qcom: call regulatory callback for self managed hints
Currently, kernel ignores the regulatory hint if wiphy flag
REGULATORY_WIPHY_SELF_MANAGED is set. This would lead to drop of
hints sent directly to kernel from user-space. To fix, call the driver
callback with the request.

CRs-Fixed: 2183721
Change-Id: Ic6d17ce8c3e9b889f618f3494672020bb1c98c42
Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
2018-02-04 09:28:38 -08:00
Linux Build Service Account
6b83a15ee1 Merge "xhci: plat: Fix xhci_plat shutdown hung" 2018-02-02 16:55:35 -08:00
Linux Build Service Account
5107b18576 Merge "mm: change max readahead size to 512KB" 2018-02-02 16:55:34 -08:00
Linux Build Service Account
55bc67e27a Merge "ath10k: fix the race condition in wow suspend-resume cycle" 2018-02-02 06:02:09 -08:00
Linux Build Service Account
768bfad12f Merge "ath10k: dma unmap mgmt tx buffer if wmi cmd send fails" 2018-02-02 06:02:08 -08:00
Hardik Arya
808955b188 diag: Fix possible use-after-free issue for mdlog session info
Currently there is a possibility of accessing freed mdlog
session info and it's attributes after closing the session.
The patch adds protection while accessing mdlog session info
for preventing use-after-free issue.

CRs-Fixed: 2133028
Change-Id: Iba603bc2d75f84a604df2627e8fcb2a18acf4637
Signed-off-by: Hardik Arya <harya@codeaurora.org>
2018-02-02 14:39:22 +05:30
Lee Susman
1f83fb8efb mm: change max readahead size to 512KB
Change the VM_MAX_READAHEAD value from the default 128KB
to 512KB. This will allow the readahead window to grow to a maximum size
of 512KB, which greatly benefits to sequential read throughput.

Change-Id: Ia0780ea4e2a4ae0b6111485b72fb25376dcb1f96
Signed-off-by: Lee Susman <lsusman@codeaurora.org>
2018-02-02 00:58:39 -08:00
Lei wang
a7a5307ee0 xhci: plat: Fix xhci_plat shutdown hung
xhci-plat Shutdown callback should check HCD_FLAG_HW_ACCESSIBLE
before accessing any register. This should avoid hung with access
controllers which support runtime suspend

Change-Id: I53eedf5b8f77dfdfa31d21b303da7058c5a86ba9
Signed-off-by: Lei wang <leiwan@codeaurora.org>
2018-02-01 20:38:33 -08:00
Linux Build Service Account
3fe4f284c8 Merge "msm: ipa3: lift the HOLB only when WDI enable" 2018-02-01 18:49:17 -08:00
Linux Build Service Account
d326b7ac6b Merge "icnss: Avoid wlan driver remove during modem graceful shutdown" 2018-02-01 18:49:16 -08:00
Linux Build Service Account
54c3bbc44e Merge "msm: kgsl: Update global memory base to 0XFC000000 for 64bit kernel" 2018-02-01 18:49:13 -08:00
Skylar Chang
4be7ee1f02 msm: ipa3: lift the HOLB only when WDI enable
We should only remove HOLD on WDI pipes
after getting WDI_ENABLE, not on WDI_CONNECT
or those Tx pkts will stock in WLAN tx pipes.

Change-Id: I23a87afbc5b7a6fe8abbab16fbfe2caab7535f8e
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2018-02-01 10:47:28 -08:00
Sarada Prasanna Garnayak
f6a0401632 ath10k: fix the race condition in wow suspend-resume cycle
During wow suspend enable the wow event wakeup source if
the STA is in connected state and during wow resume report
the wow wakeup reason to mac80211 and nl80211 layer.

This fix adds support to synchronize the wow suspend-resume cycle
and prevent the device to wakeup from wow suspend state by an invalid
wow event when the STA is in the disconnected state.

CRs-Fixed: 2175472
Change-Id: I093f3c5a80b4f67578dfb114b9cc9ea778f19168
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2018-02-01 06:27:43 -08:00
Linux Build Service Account
3459447694 Merge "ais: adjust frame id values to match user space of all platforms" 2018-02-01 01:42:16 -08:00
Linux Build Service Account
47e2f5d9c8 Merge "ARM: dts: msm: add client id for sde-hyp for msm8996" 2018-02-01 01:42:14 -08:00
Linux Build Service Account
41dfd82521 Merge "drm/msm-hyp: parse client id from dtsi" 2018-02-01 01:42:13 -08:00
Linux Build Service Account
7aedbd9bb5 Merge "ARM: dts: msm: correct the syntax format of firmware node" 2018-02-01 01:42:12 -08:00
Linux Build Service Account
f94d8103da Merge "Merge android-4.4.113 (ef588ef) into msm-4.4" 2018-02-01 01:42:10 -08:00
Linux Build Service Account
1d316f30ae Merge "ath10k: Indicate MSDU_ID_NEW_PARTITION support in host cap flags" 2018-02-01 01:42:08 -08:00
Linux Build Service Account
4b3f47da05 Merge "ath10k: Add host capability indication flag in wmi ready cmd" 2018-02-01 01:42:07 -08:00
Linux Build Service Account
92c2826123 Merge "spi: spi_qsd: Correct SPI slave hw init sequence" 2018-02-01 01:42:06 -08:00
Linux Build Service Account
e08d3d8ae8 Merge "ARM: dts: msm: disable tv tuner on apq8096pro and msm8996pro ADP Lite" 2018-02-01 01:42:04 -08:00
Srinivasarao P
38cacfd106 Merge android-4.4.114 (fe09418) into msm-4.4
* refs/heads/tmp-fe09418
  Linux 4.4.114
  nfsd: auth: Fix gid sorting when rootsquash enabled
  net: tcp: close sock if net namespace is exiting
  flow_dissector: properly cap thoff field
  ipv4: Make neigh lookup keys for loopback/point-to-point devices be INADDR_ANY
  net: Allow neigh contructor functions ability to modify the primary_key
  vmxnet3: repair memory leak
  sctp: return error if the asoc has been peeled off in sctp_wait_for_sndbuf
  sctp: do not allow the v4 socket to bind a v4mapped v6 address
  r8169: fix memory corruption on retrieval of hardware statistics.
  pppoe: take ->needed_headroom of lower device into account on xmit
  net: qdisc_pkt_len_init() should be more robust
  tcp: __tcp_hdrlen() helper
  net: igmp: fix source address check for IGMPv3 reports
  lan78xx: Fix failure in USB Full Speed
  ipv6: ip6_make_skb() needs to clear cork.base.dst
  ipv6: fix udpv6 sendmsg crash caused by too small MTU
  ipv6: Fix getsockopt() for sockets with default IPV6_AUTOFLOWLABEL
  dccp: don't restart ccid2_hc_tx_rto_expire() if sk in closed state
  hrtimer: Reset hrtimer cpu base proper on CPU hotplug
  x86/microcode/intel: Extend BDW late-loading further with LLC size check
  eventpoll.h: add missing epoll event masks
  vsyscall: Fix permissions for emulate mode with KAISER/PTI
  um: link vmlinux with -no-pie
  usbip: prevent leaking socket pointer address in messages
  usbip: fix stub_rx: harden CMD_SUBMIT path to handle malicious input
  usbip: fix stub_rx: get_pipe() to validate endpoint number
  usb: usbip: Fix possible deadlocks reported by lockdep
  Input: trackpoint - force 3 buttons if 0 button is reported
  Revert "module: Add retpoline tag to VERMAGIC"
  scsi: libiscsi: fix shifting of DID_REQUEUE host byte
  fs/fcntl: f_setown, avoid undefined behaviour
  reiserfs: Don't clear SGID when inheriting ACLs
  reiserfs: don't preallocate blocks for extended attributes
  reiserfs: fix race in prealloc discard
  ext2: Don't clear SGID when inheriting ACLs
  netfilter: xt_osf: Add missing permission checks
  netfilter: nfnetlink_cthelper: Add missing permission checks
  netfilter: fix IS_ERR_VALUE usage
  netfilter: use fwmark_reflect in nf_send_reset
  netfilter: nf_conntrack_sip: extend request line validation
  netfilter: restart search if moved to other chain
  netfilter: nfnetlink_queue: reject verdict request from different portid
  netfilter: nf_ct_expect: remove the redundant slash when policy name is empty
  netfilter: nf_dup_ipv6: set again FLOWI_FLAG_KNOWN_NH at flowi6_flags
  netfilter: arp_tables: fix invoking 32bit "iptable -P INPUT ACCEPT" failed in 64bit kernel
  netfilter: x_tables: speed up jump target validation
  ACPICA: Namespace: fix operand cache leak
  ACPI / scan: Prefer devices without _HID/_CID for _ADR matching
  ACPI / processor: Avoid reserving IO regions too early
  x86/ioapic: Fix incorrect pointers in ioapic_setup_resources()
  ipc: msg, make msgrcv work with LONG_MIN
  mm, page_alloc: fix potential false positive in __zone_watermark_ok
  cma: fix calculation of aligned offset
  hwpoison, memcg: forcibly uncharge LRU pages
  mm/mmap.c: do not blow on PROT_NONE MAP_FIXED holes in the stack
  fs/select: add vmalloc fallback for select(2)
  mmc: sdhci-of-esdhc: add/remove some quirks according to vendor version
  PCI: layerscape: Fix MSG TLP drop setting
  PCI: layerscape: Add "fsl,ls2085a-pcie" compatible ID
  drivers: base: cacheinfo: fix boot error message when acpi is enabled
  drivers: base: cacheinfo: fix x86 with CONFIG_OF enabled
  Prevent timer value 0 for MWAITX
  timers: Plug locking race vs. timer migration
  time: Avoid undefined behaviour in ktime_add_safe()
  PM / sleep: declare __tracedata symbols as char[] rather than char
  can: af_can: canfd_rcv(): replace WARN_ONCE by pr_warn_once
  can: af_can: can_rcv(): replace WARN_ONCE by pr_warn_once
  sched/deadline: Use the revised wakeup rule for suspending constrained dl tasks
  x86/retpoline: Fill RSB on context switch for affected CPUs
  x86/cpu/intel: Introduce macros for Intel family numbers
  x86/microcode/intel: Fix BDW late-loading revision check
  usbip: Fix potential format overflow in userspace tools
  usbip: Fix implicit fallthrough warning
  usbip: prevent vhci_hcd driver from leaking a socket pointer address
  x86/asm/32: Make sync_core() handle missing CPUID on all 32-bit kernels
  ANDROID: sched: EAS: check energy_aware() before calling select_energy_cpu_brute() in up-migrate path
  UPSTREAM: eventpoll.h: add missing epoll event masks
  ANDROID: xattr: Pass EOPNOTSUPP to permission2

Conflicts:
	kernel/sched/fair.c

Change-Id: I15005cb3bc039f4361d25ed2e22f8175b3d7ca96
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2018-02-01 14:02:45 +05:30
Rakesh Pillai
80b468d70d ath10k: Handle mgmt tx completion event
WCN3900 uses mgmt frame tx by ref via WMI.
The txed mgmt frames should be freed when the
firmware sends the over-the-air tx status of
the corresponding mgmt frames.

Handle the wmi mgmt tx completion event and free
the corresponding mgmt frame.

CRs-Fixed: 2181843
Change-Id: I07135230e39aecff3f646d3eab2b6ab5272cb21b
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2018-02-01 13:18:51 +05:30
Rakesh Pillai
89c988e117 ath10k: dma unmap mgmt tx buffer if wmi cmd send fails
WCN3990 sends mgmt frames by reference via WMI. If
the wmi command send fails, the frame is not being
dma unmapped.

Fix the missing dma unmapping of mgmt tx frame when
wmi command sending fails. Add a separate wmi-tlv op
for mgmt tx, via ref, which accepts dma mapped address
which is sent to the firmware.

CRs-Fixed: 2181836
Change-Id: I3f036023ac0ecbd845d842b649be882fd17619e5
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2018-02-01 13:18:27 +05:30