OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agomsm: kgsl: Allow 0 as a valid ion file descriptor
Carter Cooper [Mon, 20 Jun 2016 21:25:45 +0000 (15:25 -0600)]
msm: kgsl: Allow 0 as a valid ion file descriptor

Treat 0 as a valid fd instead of treating it as an error.

CRs-Fixed: 1030098
Change-Id: I4a1b14fcbca617bc2a43b30af7256edc3920f04c
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
7 years agomsm: kgsl: Remove event worker
Jordan Crouse [Tue, 31 May 2016 17:24:30 +0000 (11:24 -0600)]
msm: kgsl: Remove event worker

Scheduling issues were occurring with the GPU event worker after
b7be807 (msm: kgsl: Unbind the kgsl-event workqueue) was merged.
In certain conditions, it seems that the kgsl-event workqueue
was conflicting with the KGSL worker and slowing it down.

It turns out that everywhere we schedule the event worker
and the dispatcher worker at the same time.  Since the worker
is singlethread, the event worker and the dispatcher run
synchronously anyway, so it makes sense to run the event processor
from within the dispatcher and save the extra schedule.

CRs-Fixed: 1043509
Change-Id: Ic0dedbad67eb04d41afb6add4477f146dfff9784
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
7 years agomsm: kgsl: Make VBIF register dump more generic
Hareesh Gundu [Thu, 23 Jun 2016 09:00:13 +0000 (14:30 +0530)]
msm: kgsl: Make VBIF register dump more generic

Make VBIF register dump more generic to avoid adding new entry
for every VBIF revision. There will not be any change in register
mapping and address for new VBIF revision. AHB reads are permitted
throughout entire VBIF range. For all unoccupied registers read
values driven to 0 by HW but should not be relied upon.

CRs-Fixed: 1021711
Change-Id: I5aada474389e9189abcd38f1bc4854ada91dea87
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
7 years agomsm: kgsl: Read HLSQ SP/TP registers through debug aperture
Harshdeep Dhatt [Wed, 15 Jun 2016 23:28:49 +0000 (17:28 -0600)]
msm: kgsl: Read HLSQ SP/TP registers through debug aperture

Use crash dumper to read HLSQ SP/TP registers through debug ahb
aperture during device snapshot.

CRs-Fixed: 1019957
Change-Id: I3b18fd0d1eab28b6b3e5d314539cfbc15210f675
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
7 years agomsm: kgsl: Don't read CP_RB_RPTR register without clock
Hareesh Gundu [Fri, 3 Jun 2016 09:36:51 +0000 (15:06 +0530)]
msm: kgsl: Don't read CP_RB_RPTR register without clock

For A3xx we get GPU read pointer from the CP_RB_RPTR
register instead of rptr scratch memory address. In
retire_cmdbatch() and _retier_maraker() GPU clock will
be off, so avoid reading CP_RB_RPTR register. Also hold
device mutex in sendcmd() to access GPU registers.

CRs-Fixed: 1024730
Change-Id: Ifa5e9d3f892301685cb48a227ce4967d895499b1
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
7 years agomsm: kgsl: Correct dma_buf_get function return value check
Deepak Kumar [Tue, 7 Jun 2016 10:02:15 +0000 (15:32 +0530)]
msm: kgsl: Correct dma_buf_get function return value check

Check the return value of dma_buf_get function using
IS_ERR_OR_NULL as dma_buf_get function can return
ERR_PTR(-EINVAL) which won't be caught by simple NULL
check. This will avoid kernel panic due to invalid
pointer access.

CRs-Fixed: 1008517
Change-Id: I11ebf618edd25a251d3fb8bb7fbbb886e10d788f
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
7 years agomsm: kgsl: Correct the size of SDS in snapshot
Harshdeep Dhatt [Wed, 11 May 2016 21:29:38 +0000 (15:29 -0600)]
msm: kgsl: Correct the size of SDS in snapshot

Dump 256 instead of 128 dwords of SDS as DRAW_STATE_ADDR is
actually 8 bits wide [7:0] and not 7 bits wide [6:0].

CRs-Fixed: 1023608
Change-Id: I8dcb07bf0a3b9e91b6ec7396d89239fdbd548ac0
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
7 years agomsm: kgsl: Add vbif version for A540
Harshdeep Dhatt [Wed, 25 May 2016 17:47:33 +0000 (11:47 -0600)]
msm: kgsl: Add vbif version for A540

A540 has a new vbif version. Add it so that we can
dump vbif registers in snapshot for A540.

CRs-Fixed: 1024192
Change-Id: Id9323fa98951e2755fcc6903f84a450bc7ab6169
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
7 years agomsm: kgsl: Add A5XX_UCHE_DBG_ECO_CNTL_2 to snapshot
Harshdeep Dhatt [Tue, 24 May 2016 21:04:31 +0000 (15:04 -0600)]
msm: kgsl: Add A5XX_UCHE_DBG_ECO_CNTL_2 to snapshot

Add the register to be dumped in a5xx snapshot.

CRs-Fixed: 1024179
Change-Id: I316029caa10047828375ae0eab1f1d35d30fccb6
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
7 years agomsm: kgsl: Reduce CP preemption record size
Hareesh Gundu [Mon, 23 May 2016 06:02:18 +0000 (11:32 +0530)]
msm: kgsl: Reduce CP preemption record size

A5xx GPUs currently don't need more than 64KB for
CP preemption record.

CRs-Fixed: 1019529
Change-Id: I3df22b7b282fb8ff3269f01b2b258318fc83cbcb
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
7 years agomsm: kgsl: Add array of page pointers to memdesc
Harshdeep Dhatt [Wed, 11 May 2016 15:47:08 +0000 (09:47 -0600)]
msm: kgsl: Add array of page pointers to memdesc

This is done to improve the kgsl vmfault routine. Currently,
it traverses the sglist to find the faulted page, which takes
linear time. By having an array of all the page pointers,
this operation will be completed in constant time.
Also, allocate sgt only for mapping this memory to the GPU.

Since this optimization is not needed for secure/global or
imported memory, we will not keep this array but keep
the sgt instead.

CRs-Fixed: 1006012
Change-Id: I221fce9082da0bdd59842455221b896a33a6ce42
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
7 years agomsm: kgsl: Don't allocate memory for microcode if it is already allocated
Deepak Kumar [Mon, 16 May 2016 08:22:10 +0000 (13:52 +0530)]
msm: kgsl: Don't allocate memory for microcode if it is already allocated

This change adds a check to avoid allocating memory for loading microcode
in case it is already allocated. This avoids memory allocation failure
for microcode during multiple tries by userspace to open the kgsl device
in case of errors.

CRs-Fixed: 1043490
Change-Id: I018ebdb0dab1fc13af8d85a273c1c8b477fa1e26
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
7 years agomsm: kgsl: track GPU active time per frequency
George Shen [Wed, 4 May 2016 01:23:22 +0000 (18:23 -0700)]
msm: kgsl: track GPU active time per frequency

Tracks GPU active time per frequency for GPU workload
profiling. The data will be output in
/sys/class/kgsl/kgsl-3d0/gpu_clock_stats
with one u64 value in microseconds per clock level.
For example:
cat  /sys/class/kgsl/kgsl-3d0/gpu_clock_stats
39392 29292 929292 929292 4040404

CRs-Fixed: 1011462
Change-Id: I5f2caa8b38d99ffd23f03c1dfed1efda273fc2fb
Signed-off-by: George Shen <sqiao@codeaurora.org>
8 years agoMerge "defconfig: Enable REMOTEQDSS"
Linux Build Service Account [Wed, 3 Aug 2016 04:58:57 +0000 (21:58 -0700)]
Merge "defconfig: Enable REMOTEQDSS"

8 years agoMerge "msm: ipa: update wan rx size buffer"
Linux Build Service Account [Wed, 3 Aug 2016 04:58:56 +0000 (21:58 -0700)]
Merge "msm: ipa: update wan rx size buffer"

8 years agoMerge "Revert "Thermal: handle thermal zone device properly during system sleep""
Linux Build Service Account [Wed, 3 Aug 2016 04:58:55 +0000 (21:58 -0700)]
Merge "Revert "Thermal: handle thermal zone device properly during system sleep""

8 years agoMerge "irq-chip: gic-v3: remove print message in irq driver"
Linux Build Service Account [Wed, 3 Aug 2016 04:58:55 +0000 (21:58 -0700)]
Merge "irq-chip: gic-v3: remove print message in irq driver"

8 years agoMerge "ASoC: wcd9335: Changes to support CPE session using EC PP path"
Linux Build Service Account [Wed, 3 Aug 2016 04:58:54 +0000 (21:58 -0700)]
Merge "ASoC: wcd9335: Changes to support CPE session using EC PP path"

8 years agoMerge "CHROMIUM: android: binder: Fix potential scheduling-while-atomic"
Linux Build Service Account [Wed, 3 Aug 2016 04:58:52 +0000 (21:58 -0700)]
Merge "CHROMIUM: android: binder: Fix potential scheduling-while-atomic"

8 years agoMerge "android: binder: Disable preemption while holding the global binder lock."
Linux Build Service Account [Wed, 3 Aug 2016 04:58:51 +0000 (21:58 -0700)]
Merge "android: binder: Disable preemption while holding the global binder lock."

8 years agoMerge "soc: qcom: irq_helper: Add irq helper module"
Linux Build Service Account [Wed, 3 Aug 2016 04:58:50 +0000 (21:58 -0700)]
Merge "soc: qcom: irq_helper: Add irq helper module"

8 years agoMerge "ARM: dts: msm: vote IPA_cfg on msmcobalt"
Linux Build Service Account [Wed, 3 Aug 2016 04:58:50 +0000 (21:58 -0700)]
Merge "ARM: dts: msm: vote IPA_cfg on msmcobalt"

8 years agoMerge "msm: ipa: Fix the memory leak on exception"
Linux Build Service Account [Wed, 3 Aug 2016 04:58:49 +0000 (21:58 -0700)]
Merge "msm: ipa: Fix the memory leak on exception"

8 years agoMerge "smb-lib: Add support for thermal daemon throttling fcc"
Linux Build Service Account [Wed, 3 Aug 2016 04:58:48 +0000 (21:58 -0700)]
Merge "smb-lib: Add support for thermal daemon throttling fcc"

8 years agomsm: ipa: update wan rx size buffer
Sunil Paidimarri [Tue, 5 Jul 2016 19:08:36 +0000 (12:08 -0700)]
msm: ipa: update wan rx size buffer

Consider headroom also while calculating wan
pipe rx buffer size.

Change-Id: Ic1edcb3548eae152fc01de88859bcf311f48f847
CRs-Fixed: 1037822
Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
8 years agoRevert "Thermal: handle thermal zone device properly during system sleep"
Ram Chandrasekar [Mon, 1 Aug 2016 21:02:41 +0000 (15:02 -0600)]
Revert "Thermal: handle thermal zone device properly during system sleep"

This reverts commit <a67208e94d945ad890f8dc4734ec5fdb3219cc03>.

This commit prevented xo shutdown as during suspend exit, WSA sensor for
temperature read triggered a slimbus wakeup. Slimbus suspend mechanism
will expect a qmi message after the system has entered suspend. This
will wake the system from suspend. This happens recursively and
system will never enter suspend.

Revert this commit to avoid this issue, till the slimbus suspend
mechanism is fixed.

Change-Id: I4236f4b6272d0bccaf8a2d6f7d5435caf044bd59
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
8 years agoMerge "mfd: wcd934x: Add page 0x50 registers for wcd934x codec"
Linux Build Service Account [Tue, 2 Aug 2016 13:42:45 +0000 (06:42 -0700)]
Merge "mfd: wcd934x: Add page 0x50 registers for wcd934x codec"

8 years agoMerge "ASoC: msmcobalt: fix proxy channels index value"
Linux Build Service Account [Tue, 2 Aug 2016 13:42:44 +0000 (06:42 -0700)]
Merge "ASoC: msmcobalt: fix proxy channels index value"

8 years agoMerge "input: touchpanel: Move Goodix GT915 driver to drivers folder"
Linux Build Service Account [Tue, 2 Aug 2016 13:42:43 +0000 (06:42 -0700)]
Merge "input: touchpanel: Move Goodix GT915 driver to drivers folder"

8 years agoMerge "input: it7258_ts_i2c: replace unused variable in driver"
Linux Build Service Account [Tue, 2 Aug 2016 13:42:42 +0000 (06:42 -0700)]
Merge "input: it7258_ts_i2c: replace unused variable in driver"

8 years agoMerge "msm: ipa3: update IPA BCR register values"
Linux Build Service Account [Tue, 2 Aug 2016 13:42:42 +0000 (06:42 -0700)]
Merge "msm: ipa3: update IPA BCR register values"

8 years agoMerge "input: msg21xx_ts: Move the driver to proper path"
Linux Build Service Account [Tue, 2 Aug 2016 13:42:40 +0000 (06:42 -0700)]
Merge "input: msg21xx_ts: Move the driver to proper path"

8 years agoMerge "input: it7258_ts_i2c: add low power mode support in suspend state"
Linux Build Service Account [Tue, 2 Aug 2016 13:42:37 +0000 (06:42 -0700)]
Merge "input: it7258_ts_i2c: add low power mode support in suspend state"

8 years agoMerge "input: touchscreen: clean ITE tech driver probe function"
Linux Build Service Account [Tue, 2 Aug 2016 13:42:36 +0000 (06:42 -0700)]
Merge "input: touchscreen: clean ITE tech driver probe function"

8 years agoMerge "Merge remote-tracking branch 'msm-4.4/tmp-2bf7955' into msm-4.4"
Linux Build Service Account [Tue, 2 Aug 2016 13:42:35 +0000 (06:42 -0700)]
Merge "Merge remote-tracking branch 'msm-4.4/tmp-2bf7955' into msm-4.4"

8 years agoMerge "msm: ipa: add support for configuring polling interval/sleep time"
Linux Build Service Account [Tue, 2 Aug 2016 13:42:34 +0000 (06:42 -0700)]
Merge "msm: ipa: add support for configuring polling interval/sleep time"

8 years agoASoC: msmcobalt: fix proxy channels index value
Shiv Maliyappanahalli [Mon, 18 Jul 2016 21:30:08 +0000 (14:30 -0700)]
ASoC: msmcobalt: fix proxy channels index value

The array index value when setting/getting the channels
of proxy is incorrect as the channel count begins from two.
Fix by setting the correct index offset.

Change-Id: I3ab9858daf6dcdbce762946cbdebeb96eaad764a
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
8 years agoMerge "clk: msm: clock-gpu-cobalt: Update the GPU PLL FMAXes"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:51 +0000 (21:56 -0700)]
Merge "clk: msm: clock-gpu-cobalt: Update the GPU PLL FMAXes"

8 years agoMerge "ASoC: msm: Add dapm ignore suspend for front end dais"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:48 +0000 (21:56 -0700)]
Merge "ASoC: msm: Add dapm ignore suspend for front end dais"

8 years agoMerge "ASoC: wcd9335: Add dapm ignore suspend for backend dais"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:47 +0000 (21:56 -0700)]
Merge "ASoC: wcd9335: Add dapm ignore suspend for backend dais"

8 years agoMerge "slim: msm: Handle slimbus HW noise during early boot-up"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:47 +0000 (21:56 -0700)]
Merge "slim: msm: Handle slimbus HW noise during early boot-up"

8 years agoMerge "iommu/arm-smmu: Don't group PCI devices"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:46 +0000 (21:56 -0700)]
Merge "iommu/arm-smmu: Don't group PCI devices"

8 years agoMerge "qcom-charger: qpnp-smb2: disable vbus-error IRQ trigger"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:45 +0000 (21:56 -0700)]
Merge "qcom-charger: qpnp-smb2: disable vbus-error IRQ trigger"

8 years agoMerge "input: touchscreen: add palm-gesture sleep feature"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:44 +0000 (21:56 -0700)]
Merge "input: touchscreen: add palm-gesture sleep feature"

8 years agoMerge "msm: camera: Add support for multiple flash nodes"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:43 +0000 (21:56 -0700)]
Merge "msm: camera: Add support for multiple flash nodes"

8 years agoMerge "Revert "misc: uidstat: Adding uid stat driver to collect network statistics.""
Linux Build Service Account [Tue, 2 Aug 2016 04:56:42 +0000 (21:56 -0700)]
Merge "Revert "misc: uidstat: Adding uid stat driver to collect network statistics.""

8 years agoMerge "xt_qtaguid: Fix panic caused by processing non-full socket."
Linux Build Service Account [Tue, 2 Aug 2016 04:56:41 +0000 (21:56 -0700)]
Merge "xt_qtaguid: Fix panic caused by processing non-full socket."

8 years agoMerge "xt_qtaguid: Fix panic caused by synack processing"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:41 +0000 (21:56 -0700)]
Merge "xt_qtaguid: Fix panic caused by synack processing"

8 years agoMerge "Revert "net: activity_stats: Add statistics for network transmission activity""
Linux Build Service Account [Tue, 2 Aug 2016 04:56:40 +0000 (21:56 -0700)]
Merge "Revert "net: activity_stats: Add statistics for network transmission activity""

8 years agoMerge "Revert "coresight-tpdm: fix dsb edge ctrl mask interface""
Linux Build Service Account [Tue, 2 Aug 2016 04:56:39 +0000 (21:56 -0700)]
Merge "Revert "coresight-tpdm: fix dsb edge ctrl mask interface""

8 years agoMerge "ARM: dts: msm: Enable droop and fault detection for pmicobalt flash LED"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:35 +0000 (21:56 -0700)]
Merge "ARM: dts: msm: Enable droop and fault detection for pmicobalt flash LED"

8 years agoMerge "leds: qpnp-flash-v2: Add support for led_fault_irq"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:35 +0000 (21:56 -0700)]
Merge "leds: qpnp-flash-v2: Add support for led_fault_irq"

8 years agoMerge "ARM: dts: msm: Add support for new flash mode on msmcobalt"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:34 +0000 (21:56 -0700)]
Merge "ARM: dts: msm: Add support for new flash mode on msmcobalt"

8 years agoMerge "msm: camera: Add support for reading new property tag"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:33 +0000 (21:56 -0700)]
Merge "msm: camera: Add support for reading new property tag"

8 years agoMerge "smb-lib: introduce votable to disable charging"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:32 +0000 (21:56 -0700)]
Merge "smb-lib: introduce votable to disable charging"

8 years agoMerge "msm: kgsl: Add 5usec delay for idle check on A540"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:31 +0000 (21:56 -0700)]
Merge "msm: kgsl: Add 5usec delay for idle check on A540"

8 years agoinput: touchpanel: Move Goodix GT915 driver to drivers folder
Bingzhe Cai [Fri, 12 Jul 2013 05:49:24 +0000 (13:49 +0800)]
input: touchpanel: Move Goodix GT915 driver to drivers folder

Goodix GT915 driver was provided by vendor and cherry-picked into
our project, it need to be placed to right location.

Change-Id: Idf191144354426233eca41727a41e26ddbf92f95
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Signed-off-by: Pan Fang <fangpan@codeaurora.org>
8 years agoinput: it7258_ts_i2c: replace unused variable in driver
Shantanu Jain [Mon, 24 Aug 2015 15:09:12 +0000 (20:39 +0530)]
input: it7258_ts_i2c: replace unused variable in driver

Replace an unused variable in the ITE tech touch screen driver.

Change-Id: I49230fb6532ee02f122d5f16dfad8dbd978b368e
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agomfd: wcd934x: Add page 0x50 registers for wcd934x codec
Bhalchandra Gajare [Wed, 13 Jul 2016 01:50:31 +0000 (18:50 -0700)]
mfd: wcd934x: Add page 0x50 registers for wcd934x codec

Registers for page 0x50 in the wcd934x audio codec are currently
not defined. These registers control WCD DSP register configuration
and setup. Add these register definitions so that codec driver can
read/write these registers.

CRs-Fixed: 1049012
Change-Id: If1162c09de8d4d7c330a97a1f133f6d46ce2fd74
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
8 years agosoc: qcom: irq_helper: Add irq helper module
Runmin Wang [Mon, 9 May 2016 20:48:44 +0000 (13:48 -0700)]
soc: qcom: irq_helper: Add irq helper module

This module provides two APIs which are used to control a boolean
sysfs entry deploy. The irq balancer's blacklist in user space will be
controlled by this sysfs entry.

CRs-Fixed: 1013201
Change-Id: Ie6ec7211c64f3c4f53b9f590e5bcf5fa1937d594
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
8 years agoirq-chip: gic-v3: remove print message in irq driver
Runmin Wang [Mon, 1 Aug 2016 23:40:53 +0000 (16:40 -0700)]
irq-chip: gic-v3: remove print message in irq driver

Remove dmesg about irq redistributor since it fills up
the console with every hotplug of the cpus. The information
about redistributor is already disclosed in the dmesg during
bootup.

CRs-Fixed: 1048941
Change-Id: I5ddb2036ab3df4715382368c144365d578ce4bb8
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
8 years agoASoC: wcd9335: Changes to support CPE session using EC PP path
Sudheer Papothi [Tue, 3 May 2016 02:30:06 +0000 (08:00 +0530)]
ASoC: wcd9335: Changes to support CPE session using EC PP path

One of the CPE sessions uses EC(Echo cancellation) PP(Ping-Pong)
path on WCD9335 that is connected to CPE (Codec Processing Engine)
hardware. Configure EC PP path for CPE functionality. This
requires WCD9335 codec to be out of digital core power collapse
without turning on MCLK(Master clock).

CRs-fixed: 1022917
Change-Id: I68200b12fcb316bf36f7c3af2734a094f972da9c
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
8 years agoASoC: wcd9335: Add dapm ignore suspend for backend dais
Sudheer Papothi [Tue, 26 Jul 2016 20:51:36 +0000 (02:21 +0530)]
ASoC: wcd9335: Add dapm ignore suspend for backend dais

DAPM marks back end dai as dirty during ASoC suspend
which triggers device path teardown. Add ignore suspend
to all back end dais to avoid device path teardown.

CRs-Fixed: 1031932
Change-Id: I89f83feed0702f3a3f3b6141ed73459b8878d2df
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
8 years agoiommu/arm-smmu: Don't group PCI devices
Mitchel Humpherys [Tue, 26 Jul 2016 18:03:48 +0000 (11:03 -0700)]
iommu/arm-smmu: Don't group PCI devices

In general, the IOMMU framework likes to group PCI devices together.
This prevents someone from assigning them to separate VMs using VFIO,
for example.  The reason they shouldn't go to separate VMs is because
there could be DMA aliasing between endpoint devices, and because the
root complex device can access anything that endpoint devices can
access.

Unfortunately, this makes things difficult in the DMA layer since the
IOMMU framework freaks out if you try to attach a single device that is
also part of a group.  First instinct might be to start using
iommu_attach_group instead of iommu_attach_device in the DMA layer but
that has problems of its own (it attaches *everyone* in the group as
soon as one client attaches).  Besides all that, it's also a bit
annoying to have the root complex device in group since, in our
platform, it doesn't actually have any stream IDs assigned to it and it
doesn't do any DMA of its own, so it doesn't really make any logical
sense to attach it.

As a compromise, we can stop grouping PCI devices together by allocating
a new domain for each one.  By doing so we no longer need to call
iommu_attach_group in the DMA layer, avoid the issues described above.

It should be noted that with this patch in place we can't securely do
any direct DMA assignment of PCI endpoint devices to separate VMs.

CRs-Fixed: 1036401
Change-Id: I9528b61a695dc7840e1c6f80af18044340f5c6c4
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
8 years agoMerge "ASoC: msmcobalt: Fix channel configuration on msmcobalt"
Linux Build Service Account [Mon, 1 Aug 2016 15:04:24 +0000 (08:04 -0700)]
Merge "ASoC: msmcobalt: Fix channel configuration on msmcobalt"

8 years agoMerge "ASoC: msm: Implement HFP tx mute get function"
Linux Build Service Account [Mon, 1 Aug 2016 15:04:23 +0000 (08:04 -0700)]
Merge "ASoC: msm: Implement HFP tx mute get function"

8 years agoMerge "ASoC: msm: qdsp6v2: Add support to set volume in ASM loopback"
Linux Build Service Account [Mon, 1 Aug 2016 15:04:23 +0000 (08:04 -0700)]
Merge "ASoC: msm: qdsp6v2: Add support to set volume in ASM loopback"

8 years agoMerge "ASoC: msm-cpe-lsm: add support for two CPE sessions"
Linux Build Service Account [Mon, 1 Aug 2016 15:04:22 +0000 (08:04 -0700)]
Merge "ASoC: msm-cpe-lsm: add support for two CPE sessions"

8 years agoMerge "ASoC: msmcobalt: Add 24 bit packed support"
Linux Build Service Account [Mon, 1 Aug 2016 15:04:21 +0000 (08:04 -0700)]
Merge "ASoC: msmcobalt: Add 24 bit packed support"

8 years agoMerge "ARM: dts: msm: By default, handle FW errors as fatal on msmcobalt"
Linux Build Service Account [Mon, 1 Aug 2016 10:01:58 +0000 (03:01 -0700)]
Merge "ARM: dts: msm: By default, handle FW errors as fatal on msmcobalt"

8 years agoMerge "input: touchscreen: add touch to wake feature in ITEtech driver"
Linux Build Service Account [Mon, 1 Aug 2016 10:01:55 +0000 (03:01 -0700)]
Merge "input: touchscreen: add touch to wake feature in ITEtech driver"

8 years agoMerge "qseecom: validate the inputs of __qseecom_send_modfd_resp"
Linux Build Service Account [Mon, 1 Aug 2016 10:01:55 +0000 (03:01 -0700)]
Merge "qseecom: validate the inputs of __qseecom_send_modfd_resp"

8 years agoinput: msg21xx_ts: Move the driver to proper path
Mao Li [Tue, 5 Aug 2014 02:28:30 +0000 (10:28 +0800)]
input: msg21xx_ts: Move the driver to proper path

This Mstar CTP reference driver code is added into a wrong place,
a follow-on patch is created to move the driver to proper path.

Change-Id: I34365ce21659348ad1d1289e3b06b81e778c2648
Signed-off-by: Mao Li <maol@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
8 years agoinput: it7258_ts_i2c: add low power mode support in suspend state
Shantanu Jain [Thu, 18 Jun 2015 07:59:07 +0000 (13:29 +0530)]
input: it7258_ts_i2c: add low power mode support in suspend state

Add low power idle mode support in suspend state for ITE tech
touchscreen driver.
Also, execute the touch to wake feature code only when device moves
from idle state to active state.

Change-Id: Ia989d8130bbded4ae5acab0b9c3122998acb2056
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoinput: it7258_ts_i2c: add dt parsing support
Shantanu Jain [Mon, 18 May 2015 13:29:19 +0000 (18:59 +0530)]
input: it7258_ts_i2c: add dt parsing support

Add DT parsing support to ITE tech touchscreen driver.

Change-Id: I4b6b9867dc0d74c02d165aae670213544fcda1bc
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoinput: it7258_ts_i2c: add force fw and cfg update functionality
Shantanu Jain [Thu, 28 May 2015 16:17:00 +0000 (21:47 +0530)]
input: it7258_ts_i2c: add force fw and cfg update functionality

Add force firmware and config update functionality to ITE Tech
touchscreen driver.

Change-Id: I63720092f445700b7ae66e10950d87a4654060aa
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoinput: touchscreen: add auto fw upgrade for ITE tech driver
Shantanu Jain [Thu, 14 May 2015 14:09:38 +0000 (19:39 +0530)]
input: touchscreen: add auto fw upgrade for ITE tech driver

Add auto firmware and config upgrade functionality for ITE tech
touchscreen driver.
Add sysfs support for manual fw and cfg upgrade functionality.
Also clean the sysfs function names.

Change-Id: I8912545589cb763c1deb70bebb081e920af69ad2
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoinput: touchscreen: add protocol B support for ITE tech driver
Shantanu Jain [Sun, 17 May 2015 14:31:20 +0000 (20:01 +0530)]
input: touchscreen: add protocol B support for ITE tech driver

Add multi-touch protocol B support for ITE tech touch
screen driver.

Change-Id: I9ed40ccedab71a3800b97fc7825741855bceaa29
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoASoC: msmcobalt: Add 24 bit packed support
Manish Dewangan [Wed, 13 Jul 2016 09:18:43 +0000 (14:48 +0530)]
ASoC: msmcobalt: Add 24 bit packed support

Changes to support packed 24 bit (SNDRV_PCM_FORMAT_S24_3LE)

CRs-Fixed: 1011048
Change-Id: Id927e9b8894b1bf99e57cc0f04abf126740c6d36
Signed-off-by: Manish Dewangan <manish@codeaurora.org>
8 years agoinput: touchscreen: clean ITE tech driver probe function
Shantanu Jain [Mon, 18 May 2015 11:39:55 +0000 (17:09 +0530)]
input: touchscreen: clean ITE tech driver probe function

Clean ITE tech driver probe function with proper error paths,
call sequence, and return values to release the resources
properly.
Also, release the resource in driver's remove function.

Change-Id: Ia81bb3da7e0b880de6f2ed95d346b533104ed3fc
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoinput: touchscreen: clean ITE tech TS driver
Shantanu Jain [Sun, 17 May 2015 10:37:42 +0000 (16:07 +0530)]
input: touchscreen: clean ITE tech TS driver

Clean ITE tech touchscreen driver.
Structurize driver data members, replace standard logging
function calls & messages, change to proper function names,
change to proper variable names, remove unnecessary sysfs entry.

Change-Id: I02bcea18e93146b68aaeb8d81fa7bec67b5bcc73
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoinput: touchscreen: add palm-gesture sleep feature
Shantanu Jain [Fri, 15 May 2015 13:46:36 +0000 (19:16 +0530)]
input: touchscreen: add palm-gesture sleep feature

Add palm-gesture sleep feature for ITE tech touchscreen
driver. When enabled the driver sends a key code to the
user space. Two optional device-tree properties are added
for this: ite,palm-detect and ite,palm-detect-keycode.

Change-Id: I0989cb66ab5edb10769ced9d525bd4f6d7adb02b
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoinput: touchscreen: add touch to wake feature in ITEtech driver
Shantanu Jain [Thu, 14 May 2015 09:38:58 +0000 (15:08 +0530)]
input: touchscreen: add touch to wake feature in ITEtech driver

Add touch to wake feature in ITE tech touchscreen driver.
The touchscreen interrupt is configured as wakeable interrupt,
so TS can be used to wake the device from suspend state.

Change-Id: I8da53ab4f03237b8652cd5891eadbffa752d72d3
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoinput: it7258_ts_i2c: add debugfs support for suspend/resume
Shantanu Jain [Fri, 15 May 2015 13:24:18 +0000 (18:54 +0530)]
input: it7258_ts_i2c: add debugfs support for suspend/resume

Add debugfs support for suspend and resume test for ITE
tech touchscreen driver.

Change-Id: I5a3d55c7c8e4b8f594fd7924c61ac1e5b5ad1965
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoMerge "ASoC: audio-ext-clk: check for null pointer de-reference"
Linux Build Service Account [Mon, 1 Aug 2016 04:36:45 +0000 (21:36 -0700)]
Merge "ASoC: audio-ext-clk: check for null pointer de-reference"

8 years agoMerge "ARM: dts: msm: add battery profiles to msmcobalt MTP"
Linux Build Service Account [Sun, 31 Jul 2016 22:57:10 +0000 (15:57 -0700)]
Merge "ARM: dts: msm: add battery profiles to msmcobalt MTP"

8 years agoMerge "ARM: dts: msm: add batterydata for itech and ascent batteries"
Linux Build Service Account [Sun, 31 Jul 2016 22:57:10 +0000 (15:57 -0700)]
Merge "ARM: dts: msm: add batterydata for itech and ascent batteries"

8 years agoMerge "ft5x06: Set input property bit to indicate a direct input device"
Linux Build Service Account [Sun, 31 Jul 2016 17:19:13 +0000 (10:19 -0700)]
Merge "ft5x06: Set input property bit to indicate a direct input device"

8 years agoMerge "msm: mdss: add support to configure transfer unit for DP"
Linux Build Service Account [Sun, 31 Jul 2016 17:19:10 +0000 (10:19 -0700)]
Merge "msm: mdss: add support to configure transfer unit for DP"

8 years agoMerge "input: touchscreen: synaptics v1.1"
Linux Build Service Account [Sun, 31 Jul 2016 17:19:09 +0000 (10:19 -0700)]
Merge "input: touchscreen: synaptics v1.1"

8 years agomsm: ipa3: update IPA BCR register values
Amir Levy [Sun, 31 Jul 2016 09:51:23 +0000 (12:51 +0300)]
msm: ipa3: update IPA BCR register values

Set IPA BCR register value according to HW type.
BCR register values are taken from IPA HPG and should
correlate with the relevant IPAv3.x HW type.

CRs-Fixed: 1048435
Change-Id: I5ece4a5676cf1d2fae4a5276da5833272cd95ecb
Signed-off-by: Amir Levy <alevy@codeaurora.org>
8 years agoinput: touchscreen: add protocol A support to ITE tech driver
Himanshu Aggarwal [Tue, 12 May 2015 13:27:58 +0000 (18:57 +0530)]
input: touchscreen: add protocol A support to ITE tech driver

Add multi-touch protocol A support to ITE tech touchscreen
driver.

Change-Id: I49bc7e3eaa3b266fe92bb209f56ae5a1b40675e0
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoinput: touchscreen: add suspend-resume and fb support
Shantanu Jain [Thu, 14 May 2015 08:47:38 +0000 (14:17 +0530)]
input: touchscreen: add suspend-resume and fb support

Add suspend-resume and fb notification support for
ITE tech touchscreen driver.

Change-Id: I9a601412fb9a3935c0eadad5157bb1fd819b29dd
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoMerge "usb: dwc3: Update VBUS status with USB controller"
Linux Build Service Account [Sat, 30 Jul 2016 21:11:34 +0000 (14:11 -0700)]
Merge "usb: dwc3: Update VBUS status with USB controller"

8 years agoMerge "usb: phy: qusb: Remove updating VBUS status from QUSB PHY driver"
Linux Build Service Account [Sat, 30 Jul 2016 21:11:34 +0000 (14:11 -0700)]
Merge "usb: phy: qusb: Remove updating VBUS status from QUSB PHY driver"

8 years agoqcom-charger: qpnp-smb2: disable vbus-error IRQ trigger
Nicholas Troast [Tue, 19 Jul 2016 22:09:33 +0000 (15:09 -0700)]
qcom-charger: qpnp-smb2: disable vbus-error IRQ trigger

When a Type-C legacy cable is connected to the phone but left unconnected
on the other side an interrupt storm can be observed which is caused by
the vbus-error interrupt trigger. Disable this interrupt trigger.

Change-Id: I5342c58acc83ecff4bf5f8e425de94daa1dabb50
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
8 years agomsm: camera: Add support for multiple flash nodes
Viswanadha Raju Thotakura [Thu, 2 Jun 2016 00:20:45 +0000 (17:20 -0700)]
msm: camera: Add support for multiple flash nodes

Add support for flash nodes for front and rear
camera.

CRs-Fixed: 1021009
Change-Id: I52537562214d439e9652bb6ba90f0d29e5b24fda
Signed-off-by: Viswanadha Raju Thotakura <viswanad@codeaurora.org>
8 years agoASoC: msmcobalt: Fix channel configuration on msmcobalt
Sudheer Papothi [Wed, 27 Jul 2016 21:15:20 +0000 (02:45 +0530)]
ASoC: msmcobalt: Fix channel configuration on msmcobalt

Channel ids are not updated correctly in hardware params
fixup resulting in audio mute on one of the channels on headphones.
Fix the channel ids properly in msmcobalt machine driver hardware
params fixup.

CRs-Fixed: 1034829
Change-Id: If23da9ac1d2f71ad4d39371b665311f1f84b016a
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
8 years agoqseecom: validate the inputs of __qseecom_send_modfd_resp
Zhen Kong [Mon, 18 Jul 2016 20:20:18 +0000 (13:20 -0700)]
qseecom: validate the inputs of __qseecom_send_modfd_resp

The resp_len and resp_buf_ptr of qseecom_send_modfd_listener_resp
are not checked, then an userspace application that manipulates
resp_len can corrupt the kernel memory. Thus make changes to
validate these parameters.

CRs-fixed: 1036418
Change-Id: Id43ec6b55b332d0dac09a9abb998a410f49b44f7
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
8 years agousb: dwc3: Update VBUS status with USB controller
Mayank Rana [Thu, 28 Jul 2016 19:32:06 +0000 (12:32 -0700)]
usb: dwc3: Update VBUS status with USB controller

It is required to update VBUS status to USB controller using qscratch
registers HS_PHY_CTRL and SS_PHY_CTRL interfacing high-speed and
super-speed PHYs. This change perfoms same from USB controller's glue
driver on starting and stopping peripheral mode based on supported
USB speed with USB gadget.

It also updates devicetree documentation explicitly mentioning required
register sets.

CRs-Fixed: 1046503
Change-Id: I92df87c0e2ff54dd7ee513d277cc075eab561019
Signed-off-by: Mayank Rana <mrana@codeaurora.org>