Commit graph

581329 commits

Author SHA1 Message Date
Linux Build Service Account
1515754ed3 Merge "defconfig: sdm660: Enable G-Link SPI Transport driver in 32 bit" 2017-01-18 23:48:44 -08:00
Linux Build Service Account
53d9fa23b7 Merge "ASoC: audio-ext-clk: add parent to div and lnbb clks" 2017-01-18 23:48:43 -08:00
Linux Build Service Account
08478123a6 Merge "ARM: dts: msm: Audio bringup fixes for SDM660" 2017-01-18 23:48:42 -08:00
Linux Build Service Account
69427c91f4 Merge "spmi: pmic-arb: Return an error code if sanity check fails" 2017-01-18 23:48:40 -08:00
Linux Build Service Account
e7d95aa295 Merge "spmi: pmic-arb: replace symbolic permissions with constants" 2017-01-18 23:48:40 -08:00
Linux Build Service Account
b2c6447f46 Merge "usb: pd: pdphy: Enable IRQs for wakeup" 2017-01-18 23:48:39 -08:00
Linux Build Service Account
fbbaeb656a Merge "sched: hmp: Remove the global sysctl_sched_enable_colocation tunable" 2017-01-18 23:48:38 -08:00
Linux Build Service Account
3d4b6ca818 Merge "ARM: dts: msm: Enable wifi offload for SDM660 and SDM630" 2017-01-18 23:48:37 -08:00
Linux Build Service Account
b7193a89d1 Merge "tracing: Use SOFTIRQ_OFFSET for softirq dectection for more accurate results" 2017-01-18 23:48:36 -08:00
Linux Build Service Account
f116be368e Merge "msm: camera: fix Information leak" 2017-01-18 23:48:35 -08:00
Pavankumar Kondeti
6d63f38bf2 sched: kill sync_cpu maintenance
We assume boot CPU as a sync CPU and initialize it's window_start
to sched_ktime_clock(). As windows are synchronized across all
CPUs, the secondary CPUs' window_start are initialized from the
sync_cpu's window_start. A CPU's window_start is never reset, so
this synchronization happens only once for a given CPU. Given this
fact, there is no need to reassigning the sync_cpu role to another
CPU when the boot CPU is going offline. Remove this unnecessary
maintenance of sync_cpu and use any online CPU's window_start as
reference.

Change-Id: I169a8e80573c6dbcb1edeab0659c07c17102f4c9
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2017-01-19 12:30:19 +05:30
Rupesh Tatiya
44c5c83c4f ARM: dts: msm: Add slimbus device for wcn3990
Slimbus is used as audio transport for Bluetooth & FM between sdm660 &
wcn3990. Add device tree entry for wcn3990 slimbus slave device in sdm660.

Change-Id: I0766cfac9329e7d088e6997e20a27d902aca9f29
Signed-off-by: Rupesh Tatiya <rtatiya@codeaurora.org>
2017-01-18 22:20:07 -08:00
Dhoat Harpal
81b13dfb68 soc: qcom: smem: Fix possible use of uninitialized variable
Usage of uninitialized variable remote_host happens if common partition
header hosts value dont match with TOC values.

Add common partition check and error log if hosts mismatch with TOC.

CRs-Fixed: 1113351
Change-Id: I15f8823751abccf87c55e570a8a762bfb2cfb2df
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
2017-01-19 11:48:38 +05:30
Dhoat Harpal
dbdcdb2153 defconfig: sdm660: Enable G-Link SPI Transport driver in 32 bit
Enable G-Link SPI Transport driver to enable off-chip communication
over SPI bus in 32 bit architecture.

CRs-Fixed: 1106989
Change-Id: I8826b1383811a03d91547414a5f6766aafa091d6
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2017-01-18 20:15:24 -08:00
Laura Abbott
7933a7ef82 fs: fuse: Add replacment for CMA pages into the LRU cache
CMA pages are currently replaced in the FUSE file system since
FUSE may hold on to CMA pages for a long time, preventing migration.
The replacement page is added to the file cache but not the LRU
cache. This may prevent the page from being properly aged and dropped,
creating poor performance under tight memory condition. Fix this by
adding the new page to the LRU cache after creation.

Change-Id: Ib349abf1024d48386b835335f3fbacae040b6241
CRs-Fixed: 586855
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2017-01-18 16:20:27 -08:00
Laura Abbott
a5b88c7fda fs: fuse: Workaround for CMA migration
The FUSE file system may hold references to pages for long
periods of time, preventing migration from occurring. If a CMA
page is used here, CMA allocations may fail. Work around this
by swapping out a CMA page for a non-CMA page when working with
the FUSE file system.

Change-Id: Id763ea833ee125c8732ae3759ec9e20d94aa8424
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2017-01-18 16:18:26 -08:00
Sathish Ambley
4669c8d278 msm: ADSPRPC: Attributes to process creation on remote processor
Allow creating user process on remote processor with attributes
to be used during process creation for debugging purposes.

Change-Id: I63081f8ed44bd8e86392d82018ce4e632284c6ed
Acked-by: Viswanatham Paduchuri <vpaduchu@qti.qualcomm.com>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2017-01-18 14:30:40 -08:00
Linux Build Service Account
3145cd4109 Merge "perf: Fix NULL pointer ref in exclude_idle update" 2017-01-18 14:23:23 -08:00
Linux Build Service Account
c1a330fbcf Merge "ARM: dts: msm: Set correct voltage for QRD8998HB touch panel" 2017-01-18 14:23:22 -08:00
Linux Build Service Account
3b6e6476d7 Merge "ARM: dts: msm: modify dcc ram size for sdm660" 2017-01-18 14:23:21 -08:00
Linux Build Service Account
e64abf0e80 Merge "mac80211: allow passing transmitter station on RX" 2017-01-18 14:23:20 -08:00
Linux Build Service Account
582a811220 Merge "clk: qcom: Add support for 19.2Mhz for USB30 utmi clock" 2017-01-18 14:23:19 -08:00
Linux Build Service Account
3d99714332 Merge "defconfig: msm: Enable MSM_TIMER_LEAP for sdm660" 2017-01-18 14:23:18 -08:00
Linux Build Service Account
3c00037742 Merge "msm: ipa: Prevent multiple header deletion from user space" 2017-01-18 14:23:17 -08:00
Linux Build Service Account
89b611d0f0 Merge "qcom-charger: smb2: suspend USB path for fake battery or debug board" 2017-01-18 14:23:17 -08:00
Linux Build Service Account
ed5ce44f85 Merge "clk: qcom: Move prepare_enable of XO clock before spinlock" 2017-01-18 14:23:16 -08:00
Linux Build Service Account
42c03251c6 Merge "clk: qcom: Remove few graphics clock for sdm660" 2017-01-18 14:23:15 -08:00
Sathish Ambley
8c18ec960f msm: ADSPRPC: Update subsystem name for slpi
Update subsystem name for slpi to ensure that the subsystem restart
notification is registered with the correct subsystem.

Change-Id: Ie4f409d6d63cd164323a2e58805b8154322518d1
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2017-01-18 13:00:28 -08:00
Yeleswarapu Nagaradhesh
1a43bb07cb ASoC: audio-ext-clk: add parent to div and lnbb clks
Add parents to div_clk1 and ln_bbclk. And register
both the clocks independently.

Change-Id: Ic0435ebad533879e3e0648775956c91cc680644d
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
2017-01-19 00:52:56 +05:30
Laxminath Kasam
71fb9c8efa ARM: dts: msm: Audio bringup fixes for SDM660
Update gpio settings as per HW VI audio
values. Also move common settings of external
and internal codecs to new files.

Change-Id: I0d3e0878972038a7876a063648156126b2a7cee4
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-01-19 00:48:11 +05:30
Jack Pham
77629c3ba6 usb: pd: pdphy: Enable IRQs for wakeup
Enable the signal and message RX IRQs for wakeup. This allows
the system to be woken from suspend when the PD PHY receives
an incoming hard reset or SOP* message from a connected peer.

Change-Id: Ib6f4507ef363954c91271029874337497659da84
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-01-18 10:26:38 -08:00
Vikram Mulukutla
e7dd50fa46 sched: hmp: Remove the global sysctl_sched_enable_colocation tunable
Colocation in HMP includes a tunable that turns on or off the feature
globally across all colocation groups. Supporting this tunable correctly
would result in complexity that would outweigh any foreseeable benefits.
For example, disabling the feature globally would involve deleting all
colocation groups one by one while ensuring no placement decisions are
made during the process.

Remove the tunable. Adding or removing a task from a colocation group is
still possible and so we're not losing functionality.

Change-Id: I4cb8bcdbee98d3bdd168baacbac345eca9ea8879
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
2017-01-18 09:45:44 -08:00
Vikram Mulukutla
2768f0352b sched: hmp: Ensure that best_cluster() never returns NULL
There are certain conditions under which group_will_fit() may return 0 for
all clusters in the system, especially under changing thermal conditions.
This may result in crashes such as this one:

        CPU 0                    |               CPU 1
====================================================================
select_best_cpu()                |
 -> env.rtg = rtgA               |
    rtgA.pref_cluster=C_big      |
                                 |   set_pref_cluster() for rtgA
                                 |     -> best_cluster()
                                 |        C_little doesn't fit
                                 |
                                 |   IRQ: thermal mitigation
                                 |   C_big capacity now less
                                 |   than C_little capacity
                                 |
                                 |     -> best_cluster() continues
                                 |        C_big doesn't fit
                                 |   set_pref_cluster() sets
                                 |   rtgA.pref_cluster = NULL
                                 |
select_least_power_cluster()     |
  -> cluster_first_cpu()         |
     -> BUG()                    |

To add lock protection around accesses to the group's preferred cluster
would be expensive and defeat the point of the usage of RCU to protect
access to the related_thread_group structure. Therefore, ensure that
best_cluster() can never return NULL. In the worst case, we'll select the
wrong cluster for a related_thread_group's demand, but this should be
fixed in the next tick or wakeup etc. Locking would have still led to the
momentary wrong decision with the additional expense!

Also, don't set preferred cluster to NULL when colocation is disabled.

Change-Id: Id3f514b149add9b3ed33d104fa6a9bd57bec27e2
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
2017-01-18 09:45:40 -08:00
Phani Kumar Uppalapati
f42b8d1625 ASoC: wcd934x: Add support for USB Type-C analog audio
Add playback and capture support when an analog wired
accessory is inserted into USB Type-C receptacle through
an USB type-c to 3.5mm analog audio adapter.

CRs-Fixed: 1102048
Change-Id: I36126ecdb0d2683d27d78dea9256bee0be67c1a6
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2017-01-18 09:39:24 -08:00
Utkarsh Saxena
43184bf1fe ARM: dts: msm: Enable wifi offload for SDM660 and SDM630
SDM660 and SDM630 support wifi offload. So, enable it.

Change-Id: I82a509b8f8b07b0537f050a62c4b605ac6806837
Acked-by: Mohammed Javid <mjavid@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
2017-01-18 20:23:27 +05:30
Yahui Wang
d83e1aef94 ARM: dts: msm: move display panel settings for sdm660 QRD
We need to move panel settings from sdm660-qrd.dtsi to
sdm660-qrd.dts to separate LCD & AMOLED panel as they use
sdm660-qrd.dtsi for some common settings for sdm660 QRD.

Change-Id: I447f70c4953e5ba0ee30bb76fa08a5f640360d9c
Signed-off-by: Yahui Wang <yahuiw@codeaurora.org>
2017-01-18 06:36:09 -08:00
Dhoat Harpal
1618176475 soc: qcom: glink_spi_xprt: Fix compilation error for 32 bit
Conversion of a 64 bit int variable to void pointer is illegal
operation when compiling for 32 bit architecture.

Added explicit conversion to uintprt_t, so that 32 bit conversion
can be done.

CRs-Fixed: 1107920
Change-Id: I3854fcb460308c9a77a17198dcb604dd4da135ac
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2017-01-18 19:42:20 +05:30
Venkatesh Yadav Abbarapu
59e30f3f02 defconfig: msm: Enable MSM_TIMER_LEAP for sdm660
Enable MSM_TIMER_LEAP config flag in both sdm660_defconfig
and sdm660-perf_defconfig files. This option enables check
for architecture timer leaps, when all least significant 32bits
of CNTVCT or CNTPCT counter is set and rereads counters.

Change-Id: I643fad053b560e689c9ffd00e1f02790435a9e8c
Signed-off-by: Venkatesh Yadav Abbarapu <vabbar@codeaurora.org>
2017-01-18 19:09:28 +05:30
Linux Build Service Account
ebc5196e3e Merge "clk: qcom: Add support for GPLL0 active clock for CPU" 2017-01-18 05:31:24 -08:00
Linux Build Service Account
585e9f4457 Merge "clk: qcom: Add support for multiple PLL software instances" 2017-01-18 05:31:23 -08:00
Linux Build Service Account
e0e7879548 Merge "qpnp-fg-gen3: remove support for configuring external sense" 2017-01-18 05:31:22 -08:00
Linux Build Service Account
14bfad67bb Merge "power_supply: add power supply property to support debug battery" 2017-01-18 05:31:21 -08:00
Linux Build Service Account
3c52c85809 Merge "USB: gadget: mbim: Avoid copying uninitialized data to userspace" 2017-01-18 05:31:20 -08:00
Linux Build Service Account
baf9ce1b35 Merge "diag: Change CDSP socket instance id" 2017-01-18 05:31:19 -08:00
Linux Build Service Account
25c1171bd1 Merge "arm64: Disable ARMv8.1, ARMv8.2 architectural features" 2017-01-18 05:31:18 -08:00
Linux Build Service Account
733bc86afc Merge "ARM: dts: msm: Update memory map for msm8998" 2017-01-18 05:31:17 -08:00
Utkarsh Saxena
82259fbfd6 msm: ipa: Fix to pass ioctl param to reset_stats
Make change to pass the iotcl param to reset_stats
instead of NULL to avoid NULL pointer access.

Change-Id: Ie5fe6d3dd530ac2efc0fe670cccd20b9a2fbe968
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
2017-01-18 17:44:05 +05:30
Ashish Garg
d5258ddb8e ARM: dts: msm: support wqxga panel and truly dsc mode on sdm660
Add the following support on sdm660:
1. Panel timings, power supplies, backlight settings for sharp
wqxga panel.
2. Panel timings for dsc video and command mode for truly panel.

Change-Id: I4f3a6794b8856f4df53717f81f980cf7ab1b73db
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
2017-01-18 02:45:39 -08:00
Amey Telawane
e852c533c6 ARM: dts: msm: modify dcc ram size for sdm660
Modify DCC RAM size for sdm660. DCC RAM is used to
store captured information locally in DCC.

CRs-fixed: 1112955
Change-Id: I6c1a48e11c97be31c575aa9ec4cf024dc4a33fa8
Signed-off-by: Amey Telawane <ameyt@codeaurora.org>
2017-01-18 16:09:34 +05:30
Johannes Berg
434781b501 mac80211: allow passing transmitter station on RX
Sometimes drivers already looked up, or know out-of-band
from their device, which station transmitted a given RX
frame. Allow them to pass the station pointer to mac80211
to save the extra lookup.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
Git-commit: d63b548fffdbd239a5e65bb89424be19229048ba
CRs-Fixed: 1112914
[rsirasan@codeaurora.org: pulled changes only in kernel header
file and mac80211 subsystem]
Change-Id: Ie35906d1e9df1ebe7f72e7a6df3293117abdec57
Signed-off-by: Rajeev Kumar Sirasanagandla <rsirasan@codeaurora.org>
2017-01-18 15:30:45 +05:30