Commit graph

575862 commits

Author SHA1 Message Date
Linux Build Service Account
49042f0e43 Merge "icnss: Provide API to check QMI support" 2016-10-07 22:15:42 -07:00
Linux Build Service Account
4eff38d585 Merge "msm: kgsl: Disable UCHE global filter" 2016-10-07 22:15:41 -07:00
Linux Build Service Account
5b3cec6473 Merge "usb: host: Flush hub workqueue before stopping controller" 2016-10-07 22:15:40 -07:00
Linux Build Service Account
eb3e44cc3f Merge "qpnp-smb2: smb-lib: add charge_done property" 2016-10-07 22:15:39 -07:00
Linux Build Service Account
8e2bd84fbe Merge "ARM: dts: msm: Add support to read FAB ID for PMICOBALT" 2016-10-07 22:15:37 -07:00
Linux Build Service Account
cd4a503c83 Merge "soc:qcom: common_log: change PMIC dump size from 4k to 64k" 2016-10-07 22:15:36 -07:00
Linux Build Service Account
c68dd38b5e Merge "power: reset: Skip emmc_dload sysfs entry creation" 2016-10-07 22:15:34 -07:00
Linux Build Service Account
b08e398913 Merge "msm: rpm-smd-debug: Remove unwanted pr_info" 2016-10-07 22:15:33 -07:00
Vidyakumar Athota
763a423ad5 soc: qcom: handle wdsp glink state notifications
When WDSP has crashed, G-link link state is updated with
GLINK_LINK_STATE_DOWN and remote side channels are closed.
Handle the link state down notification from G-link and
close the channels from local side when remote disconnect
channel event occurs.

Change-Id: Id956256fbb3ea6b18a3685a34dcd1f9b16e71e92
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-10-07 17:19:29 -07:00
Oleg Perelet
7ef8974606 msm: kgsl: Remove GPU BCL and LMH support
a540 hardware does not support BCL and LMH after all.

CRs-Fixed: 1075694
Change-Id: I09808145d20ded63b5043cae6510429560cb599e
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
2016-10-07 14:45:26 -07:00
David Collins
7ff3a4cc82 regulator: correct name used in debug consumer regulator_get call
Call rdev_get_name() to obtain the name to use in the debug
consumer's regulator_get() call so that the debug consumer finds
the correct regulator when the name differs in the constraints
and desc structs.

Change-Id: Id6a47467cd118c89c8f58d1120381d4c64f8efee
CRs-Fixed: 1075693
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-10-07 13:59:18 -07:00
Prasad Sodagudi
4e38f843b6 genirq: Avoid race between cpu hot plug and irq_desc() allocation paths
One of the core might have just allocated irq_desc() and other core
might be doing irq migration in the hot plug path. In the hot plug path
during the IRQ migration, for_each_active_irq macro is trying to get
irqs whose bits are set in allocated_irqs bit map but there is no return
value check after irq_to_desc for desc validity.

[   24.566381] msm_thermal:do_core_control Set Offline: CPU4 Temp: 73
[   24.568821] Unable to handle kernel NULL pointer dereference at virtual address 000000a4
[   24.568931] pgd = ffffffc002184000
[   24.568995] [000000a4] *pgd=0000000178df5003, *pud=0000000178df5003, *pmd=0000000178df6003, *pte=0060000017a00707
[   24.569153] ------------[ cut here ]------------
[   24.569228] Kernel BUG at ffffffc0000f3060 [verbose debug info unavailable]
[   24.569334] Internal error: Oops - BUG: 96000005 [#1] PREEMPT SMP
[   24.569422] Modules linked in:
[   24.569486] CPU: 4 PID: 28 Comm: migration/4 Tainted: G        W       4.4.8-perf-9407222-eng #1
[   24.569684] task: ffffffc0f28f0e80 ti: ffffffc0f2a84000 task.ti: ffffffc0f2a84000
[   24.569785] PC is at do_raw_spin_lock+0x20/0x160
[   24.569859] LR is at _raw_spin_lock+0x34/0x40
[   24.569931] pc : [<ffffffc0000f3060>] lr : [<ffffffc001023dec>] pstate: 200001c5
[   24.570029] sp : ffffffc0f2a87bc0
[   24.570091] x29: ffffffc0f2a87bc0 x28: ffffffc001033988
[   24.570174] x27: ffffffc001adebb0 x26: 0000000000000000
[   24.570257] x25: 00000000000000a0 x24: 0000000000000020
[   24.570339] x23: ffffffc001033978 x22: ffffffc001adeb80
[   24.570421] x21: 000000000000027e x20: 0000000000000000
[   24.570502] x19: 00000000000000a0 x18: 000000000000000d
[   24.570584] x17: 0000000000005f00 x16: 0000000000000003
[   24.570666] x15: 000000000000bd39 x14: 0ffffffffffffffe
[   24.570748] x13: 0000000000000000 x12: 0000000000000018
[   24.570829] x11: 0101010101010101 x10: 7f7f7f7f7f7f7f7f
[   24.570911] x9 : fefefefeff332e6d x8 : 7f7f7f7f7f7f7f7f
[   24.570993] x7 : ffffffc00344f6a0 x6 : 0000000000000000
[   24.571075] x5 : 0000000000000001 x4 : ffffffc00344f488
[   24.571157] x3 : 0000000000000000 x2 : 0000000000000000
[   24.571238] x1 : ffffffc0f2a84000 x0 : 0000000000004ead
...
...
...
[   24.581324] Call trace:
[   24.581379] [<ffffffc0000f3060>] do_raw_spin_lock+0x20/0x160
[   24.581463] [<ffffffc001023dec>] _raw_spin_lock+0x34/0x40
[   24.581546] [<ffffffc000103f10>] irq_migrate_all_off_this_cpu+0x84/0x1c4
[   24.581641] [<ffffffc00008ec84>] __cpu_disable+0x54/0x74
[   24.581722] [<ffffffc0000a3368>] take_cpu_down+0x1c/0x58
[   24.581803] [<ffffffc00013ac08>] multi_cpu_stop+0xb0/0x10c
[   24.581885] [<ffffffc00013ad60>] cpu_stopper_thread+0xb8/0x184
[   24.581972] [<ffffffc0000c4920>] smpboot_thread_fn+0x26c/0x290
[   24.582057] [<ffffffc0000c0f84>] kthread+0x100/0x108
[   24.582135] Code: aa0003f3 aa1e03e0 d503201f 5289d5a0 (b9400661)
[   24.582224] ---[ end trace 609f38584306f5d9 ]---

CRs-Fixed: 1074611
Change-Id: I6cc5399e511b6d62ec7fbc4cac21f4f41023520e
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-10-07 13:07:10 -07:00
Linux Build Service Account
abdd37fc4b Merge "qpnp-smb2: do not configure BATT_OV to end charging cycle" 2016-10-07 12:20:04 -07:00
Linux Build Service Account
4a8282128c Merge "clk: msm: clock-osm: Update OSM timers and enable PLL droop override" 2016-10-07 12:20:02 -07:00
Linux Build Service Account
7678f2b56b Merge "uapi: sound: add new ready packet type" 2016-10-07 12:20:01 -07:00
Linux Build Service Account
5dd11b0fad Merge "ARM: dts: msm: Add and update the dummy clocks for MSMfalcon/MSMtriton" 2016-10-07 12:20:01 -07:00
Linux Build Service Account
44fc68eb86 Merge "clk: qcom: Add support for GPU clocks for MSMFalcon" 2016-10-07 12:20:00 -07:00
Siddartha Mohanadoss
050e3371eb ARM: dts: msm: Add support to read FAB ID for PMICOBALT
REVID peripheral supports reading FAB ID value. Add property
qcom,fab-id-valid to allow clients to access the FAB ID data
for PMICOBALT.

Change-Id: I66463cf3fa7b0fdeba4cb5ee1e34d27b5e736cfb
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2016-10-07 12:15:07 -07:00
Siddartha Mohanadoss
f1fe90b2f8 qpnp: revid: Add support to read FAB ID for PMICOBALT
PMICOBALT supports reading the FAB ID from the REVID
peripheral. Add an optional property qcom,fab-id-valid
to check if support for FAB ID is available in the
REVID peripheral for the PMIC.

Change-Id: If8212618baa7533b008228a71740acf1d6c72a52
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2016-10-07 12:15:07 -07:00
Chandan Uddaraju
76f4f7c532 mdss: DisplayPort: add support for multiple resolutions
Add table to store transfer unit settings for different
resolutions. The table is used for mapping the resolution
with the lane count and Display-port link rate.

Change-Id: I93cc489cdbde21680f8c05311be60ecba053c1db
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-10-07 11:10:18 -07:00
Ajay Singh Parmar
36d28227a5 msm: mdss: edid: limit resolutions support based on interface
Limit the resolutions provided by sink to the ones supported
by the interface so that user modules do not receive the resolutions
which are not supported by the interface.

Change-Id: I63657f139cd7b058d211c306fb596ac5d80f2495
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-10-07 10:39:17 -07:00
Chandan Uddaraju
92618b15ee mdss: DisplayPort: update link-training settings and do DP reset
Add new settings for link-training parameters. Add
code in DP OFF to set the DP state to IDLE mode.

Add support for DP global reset before
initializing DP controller.

Change-Id: Ica893a9b56ae51b12f5d4a192b995aa966dc934e
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-10-07 10:39:17 -07:00
Chandan Uddaraju
a1b989e015 mdss: DisplayPort: add support for color depth and fix workqueue delay
Add changes to have default settings for color depth and
output format in DP controller.

Currently, the workqueue used to handle different events
in controller driver has very high delay in handling events.
Fix this.

Change-Id: I30fc7cb3c57844244ff88167a9b17b32a2fd3a12
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-10-07 10:39:16 -07:00
Chandan Uddaraju
2f59726ce7 clk: msm: mdss: use lane count and orientation to configure DP PHY
Use the information about lane count and orientation
provided in the spare MDP registers by the DP controller
driver to configure the PLL lock sequence.

Change-Id: I1d8465087be91f0a35d83a752a6c09ce27100208
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-10-07 10:38:57 -07:00
Chandan Uddaraju
c9334f3d33 mdss: display-port: add support to share lanes and orientation to DP Phy
The DisplayPort PHY driver needs information about the number
of lanes and the plug orientation to do additional settings.
Add code to support this.

Change-Id: Iafb890596283320dbcb2b4e2e0d83cabfdfcd18e
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-10-07 10:32:47 -07:00
Tatenda Chipeperekwa
0cfcf4427c msm: mdss: dp: fix audio teardown sequence
First update the audio switch node to indicate that the cable was
disconnected. Wait for the audio codec to indicate that the teardown
of the audio path has been completed, timing out after three
seconds. This ensures that the audio framework will start and end
the audio teardown while the interface VSync is still running,
ensuring a graceful shutdown of the audio path.

CRs-Fixed: 1074218
Change-Id: Ia9c792613e5cd9ac273185c6b2f4b30b5df67496
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-10-07 10:32:18 -07:00
Benjamin Chan
4b7bbe3ad1 msm: sde: Reject 0 size image for SDE rotator
Rotator HW cannot support 0 dimension of input and output image. During
V4L2 validation, it must reject any 0 size image format setting.

CRs-Fixed: 1073633
Change-Id: I503561677271c39894b7a6910fe8d9c5c25e9c28
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2016-10-07 10:47:01 -04:00
Hardik Kantilal Patel
6fc3c57c8e ARM: dts: msm: Add icnss node for msmtriton
Add Adrestea base memory address and Copy Engine interrupt
mapping entry.

CRs-fixed: 1075000
Change-Id: I4eab7df3f64f0727afd7202c03ab0343f23ef84d
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
2016-10-07 16:13:15 +05:30
Hardik Kantilal Patel
54391382b3 ARM: dts: msm: Add icnss node for msmfalcon
Add Adrestea base memory address and Copy Engine interrupt
mapping entry.

CRs-fixed: 1075000
Change-Id: I91958cc1348a05c95bde62af0c7b57f6cb82ac59
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
2016-10-07 15:58:21 +05:30
Linux Build Service Account
3c7400dc73 Merge "diag: dci: Fix possible out of bound access" 2016-10-07 01:17:34 -07:00
Linux Build Service Account
36e5723b82 Merge "ASoC: msm: qdsp6v2: support for configurable bit format for AFE encoder" 2016-10-07 01:17:33 -07:00
Linux Build Service Account
73f22baf35 Merge "clk: qcom: clk-rcg2: Declare the rcg struct in clk_gfx3d_src_determine_rate" 2016-10-07 01:17:32 -07:00
Lior David
33a8b1b018 wil6210: initial support for FTM and AOA
Added initial support for fine timing measurement(FTM)
and angle of arrival (AOA). These features allow a station
to get an accurate indoor location by measuring
distance (FTM) and azimuth/elevation (AOA) to one or more
stations/APs with a known location.

The following APIs are supported:
1. Get FTM/AOA capabilities, currently hard-coded for a
single-shot measurement to an associated AP
2. Start FTM session
3. Receive FTM results
4. Start standalone AOA measurement
5. Receive AOA results

Change-Id: I54ebc1bdff6ed7d91644165b16eb0a4240069321
CRs-Fixed: 1057307
Signed-off-by: Lior David <liord@codeaurora.org>
2016-10-07 09:30:23 +03:00
Hareesh Gundu
f5c29ace29 msm: kgsl: Get GPU snapshot if wait for global timestamp timeout
If the wait for global fails due to timeout then nothing after this
point is likely to work very well. Get GPU snapshot in addition to
BUG_ON(), to analyze the GPU fault.

CRs-Fixed: 1053780
Change-Id: I29930120a72a08533c859002f646af93e67c754f
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2016-10-06 23:18:46 -07:00
Taniya Das
5f86ca3e75 clk: qcom: Add support for GPU clocks for MSMFalcon
Add support for the graphics clock controller found on MSMFalcon based
devices. This should allow graphics clocks for GFX clients to be able to do
clock functionality.

Change-Id: I753b40d574a4afc2104a5c2bfe64b4831fbce8a0
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-10-07 11:35:12 +05:30
Hardik Kantilal Patel
0cc08805eb icnss: Provide API to check QMI support
Provide API to check QMI support present or not to WLAN
host driver. Based on this information driver can pass the
DMA physical address info via shadow register to WLAN FW.

CRs-Fixed: 1073647
Change-Id: Iec9d3a3b468ddf6607e4a942bb3cf9133e9f0c34
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
2016-10-06 23:00:51 -07:00
Amit Nischal
14ec7e8172 ARM: dts: msm: Add and update the dummy clocks for MSMfalcon/MSMtriton
For MSMfalcon and MSMtriton, clock consumers requires dummy
rpmcc, gcc, mmss and gfx clocks for their operation so add
the support for registering dummy clocks as follows:
  - Add clock-output-names property for the rpmcc, gcc, mmss
    and gfx clock controller nodes.
  - Add reset-cells property for clock controller nodes.
  - Add two fixed clock nodes named as xo_board and sleep_clk.
  - Remove RPM clock IDs from qcom,gcc-msmfalcon.h.
  - Modify RPM clock names as per qcom,rpmcc.h file.

Change-Id: I06262fe271ab6ba81d4fa5f67315fd1b54edee8c
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2016-10-07 10:44:20 +05:30
Manoj Prabhu B
702e512b92 diag: dci: Fix possible out of bound access
This patch fixes the possible out of bound access by accessing
only dci supported peripheral feature.

Bug: 31864832
CRs-Fixed: 1074901
Change-Id: I99b7feb4b9af8480912a0a3b3e9834f0ecd92189
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2016-10-06 21:33:47 -07:00
Linux Build Service Account
b1dbfd04c7 Merge "regulator: cprh-kbss-regulator: add CPR aging adjustment support" 2016-10-06 19:45:57 -07:00
Linux Build Service Account
787b63ec55 Merge "regulator: cpr3-regulator: add support for CPRh aging adjustment" 2016-10-06 19:45:57 -07:00
Linux Build Service Account
813c4b3c46 Merge "clk: msm: mdss: update PLL configuration to clear precalibrated values" 2016-10-06 19:45:56 -07:00
Linux Build Service Account
f827f291f0 Merge "usb: gadget: f_mtp: Handle mtp os desc properly" 2016-10-06 19:45:55 -07:00
Linux Build Service Account
55eaab8b21 Merge "clk: msm: clock-osm: Use read back instead of memory barrier on MSMCOBALT" 2016-10-06 19:45:54 -07:00
Linux Build Service Account
4d08e69b3c Merge "defconfig: msm: enable display related configs for 32-bit msmfalcon" 2016-10-06 19:45:53 -07:00
Linux Build Service Account
0f6638bbe4 Merge "dwc3-msm: Acquire lock for USB GSI endpoint related operations" 2016-10-06 19:45:51 -07:00
Linux Build Service Account
203cf98893 Merge "usb: gadget: f_gsi: Enable auto detect RNDIS device on windows OS" 2016-10-06 19:45:51 -07:00
Linux Build Service Account
9a87b7449d Merge "sched/tune: add sysctl interface to define a boost value" 2016-10-06 19:45:49 -07:00
Linux Build Service Account
da994453a2 Merge "ARM: dts: msm: Add a dtsi file for msmcobalt QRD device" 2016-10-06 19:45:49 -07:00
Linux Build Service Account
58f6531c5b Merge "thermal: lmh_lite: Page align all the buffers to TZ" 2016-10-06 19:45:48 -07:00
Linux Build Service Account
b02e3335dd Merge "ASoC: msmcobalt: Update machine driver to support 32 bit format" 2016-10-06 19:45:47 -07:00