Commit graph

579929 commits

Author SHA1 Message Date
Vijayavardhan Vennapusa
7da888fb9f ARM: dts: msm: Make required changes for msm8998-interposer
Add required changes for LDOs for msm8998-interposer-msmfalcon
for USB functionality to be working.

Change-Id: I121651a49ef27ba02f1960ed5c95baf93b00d1f5
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-11-25 10:53:07 +05:30
Vijayavardhan Vennapusa
b1aeba6864 ARM: dts: msm: Add USBPD PHY device node for msmfalcon
Add required USBPD PHY device node for msmfalcon for USB PD
functionality to be working.

Change-Id: I8cd2981f176e08c1ea4f8a9b7ff42887b590d941
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-11-25 10:48:06 +05:30
Dilip Gudlur
f9569c05cd soc: qcom: Turn off MSM_PERFORMANCE_HOTPLUG_ON by default
Core-ctl module by default, manages cpus instead of msm_performance
module. Set this config to allow msm_performance manage(hot-plug) cores
in the absence of core-ctl.

Change-Id: I02a1007edfc63ad2c2dd99616cb1a64432b08d13
Signed-off-by: Dilip Gudlur <dgudlur@codeaurora.org>
2016-11-24 18:21:05 -08:00
Meng Wang
cd2519b7dc ASoC: audio-ext-clk: add new audio ext clock
In common clock framework, API for registering clk
provider for a node is changed to of_clk_add_provider.
Add new audio ext clock file to use new API to register
audio clk provider.

Crs-Fixed: 1090500
Change-Id: I1d7ecc6a3d4c48d0de9645043d5e5bfdfa1d1f5f
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-11-25 09:20:12 +08:00
Lior David
a43a092282 wil6210: support FTM/AOA while unassociated
Prepare driver for FTM/AOA while unassociated.
1. Added attributes allowing user space to specify the frequency
where FTM/AOA peer is listening. When specified it will override
the entry in the kernel scan results cache. If not specified,
the kernel scan results cache will be used like today.
This gives user space location framework more flexibility - it
can maintain its own cache of peers, or perform scans less
often (since entries in the kernel scan results cache expire
quickly)
2. Remove associated check when starting FTM session, so session
can start even when unassociated.

Change-Id: Ib0ba52c506e1d8d59ab8c12043acd792405d69a0
CRs-Fixed: 1094147
Signed-off-by: Lior David <liord@codeaurora.org>
2016-11-24 23:57:16 +02:00
Linux Build Service Account
bee274711e Merge "clk: qcom: Add snapshot of OSM CPU clock driver" 2016-11-24 13:46:42 -08:00
Linux Build Service Account
00bfc5fe15 Merge "ARM: dts: msm: Add RTB support for msmtriton" 2016-11-24 13:46:38 -08:00
Linux Build Service Account
97679b802a Merge "ARM: dts: msm: Add mpm2-sleep-counter device for msmtriton" 2016-11-24 13:46:37 -08:00
Linux Build Service Account
2488cd08b4 Merge "arm: qcom: correct description for MSMTRITON and MSMFALCON" 2016-11-24 13:46:36 -08:00
Subhash Jadavani
00e8c4542a ARM: dts: msm: add UFS_RESET pin ctrl data for msm8998
This change adds the UFS_RESET pin ctrl data for UFS controller node.
This will enable UFS driver to issue reset to UFS device.

Change-Id: I61561fb7e395671d2bc52c6a9c0c71e0351114ea
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2016-11-24 07:59:56 -08:00
Subhash Jadavani
0c82737188 scsi: ufs: add UFS device reset support
Some platforms may have a SOC pin/gpio connected to UFS device's
RST_n to allow the UFS device reset. This change adds support to
trigger device reset on such platforms.

Change-Id: Ie4faa47fb76837dba909f9a3d0dfe11bc69659e1
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2016-11-24 07:55:03 -08:00
Subhash Jadavani
1f92a7048e pinctrl: qcom: add UFS_RESET pin data for msm8998
UFS_RESET is a single purpose output only pin which can be used
to send reset to connected UFS device. This change adds the
UFS_RESET pin data.

Change-Id: Iec5e70e3f57a8dd06c0ceda3a6e67e47e043f2d1
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2016-11-24 07:53:45 -08:00
Venkat Gopalakrishnan
c1f300eab8 scsi: ufs: perform full reset at initialization
The phy initialization sequence assumes a POR state but
the bootloaders can leave PHY at an already initialized
state, hence there could potentially be issues with the
initialization from ufs driver. Perform a full reset to
start from a power on reset state. Also a reset is
required by the UFS hardware programming guide.

Change-Id: I0118b0d3013166aeec0bb0bc0ef181e48998e758
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-11-24 07:50:23 -08:00
Venkat Gopalakrishnan
6a714c1bf8 scsi: ufs-qcom: update delay between assert/deassert in full reset
The hardware requirement for delay between assert/deassert
is at least 3-4 sleep clock (32.7KHz) cycles, which comes to
~125us (4/32768). To be on the safe side add 200us delay.

Change-Id: Ib9d27fe7bbf6107b1249b3719f63efdbff4b3795
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-11-24 07:49:32 -08:00
Arun Kumar Dasari
07c5d36ead misc: qcom: qdsp6v2: register ioctl calls for g711mlaw driver
Add support for ioctl calls registration in g711mlaw driver.

CRs-Fixed: 1094107
Change-Id: Ia5fddfce1f2eebaa08aad0f53cab9c0993b37695
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2016-11-24 21:08:22 +05:30
Arun Kumar Dasari
35f5cc528f misc: qcom: qdsp6v2: modify amr decoder driver
Modify decoder driver for amrwb and amrnb.
Add compat ioctl to support 32-bit architecture.

CRs-Fixed: 1094107
Change-Id: I7d463e4e14c896be33ffb3be418b9f91f49107c5
Signed-off-by: Yamit Mehta <ymehta@codeaurora.org>
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2016-11-24 21:08:09 +05:30
Arun Kumar Dasari
2ca2287f95 misc: qcom: qdsp6v2: add G711 decoder driver
add decoder driver for G711 and define a structure in a
new header which contains G711 specific configuration.
Pass this configuration parameters to the aDSP for
successful decode of G711 content.

CRs-Fixed: 1094107
Change-Id: I5296de4f525adec549c8d51fbf7fc76120b3b4f5
Signed-off-by: Yamit Mehta <ymehta@codeaurora.org>
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2016-11-24 21:07:59 +05:30
Arun Kumar Dasari
a4e64cc296 msm: Add msm_audio_g711_dec header file to Kbuild
This change adds the msm_audio_g711_dec.h file to the Kbuild.
With this change header appear properly in userspace builds.

CRs-Fixed: 1094107
Change-Id: Iab3a45c43b38b4e004c9c297fb84dfe9e6f3e2be
Signed-off-by: Yamit Mehta <ymehta@codeaurora.org>
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2016-11-24 21:07:50 +05:30
Arun Kumar Dasari
b23b342e6c ASoC: msm: qdsp6v2: support decode of g711 clips
Add support in audio stream manager to configure decode
of g711 related clips.

CRs-Fixed: 1094107
Change-Id: Ie90fd68e24e7e793aaac64290e3c1e41682d6d5a
Signed-off-by: Yamit Mehta <ymehta@codeaurora.org>
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2016-11-24 21:07:42 +05:30
Preetam Singh Ranawat
823875c46e audio: add G711 audio encoding support
G711 PCM is a commonly used waveform speech codec.
Add native audio drivers for both G711 mlaw and G711
alaw encoding formats.

CRs-Fixed: 1094107
Change-Id: Ia187948fab9840447b1f5b1ede4e9a1ece0b85c5
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2016-11-24 21:07:31 +05:30
Surendar karka
c42df21480 msm: Add msm_audio_g711 header file to Kbuild
This change adds the msm_audio_g711.h file to the Kbuild.
With this change header appear properly in userspace builds.

CRs-Fixed: 1094107
Change-Id: I40a0e5b7635e8585b9fc4cb01cfdb213418619c5
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2016-11-24 21:07:23 +05:30
Surendar karka
49af56584b ASoC: msm: qdsp6v2: support encode of g711 format
Add support in audio stream manager to configure encode
of g711 format

CRs-Fixed: 1094107
Change-Id: I496a975e427f68d7bb5cc2789bfc9bb949658233
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2016-11-24 21:05:34 +05:30
Linux Build Service Account
a9a8ec4cae Merge "msm: vidc: parse 10-bit bus entries for msmfalcon" 2016-11-24 06:13:39 -08:00
Linux Build Service Account
baccd73792 Merge "ARM: dts: msm: Add venus device nodes for starlord" 2016-11-24 06:13:38 -08:00
Linux Build Service Account
c17ad2a8a7 Merge "msm: vidc: Update mbs per second calculation" 2016-11-24 06:13:36 -08:00
Linux Build Service Account
4edc6e2899 Merge "msm: vidc: fix mutex lock issue" 2016-11-24 06:13:35 -08:00
Linux Build Service Account
8c41e4e6b1 Merge "msm: vidc: fix the interrupt miss issue from video hardware" 2016-11-24 06:13:34 -08:00
Linux Build Service Account
383d1c1542 Merge "msm: kgsl: Add support for A512 GPU" 2016-11-24 06:13:33 -08:00
Linux Build Service Account
8a70f4e5d7 Merge "ASoC: msm: Update supported sample rates for USB Backend" 2016-11-24 06:13:32 -08:00
Linux Build Service Account
d2f94a9a44 Merge "netfilter: nfnetlink: correctly validate length of batch messages" 2016-11-24 06:13:31 -08:00
Linux Build Service Account
e49d49a3ec Merge "USB: gagget: f_fs: Return error if TX req is queued during device offline" 2016-11-24 06:13:30 -08:00
Linux Build Service Account
e9ccaa5b66 Merge "clk: qcom: Add support for rf clk1 for msmfalcon" 2016-11-24 06:13:29 -08:00
Linux Build Service Account
11c49a900c Merge "ARM: dts: msm: Update clock gfx node for MSMfalcon/Triton" 2016-11-24 06:13:27 -08:00
Linux Build Service Account
57f5019a62 Merge "clk: qcom: Add support for MMCC clock for MSMFalcon" 2016-11-24 06:13:26 -08:00
Linux Build Service Account
0e7a3bb0e4 Merge "cgroup: prefer %pK to %p" 2016-11-24 06:13:25 -08:00
Linux Build Service Account
a2f553518d Merge "HID: core: prevent out-of-bound readings" 2016-11-24 06:13:24 -08:00
Linux Build Service Account
f3e00aadcd Merge "[media] xc2028: avoid use after free" 2016-11-24 06:13:22 -08:00
Linux Build Service Account
065421c6fa Merge "tcp: fix use after free in tcp_xmit_retransmit_queue()" 2016-11-24 06:13:22 -08:00
Linux Build Service Account
091685a6a4 Merge "block: fix use-after-free in sys_ioprio_get()" 2016-11-24 06:13:20 -08:00
Linux Build Service Account
aff86d3b4f Merge "cfg80211: validate beacon int as part of iface combinations" 2016-11-24 06:13:18 -08:00
Linux Build Service Account
2fb4ab87aa Merge "cfg80211: fix beacon interval in interface combination iteration" 2016-11-24 06:13:18 -08:00
Linux Build Service Account
7193fef2dc Merge "cfg80211: identically validate beacon interval for AP/MESH/IBSS" 2016-11-24 06:13:17 -08:00
Linux Build Service Account
c82d43b7d9 Merge "msm: sde: Correct max downscale factor for SDE rotator" 2016-11-24 06:13:16 -08:00
Maulik Shah
89fb17040f soc: qcom: rpm: Change driver memory allocation to use GFP_NOIO
When a filesystem driver calls into makes a RPM request, RPM driver
makes a kzalloc request with GFP_NOFS flag. This results in a
deadlock if a driver waiting on IO completion sends a RPM message.

Change memory allocation in the RPM driver to use GFP_NOIO.

Change-Id: Ie986b6eb21845b679f068372e46dfb402f234dcf
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2016-11-24 04:17:13 -08:00
Laxminath Kasam
ccfb87028b ARM: dts: msm: Specify the configuration for audio on msmfalcon interposer
In msmfalcon interposer for CDP and MTP, add
audio related dtsi files to support external
codecs tasha and tavil.

CRs-Fixed: 1083537
Change-Id: I867e28101cfa37f9764d547f3b43871a430de6d7
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2016-11-24 17:21:27 +05:30
Sudeep Yedalapure
6c6a15fc06 adreno_tz: Fix divide by zero problem in gpu_load_show()
If the acc_total value is zero then kernel would crash on
div-by-zero. Add better input validation in gpu_load_show()
to avoid divide by zero problem.

CRs-Fixed: 1092584
Change-Id: I7affbd797bf4b0025f718c757043b36f392dae5b
Signed-off-by: Sudeep Yedalapure <sudeepy@codeaurora.org>
2016-11-24 12:45:39 +05:30
Kiran Gunda
5282e3353f ARM: dts: msm: add support of pm3falcon PMIC for msmfalcon
PM3FALCON inherits all it's peripheral nodes from PM2FALCON.
Disable WLED which is not supported on pm3falcon.

CRs-Fixed: 1093681
Change-Id: I1eb0583010712286659ec9b726f4ae7a9a2a84e6
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2016-11-24 10:30:01 +05:30
Patrick Daly
0d0dfec04b iommu: io-pgtable-arm: Use correct bitmask for pgd entry
Ensure that the bits larger than cfg->ias are masked out before mapping an
address in a pagetable. This is required in order to map a sign-extended
address into TTBR1; for other use cases the bits above cfg->ias are
expected to be zero.

Change-Id: I2463cef7e0238cf887dcc682977375eb08d6973b
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2016-11-23 17:45:48 -08:00
Patrick Daly
6adac935e6 mm: Inform KASAN when allocating pages during isolation
kasan_alloc_pages() should be called alongside kernel_map_pages() to
prevent splats when CONFIG_KASAN is enabled.

This is a greatly simplified version of
commit 46f24fd857b37bb86ddd5d0ac3d194e984dfdf1c
("mm/page_alloc: introduce post allocation processing on page allocator")
which solve the same problem on later kernel versions.

Change-Id: Ib60d079a4d8685e781624bb1403b2a3060e31d27
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2016-11-23 17:18:03 -08:00
Patrick Daly
767cab9493 iommu: iommu-debug: Allow full dma_addr_t sized address for atos
Iommu addresses are unsigned numbers. Therefore use the unsigned variants
of the kstrto*_from_user functions.

Change-Id: I9a34d522a8dc7e2efca95b5a1ccb6a7a2e260b42
Reported-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2016-11-23 15:49:46 -08:00