OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agoMerge "mm: remove gup_flags FOLL_WRITE games from __get_user_pages()"
Linux Build Service Account [Sun, 11 Dec 2016 07:06:39 +0000 (23:06 -0800)]
Merge "mm: remove gup_flags FOLL_WRITE games from __get_user_pages()"

7 years agoMerge "clk: msm: clock-osm: don't use version register to enable WDOG status"
Linux Build Service Account [Sun, 11 Dec 2016 07:06:38 +0000 (23:06 -0800)]
Merge "clk: msm: clock-osm: don't use version register to enable WDOG status"

7 years agoMerge "ARM: dts: msm: enable the watchdog bark interrupt for smb138x"
Linux Build Service Account [Sun, 11 Dec 2016 07:06:37 +0000 (23:06 -0800)]
Merge "ARM: dts: msm: enable the watchdog bark interrupt for smb138x"

7 years agoMerge "power: bcl: Add frequency mitigation as an optional property for BCL"
Linux Build Service Account [Sun, 11 Dec 2016 07:06:36 +0000 (23:06 -0800)]
Merge "power: bcl: Add frequency mitigation as an optional property for BCL"

7 years agoMerge "ARM: dts: msm: Add BCL peripheral configs for pmfalcon"
Linux Build Service Account [Sun, 11 Dec 2016 07:06:36 +0000 (23:06 -0800)]
Merge "ARM: dts: msm: Add BCL peripheral configs for pmfalcon"

7 years agoMerge "ARM: dts: msm: add qdss node support for msmtriton"
Linux Build Service Account [Sun, 11 Dec 2016 07:06:35 +0000 (23:06 -0800)]
Merge "ARM: dts: msm: add qdss node support for msmtriton"

7 years agoMerge "sound: usb: Handle implicit feedback data endpoint properly"
Linux Build Service Account [Sun, 11 Dec 2016 07:06:35 +0000 (23:06 -0800)]
Merge "sound: usb: Handle implicit feedback data endpoint properly"

7 years agoMerge "sched: Ensure proper task migration when a CPU is isolated"
Linux Build Service Account [Sat, 10 Dec 2016 23:43:17 +0000 (15:43 -0800)]
Merge "sched: Ensure proper task migration when a CPU is isolated"

7 years agoMerge "sched/core: Fix race condition in clearing hmp request"
Linux Build Service Account [Sat, 10 Dec 2016 23:43:16 +0000 (15:43 -0800)]
Merge "sched/core: Fix race condition in clearing hmp request"

7 years agoMerge "usb: phy: qusb2: Add support to vote for regulator L2a"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:45 +0000 (19:59 -0800)]
Merge "usb: phy: qusb2: Add support to vote for regulator L2a"

7 years agoMerge "msm: mdss: dp: correctly ref count the pll resources"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:42 +0000 (19:59 -0800)]
Merge "msm: mdss: dp: correctly ref count the pll resources"

7 years agoMerge "msm: vidc: Disable clocks in reverse order"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:40 +0000 (19:59 -0800)]
Merge "msm: vidc: Disable clocks in reverse order"

7 years agoMerge "msm: vidc: Fix kw issues"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:39 +0000 (19:59 -0800)]
Merge "msm: vidc: Fix kw issues"

7 years agoMerge "iommu: arm-smmu: Fix clock reference count error"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:38 +0000 (19:59 -0800)]
Merge "iommu: arm-smmu: Fix clock reference count error"

7 years agoMerge "ASoC: msm: qdsp6v2: Add mutex in afe_map_cal_data"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:38 +0000 (19:59 -0800)]
Merge "ASoC: msm: qdsp6v2: Add mutex in afe_map_cal_data"

7 years agoMerge "ASoC: msm: enable DAP set license logic on 8998"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:37 +0000 (19:59 -0800)]
Merge "ASoC: msm: enable DAP set license logic on 8998"

7 years agoMerge "ASoC: soc: add a new dailink for VI recording"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:35 +0000 (19:59 -0800)]
Merge "ASoC: soc: add a new dailink for VI recording"

7 years agoMerge "ARM: dts: msm: Update camera GPIO, VREG config for msmfalcon interposer"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:35 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Update camera GPIO, VREG config for msmfalcon interposer"

7 years agoMerge "defconfig: msmfalcon: Enable audiosource gadget driver"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:34 +0000 (19:59 -0800)]
Merge "defconfig: msmfalcon: Enable audiosource gadget driver"

7 years agoMerge "defconfig: msmfalcon: enable the USB video class support"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:30 +0000 (19:59 -0800)]
Merge "defconfig: msmfalcon: enable the USB video class support"

7 years agoMerge "scsi: ufs: fix shutdown race condition"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:29 +0000 (19:59 -0800)]
Merge "scsi: ufs: fix shutdown race condition"

7 years agoMerge "ARM: dts: msm: add touch node for QTC800H in msm8998 QRD SKUK"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:29 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: add touch node for QTC800H in msm8998 QRD SKUK"

7 years agoMerge "power_supply: Add BOOST_CURRENT property"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:28 +0000 (19:59 -0800)]
Merge "power_supply: Add BOOST_CURRENT property"

7 years agoMerge "msm: ipa3: check the rx_door_bell value on disable"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:27 +0000 (19:59 -0800)]
Merge "msm: ipa3: check the rx_door_bell value on disable"

7 years agoMerge "qpnp-fg-gen3: Add support for PMFALCON in Fuel Gauge"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:26 +0000 (19:59 -0800)]
Merge "qpnp-fg-gen3: Add support for PMFALCON in Fuel Gauge"

7 years agoMerge "ASoC: wcd934x-dsp-cntl: fix the reset sequence"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:25 +0000 (19:59 -0800)]
Merge "ASoC: wcd934x-dsp-cntl: fix the reset sequence"

7 years agoMerge "include: clock: remove ifdef from header file"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:25 +0000 (19:59 -0800)]
Merge "include: clock: remove ifdef from header file"

7 years agoMerge "ASoC: qdsp6v2: prevent null pointer dereference for _vol_cmds"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:24 +0000 (19:59 -0800)]
Merge "ASoC: qdsp6v2: prevent null pointer dereference for _vol_cmds"

7 years agoMerge "msm: thermal: Notify LMH DCVSh driver after freq mitigation request"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:23 +0000 (19:59 -0800)]
Merge "msm: thermal: Notify LMH DCVSh driver after freq mitigation request"

7 years agoMerge "ARM: dts: msm: Specify coresight trace ID for msm8998"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:21 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Specify coresight trace ID for msm8998"

7 years agoMerge "ARM: dts: msm: Add GPU coresight properties for msm8998"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:21 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Add GPU coresight properties for msm8998"

7 years agoMerge "ARM: dts: msm: update wcn3990 node for msm8998 interposer"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:20 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: update wcn3990 node for msm8998 interposer"

7 years agoMerge "ARM: dts: msm: Attach device memory to lpass iommu on msmfalcon"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:19 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Attach device memory to lpass iommu on msmfalcon"

7 years agoMerge "msm: msm_bus: Reverse QoS Clocks Disabling Order"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:15 +0000 (19:59 -0800)]
Merge "msm: msm_bus: Reverse QoS Clocks Disabling Order"

7 years agoMerge "soc: qcom: pil: Use NULL check of resource pointer for restart register"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:13 +0000 (19:59 -0800)]
Merge "soc: qcom: pil: Use NULL check of resource pointer for restart register"

7 years agoMerge "ARM: dts: msm: Add pinctrl configuration for PMFALCOM L6/9/19"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:12 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Add pinctrl configuration for PMFALCOM L6/9/19"

7 years agoMerge "ARM: dts: msm: Add missing properties for USB node for msmfalcon"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:12 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Add missing properties for USB node for msmfalcon"

7 years agoMerge "defconfig: Add missing features for HW Encryption support"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:10 +0000 (19:59 -0800)]
Merge "defconfig: Add missing features for HW Encryption support"

7 years agoMerge "defconfig: msm: msm8998: enable LCDB driver"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:10 +0000 (19:59 -0800)]
Merge "defconfig: msm: msm8998: enable LCDB driver"

7 years agoMerge "media: dvb-core: Add feed state check before stop dvbdemux feed"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:09 +0000 (19:59 -0800)]
Merge "media: dvb-core: Add feed state check before stop dvbdemux feed"

7 years agoMerge "ARM: dts: msm: Add VOL_UP node for MSMFALCON and interposer"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:08 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Add VOL_UP node for MSMFALCON and interposer"

7 years agoMerge "ARM: dts: msm: Enable core hang detect feature on msmfalcon"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:07 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Enable core hang detect feature on msmfalcon"

7 years agoMerge "phy: qcom-ufs: Modify the vdd-phy min-max range"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:07 +0000 (19:59 -0800)]
Merge "phy: qcom-ufs: Modify the vdd-phy min-max range"

7 years agoMerge "ARM: dts: msm: Specify the WLED interrupts properly for pmi8998/pm2falcon"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:05 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Specify the WLED interrupts properly for pmi8998/pm2falcon"

7 years agoMerge "ARM: dts: msm: Add PM support for msmfalcon"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:05 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Add PM support for msmfalcon"

7 years agoMerge "ARM: dts: msm: Update clock mmss node for MSMfalcon/Triton"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:03 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Update clock mmss node for MSMfalcon/Triton"

7 years agoMerge "msm-core: use get_user() API to read userspace data/settings"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:03 +0000 (19:59 -0800)]
Merge "msm-core: use get_user() API to read userspace data/settings"

7 years agoMerge "ARM: dts: msm: Modify QRD interposer dts file for msm8998"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:02 +0000 (19:59 -0800)]
Merge "ARM: dts: msm: Modify QRD interposer dts file for msm8998"

7 years agoMerge "ASoc: msm: Add changes to support multiple meta key value pairs"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:01 +0000 (19:59 -0800)]
Merge "ASoc: msm: Add changes to support multiple meta key value pairs"

7 years agoMerge "iommu: io-pgtable-arm: Use correct bitmask for pgd entry"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:00 +0000 (19:59 -0800)]
Merge "iommu: io-pgtable-arm: Use correct bitmask for pgd entry"

7 years agoMerge "iommu: iommu-debug: Allow full dma_addr_t sized address for atos"
Linux Build Service Account [Sat, 10 Dec 2016 03:59:00 +0000 (19:59 -0800)]
Merge "iommu: iommu-debug: Allow full dma_addr_t sized address for atos"

7 years agomm: remove gup_flags FOLL_WRITE games from __get_user_pages()
Linus Torvalds [Thu, 13 Oct 2016 20:07:36 +0000 (13:07 -0700)]
mm: remove gup_flags FOLL_WRITE games from __get_user_pages()

This is an ancient bug that was actually attempted to be fixed once
(badly) by me eleven years ago in commit 4ceb5db9757a ("Fix
get_user_pages() race for write access") but that was then undone due to
problems on s390 by commit f33ea7f404e5 ("fix get_user_pages bug").

In the meantime, the s390 situation has long been fixed, and we can now
fix it by checking the pte_dirty() bit properly (and do it better).  The
s390 dirty bit was implemented in abf09bed3cce ("s390/mm: implement
software dirty bits") which made it into v3.9.  Earlier kernels will
have to look at the page state itself.

Also, the VM has become more scalable, and what used a purely
theoretical race back then has become easier to trigger.

To fix it, we introduce a new internal FOLL_COW flag to mark the "yes,
we already did a COW" rather than play racy games with FOLL_WRITE that
is very fundamental, and then use the pte dirty flag to validate that
the FOLL_COW flag is still valid.

Change-Id: I42e448ecacad4781b460c4c989026307169ba1b5
Reported-and-tested-by: Phil "not Paul" Oester <kernel@linuxace.com>
Acked-by: Hugh Dickins <hughd@google.com>
Reviewed-by: Michal Hocko <mhocko@suse.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Kees Cook <keescook@chromium.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Willy Tarreau <w@1wt.eu>
Cc: Nick Piggin <npiggin@gmail.com>
Cc: Greg Thelen <gthelen@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Git-repo: https://chromium.googlesource.com/chromiumos/third_party/kernel.git
Git-commit: 19be0eaffa3ac7d8eb6784ad9bdbc7d67ed8e619
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
7 years agosched: Ensure proper task migration when a CPU is isolated
Syed Rameez Mustafa [Thu, 8 Dec 2016 01:00:27 +0000 (17:00 -0800)]
sched: Ensure proper task migration when a CPU is isolated

migrate_tasks() migrates all tasks of a CPU by using pick_next_task().
This works in the hotplug case as we force migrate every single task
allowing pick_next_task() to return a new task on every loop iteration.
In the case of isolation, however, task migration is not guaranteed
which causes pick_next_task() to keep returning the same task over and
over again until we terminate the loop without having migrated all the
tasks that were supposed to migrated.

Fix the above problem by temporarily dequeuing tasks that are pinned
and marking them with TASK_ON_RQ_MIGRATING. This not only allows
pick_next_task() to properly walk the runqueue but also prevents any
migrations or changes in affinity for the dequeued tasks. Once we are
done with migrating all possible tasks, we re-enqueue all the dequeued
tasks.

While at it, ensure consistent ordering between task de-activation and
setting the TASK_ON_RQ_MIGRATING flag across all scheduling classes.

Change-Id: Id06151a8e34edab49ac76b4bffd50c132f0b792f
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
7 years agosched/core: Fix race condition in clearing hmp request
Olav Haugan [Thu, 8 Dec 2016 00:36:14 +0000 (16:36 -0800)]
sched/core: Fix race condition in clearing hmp request

There is a race condition between clearing an HMP request for active
migration and the actual active migration. Active migration can he
half-way through doing the migration when the HMP request can be cleared
by another core. Move clearing of HMP request to the stopper thread to
avoid this.

Change-Id: I6d73b8f246ae3754ab60984af198333fd284ae16
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
7 years agosched/core: Prevent (user) space tasks from affining to isolated cpus
Olav Haugan [Thu, 8 Dec 2016 00:34:49 +0000 (16:34 -0800)]
sched/core: Prevent (user) space tasks from affining to isolated cpus

We don't want user space tasks to run on isolated cpus. If the affinity
mask that the user space task is trying to set only includes online
cpus that are isolated return error.

Also ensure that tasks do not get stuck on isolated cores. We are not
properly updating the mask that we check against the current CPU so we
might end up thinking we can run on the current CPU. Fix this.

Change-Id: I078d01e63860d1fc60fc96eb0c739c0f680ae983
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
7 years agopower: bcl: Add frequency mitigation as an optional property for BCL
Manaf Meethalavalappu Pallikunhi [Fri, 18 Nov 2016 10:03:31 +0000 (15:33 +0530)]
power: bcl: Add frequency mitigation as an optional property for BCL

For targets with LMH DCVSh hardware and OSM, BCL software frequency
mitigation is not required. Since hardware is doing the frequency
mitigation, there is no need for the HLOS BCL frequency mitigation.
So make the properties "qcom,mitigation-freq-khz" and
"qcom,thermal-handle" as optional properties.

Change-Id: I0062f3b39f00ff2f0e74affcffbcf1afd89d3b2f
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
7 years agoARM: dts: msm: Add BCL peripheral configs for pmfalcon
Manaf Meethalavalappu Pallikunhi [Tue, 25 Oct 2016 14:41:59 +0000 (20:11 +0530)]
ARM: dts: msm: Add BCL peripheral configs for pmfalcon

Add pmfalcon BCL peripheral related configs to enable the BCL
peripheral driver. Add configs like vbat interrupt, ibat interrupt,
vbat polling delay, ibat polling delay, etc.

Change-Id: I9d7cc82c50c1b09610f5a4eac86af4617389f23f
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
7 years agoARM: dts: msm: add qdss node support for msmtriton
Amey Telawane [Tue, 22 Nov 2016 12:48:52 +0000 (18:18 +0530)]
ARM: dts: msm: add qdss node support for msmtriton

Add support to enable qdss components on
msmtriton. Reuse msmfalcon coresight nodes
for msmtriton.

CRs-fixed: 1094175
Change-Id: I34a3ad2da7f8e267f0d570c0329ac9b73a43309e
Signed-off-by: Amey Telawane <ameyt@codeaurora.org>
7 years agoiommu: arm-smmu: Fix clock reference count error
Patrick Daly [Fri, 28 Oct 2016 01:08:01 +0000 (18:08 -0700)]
iommu: arm-smmu: Fix clock reference count error

When an atomic iommu domain attaches, an additional vote for both
clk_prepare, bus_bw, and regulator_enable must be held. The prior logic
only did this if the atomic domain was the first to attach to the iommu.
Fix this.

As a side effect, add reference counting for bus_bandwidth voting such
that a call to arm_smmu_enable_clock() followed by
arm_smmu_disable_clocks() will not always result in a bus bandwidth
vote of zero.

Change-Id: I7f88ea845a281c8c1def4f642e61262b53b60e1a
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
7 years agousb: phy: qusb2: Add support to vote for regulator L2a
Hemant Kumar [Fri, 2 Dec 2016 03:56:10 +0000 (19:56 -0800)]
usb: phy: qusb2: Add support to vote for regulator L2a

L2a is required to lock the phy PLL upon bus resume when
exiting from XO shutdown. This LDO powers REFGEN block
which is required to be powered on so that phy PLL gets
locked as part of wakeup from XO shutdown.

Change-Id: Ia0e3d574de7c78534832e4f8749672eb6fcde1f0
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
7 years agosound: usb: Handle implicit feedback data endpoint properly
Hemant Kumar [Wed, 7 Dec 2016 02:34:40 +0000 (18:34 -0800)]
sound: usb: Handle implicit feedback data endpoint properly

For the devices supporting implicit feedback over data endpoint
usb audio driver instantiates snd_usb_endpoint as sync_endpoint
even though there is no real usb sync endpoint exists. QMI driver
looks for usb endpoint if sync_endpoint is instantiated and bails
out if endpoint related context does not exist. This causes such
devices to not work. Hence do not bail out if sync ep context
does not exist and continue preparing the QMI response.

Change-Id: I7d96555573cfd6cca1ca56c877d78fde943f8100
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
7 years agomsm: mdss: dp: correctly ref count the pll resources
Siddhartha Agrawal [Wed, 7 Dec 2016 23:40:38 +0000 (15:40 -0800)]
msm: mdss: dp: correctly ref count the pll resources

This fixes the issue where the dp pll resource was not correctly
keeping a refcount on the pll resource. This will fix the bootup
warning when both DSI and DP are enabled.

Crs-Fixed: 1088737
Change-Id: I19f8eef7f664a58cac1a082b8195e48c52613c5d
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
7 years agoclk: msm: clock-osm: don't use version register to enable WDOG status
Osvaldo Banuelos [Wed, 7 Dec 2016 22:48:58 +0000 (14:48 -0800)]
clk: msm: clock-osm: don't use version register to enable WDOG status

The hardware version register does not return the expected
version value. The register is located in register space that is
accessible to the secure world only. This results in WDOG status
register not being enabled. Use the chip version instead.

CRs-Fixed: 1099112
Change-Id: I014c823bcf2545f005205dde326a074eaa5d7a6a
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
7 years agoARM: dts: msm: Update camera GPIO, VREG config for msmfalcon interposer
Shankar Ravi [Wed, 7 Dec 2016 04:48:01 +0000 (10:18 +0530)]
ARM: dts: msm: Update camera GPIO, VREG config for msmfalcon interposer

1. Update PMIC gpio configuration for
   front and rear camera.
2. Correct VANA GPIO.
3. Correct the CSID VREG Voting.

Change-Id: I1e72bf8855ea1150eb2cedaee82d04610b09bdae
Signed-off-by: Shankar Ravi <rshankar@codeaurora.org>
7 years agodefconfig: msmfalcon: Enable audiosource gadget driver
Vijayavardhan Vennapusa [Thu, 8 Dec 2016 06:34:18 +0000 (12:04 +0530)]
defconfig: msmfalcon: Enable audiosource gadget driver

Enable required audiosource driver that is required for audio
over accessory dock to work.

Change-Id: Ifeb779a3323c505d482eb53ad96a1b8aec0f3af5
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
7 years agoinclude: clock: remove ifdef from header file
Meng Wang [Mon, 28 Nov 2016 09:25:20 +0000 (17:25 +0800)]
include: clock: remove ifdef from header file

As audio-ext-clk.h is finally included in device tree and
and using ifdef results in compilation failure. Delete
ifdef from audio-ext-clk.h.

CRs-Fixed: 1090500
Change-Id: Ib6f715c3f606770e7e0b1f0f84ab50e442398cd0
Signed-off-by: Meng Wang <mwang@codeaurora.org>
7 years agoqpnp-fg-gen3: Add support for PMFALCON in Fuel Gauge
Ashay Jaiswal [Wed, 7 Dec 2016 05:51:32 +0000 (11:21 +0530)]
qpnp-fg-gen3: Add support for PMFALCON in Fuel Gauge

Add support of PMFALCON PMIC in FG driver. PMFALCON
FG core uses same SRAM map as PMI8998v2.0.
While at it, add workaround flag variable to keep track
of all hardware specific workarounds.

CRs-Fixed: 1096793
Change-Id: I8ba73276fd30f6eaf935ed77b75601f1322c0ba6
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
7 years agoARM: dts: msm: enable the watchdog bark interrupt for smb138x
Nicholas Troast [Tue, 18 Oct 2016 22:12:03 +0000 (15:12 -0700)]
ARM: dts: msm: enable the watchdog bark interrupt for smb138x

The smb138x parallel charger device has a watchdog timer that will
disable parallel charging if it is not pet by software. Enable it.

Change-Id: Ie28323cdabccdc64196fae25deb2f56dfbb5a0e7
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agoARM: dts: msm: Specify coresight trace ID for msm8998
Harshdeep Dhatt [Wed, 23 Nov 2016 23:06:06 +0000 (16:06 -0700)]
ARM: dts: msm: Specify coresight trace ID for msm8998

Specify the graphics coresight trace ID in the device tree
file.

Change-Id: I30a10a63b320cd3cb6d7cc4ef2fba423f697a66f
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
7 years agoARM: dts: msm: Add GPU coresight properties for msm8998
Lokesh Batra [Tue, 8 Mar 2016 13:40:03 +0000 (05:40 -0800)]
ARM: dts: msm: Add GPU coresight properties for msm8998

Add properties in the GPU device tree for coresight. Define GPU
name and its funnel connections.

CR-fixed: 988516
Change-Id: Ibf2e369c2a4732ebc7471ee103bc8d5d934247ec
Signed-off-by: Lokesh Batra <lbatra@codeaurora.org>
7 years agomsm: ipa3: check the rx_door_bell value on disable
Skylar Chang [Tue, 29 Nov 2016 21:36:24 +0000 (13:36 -0800)]
msm: ipa3: check the rx_door_bell value on disable

In WDI2.0, seeing some issue about rdy_ring_rp_va
is not equal to rdy_comp_ring_wp_va because wlan-fw
still update the doorbell after ipa host-driver
issue the CH_DISABLE cmd to ipa-uc. The fix is
to compare rdy_comp_ring_wp_va and rx_door_bell
values instead.

Change-Id: Ibe57c7d5ba9e45260c12528910f173e347259d7c
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
7 years agomsm: thermal: Notify LMH DCVSh driver after freq mitigation request
Ram Chandrasekar [Wed, 23 Nov 2016 21:39:13 +0000 (14:39 -0700)]
msm: thermal: Notify LMH DCVSh driver after freq mitigation request

LMH DCVSh hardware doesn't generate a debug interrupt, when HLOS
CPU frequency cap is the only throttling value coming to the hardware
aggregator logic. The LMH DCVSh requires atleast one of the hardware
algorithm to throttle to generate a debug interrupt. So there will be
a case where, LMH DCVS driver won't notify scheduler about the
throttling frequency if HLOS is the only reason for throttling.

LMH DCVSh driver now exposes a new API, to trigger the frequency polling
loop. KTM is updated to use this API to trigger the LMH DCVSh polling,
whenever there is a new software frequency cap. This will ensure that
the LMH DCVSh will notify the scheduler even if software is the only
throttling reason.

Change-Id: I92b1bd9a5efc9810eea721b088dff1bd6eef3838
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
7 years agopower_supply: Add BOOST_CURRENT property
Harry Yang [Mon, 5 Dec 2016 17:58:12 +0000 (09:58 -0800)]
power_supply: Add BOOST_CURRENT property

This property will be used to indicate to the boost current
after the boost is turned on.

CRs-Fixed: 1095917
Change-Id: Ie667fa49c4a8e8c008e8866f655e3bbe3e69e156
Signed-off-by: Harry Yang <harryy@codeaurora.org>
7 years agomsm: lmh_dcvsh: Support new API to notify scheduler
Ram Chandrasekar [Wed, 23 Nov 2016 21:21:47 +0000 (14:21 -0700)]
msm: lmh_dcvsh: Support new API to notify scheduler

HLOS can place a mitigation frequency via the LMH DCVSh hardware using
the software cap register and this request doesn't trigger a debug
interrupt. Thus, this frequency mitigation change will not result in
scheduler being notified by LMH DCVSh driver.

Introduce a new API in LMH DCVSh driver, that can be used by other
drivers to trigger the scheduler notification. This API and the
interrupt handler follows the same code path to poll and notify the
scheduler.

Change-Id: Iefcdb57ff598ecb1bafc535958684f75b1f6e645
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
7 years agoARM: dts: msm: update wcn3990 node for msm8998 interposer
Rupesh Tatiya [Mon, 21 Nov 2016 07:26:36 +0000 (12:56 +0530)]
ARM: dts: msm: update wcn3990 node for msm8998 interposer

Disable qca, wcn3990 bluetooth node to avoid failure in bootup.

Change-Id: I7c6700a44c45360acf8aebc0ab9264c2e08abc8f
Signed-off-by: Rupesh Tatiya <rtatiya@codeaurora.org>
7 years agomsm: kgsl: Add trace ID support for graphics coresight
Lokesh Batra [Wed, 23 Mar 2016 18:59:12 +0000 (11:59 -0700)]
msm: kgsl: Add trace ID support for graphics coresight

Add the support for trace ID for coresight. This ID is
will be defined in the respective device tree file.

Change-Id: I78ba05ed05b54fdc0f4d4f55c468f90f39c821f1
Signed-off-by: Lokesh Batra <lbatra@codeaurora.org>
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
7 years agoARM: dts: msm: Attach device memory to lpass iommu on msmfalcon
Vijayavardhan Vennapusa [Tue, 6 Dec 2016 12:37:32 +0000 (18:07 +0530)]
ARM: dts: msm: Attach device memory to lpass iommu on msmfalcon

In order to share the usb audio qmi device iova with lpass usb audio
driver, attach usb audio qmi device to lpass q6 iommu using sid 6.

Change-Id: I6b3c9b49ac973f2472391b3f702908212e3f6e7d
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
7 years agoARM: dts: msm: update the smmu device node configuration for msmfalcon
Charan Teja Reddy [Thu, 1 Dec 2016 10:22:12 +0000 (15:52 +0530)]
ARM: dts: msm: update the smmu device node configuration for msmfalcon

Update the SMMU device node configuration for correct operation of SMMU
on msmfalcon.

Change-Id: I29fa8f488df800d38f6403646e58a19e555ba1cd
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
7 years agodefconfig: msmfalcon: enable the USB video class support
Vijayavardhan Vennapusa [Wed, 7 Dec 2016 11:58:09 +0000 (17:28 +0530)]
defconfig: msmfalcon: enable the USB video class support

Enable USB video class support for msmfalcon for host video usecases.

Change-Id: I30f8294527275a267bd88115a8a8d44beb2adfb8
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
7 years agodefconfig: msm: msm8998: enable LCDB driver
Ashay Jaiswal [Wed, 7 Dec 2016 11:09:53 +0000 (16:39 +0530)]
defconfig: msm: msm8998: enable LCDB driver

LCDB driver exposes regulators to control the positive and
negative voltage bias for the LCD display panel. It also
allows configurability for the various bias-voltage parameters.

CRs-Fixed: 1074468
Change-Id: I68958c5ecfb71a11f346c5c46884948e4b36eea0
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
7 years agoARM: dts: msm: Add pinctrl configuration for PMFALCOM L6/9/19
Anirudh Ghayal [Wed, 7 Dec 2016 10:24:32 +0000 (15:54 +0530)]
ARM: dts: msm: Add pinctrl configuration for PMFALCOM L6/9/19

BT and WLAN vote for the regulator-mode via pinctrl. Add
support for this.

Change-Id: I95158cce1b20778547615141ffbbb7d81d5e10a1
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
7 years agosoc: qcom: pil: Use NULL check of resource pointer for restart register
Gaurav Kohli [Tue, 6 Dec 2016 06:11:39 +0000 (11:41 +0530)]
soc: qcom: pil: Use NULL check of resource pointer for restart register

In failure case pointer to resource for restart register may be used while
it is uninitialized. So use proper NULL check for the same.

Change-Id: I3fc77b72e825f4b11724808239eea16aa126de42
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
7 years agodefconfig: Add missing features for HW Encryption support
AnilKumar Chimata [Tue, 6 Dec 2016 13:07:16 +0000 (18:37 +0530)]
defconfig: Add missing features for HW Encryption support

Enable SCSI_UFS_QCOM_ICE for msmfalcon_32 which is required
for hardware encryption.

Change-Id: I6f9afca5bebd5ad0745b064bb7d1a33f78fe6941
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
7 years agodefconfig: Enable ext4 ICE encryption for msmfalcon_32
AnilKumar Chimata [Wed, 7 Dec 2016 09:21:13 +0000 (14:51 +0530)]
defconfig: Enable ext4 ICE encryption for msmfalcon_32

Enable EXT4_FS_ICE_ENCRYPTION feature for msmfalcon_32
to use ICE for FBE.

Change-Id: I991f3550720526b097c009dc852e9caaabf4860b
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
7 years agoARM: dts: msm: Add missing properties for USB node for msmfalcon
Vijayavardhan Vennapusa [Wed, 30 Nov 2016 09:58:40 +0000 (15:28 +0530)]
ARM: dts: msm: Add missing properties for USB node for msmfalcon

Add missing required properties for USB node for msmfalcon for
USB functionality to be working.

Change-Id: I602cac95616da34ffe6462c8cf3af85ce973085b
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
7 years agophy: qcom-ufs: Modify the vdd-phy min-max range
Asutosh Das [Mon, 5 Dec 2016 06:11:40 +0000 (11:41 +0530)]
phy: qcom-ufs: Modify the vdd-phy min-max range

There are 2 issues with setting the vdd-phy voltage:
1. The min & max range that's defined is 1v, whereas
   0.925 (+/- 5%) is the required voltage. A range of
   0.8v to 0.925v would suffice.
2. This defined range is over-ridden with the current
   rail-voltage. This assumes that some consumer has
   set the regulator to the correct voltage.

This change corrects the defined min/max range to
0.8v-0.925v for vdd-phy.
It also removes the code that's causing [2].

CRs-fixed: 1095116
Change-Id: I943bc4f38385036b21c1f9a2e479d6e94ac12813
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
7 years agoARM: dts: msm: Add VOL_UP node for MSMFALCON and interposer
Anirudh Ghayal [Wed, 7 Dec 2016 08:14:01 +0000 (13:44 +0530)]
ARM: dts: msm: Add VOL_UP node for MSMFALCON and interposer

PM2FALCON GPIO 7 is connected to VOL_UP key. Add the
PMIC and GPIO key configuration for GPIO 7.

Change-Id: Ie1dcc85f579e0b9817a104be86bbb9e91771b15c
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
7 years agoASoC: msm: enable DAP set license logic on 8998
Weiyin Jiang [Wed, 23 Nov 2016 08:57:38 +0000 (16:57 +0800)]
ASoC: msm: enable DAP set license logic on 8998

Since we move to GEF implementation for Dolby post processing,
disabling DAP/DAX2 driver logic on msm8998 target except for
license validation.

CRs-Fixed: 1094027
Change-Id: I33c5625026611856f6cdd8c6e0b5d7ef229ba8c7
Signed-off-by: Weiyin Jiang <wjiang@codeaurora.org>
7 years agomedia: dvb-core: Add feed state check before stop dvbdemux feed
Udaya Mallavarapu [Wed, 7 Dec 2016 07:46:21 +0000 (13:16 +0530)]
media: dvb-core: Add feed state check before stop dvbdemux feed

Add feed state check whether any filter is configured on dvbdemux
feed before feed stop is called. If any filter is started the feed
status should be set to DMX_STATE_GO.

CRs-Fixed: 1090466
Change-Id: If9e87065bb9fb82befb398f2a3a0d0da2f76efa5
Signed-off-by: Udaya Mallavarapu <udaym@codeaurora.org>
7 years agoARM: dts: msm: Enable core hang detect feature on msmfalcon
Venkatesh Yadav Abbarapu [Thu, 1 Sep 2016 05:19:48 +0000 (10:49 +0530)]
ARM: dts: msm: Enable core hang detect feature on msmfalcon

Add core hang detect node for msmfalcon which enables the
core hang detect feature. Enable the same for msmtriton
also.

Change-Id: I108451bae429c8e4c858f7f549c4202f3d59a6d2
Signed-off-by: Venkatesh Yadav Abbarapu <vabbar@codeaurora.org>
7 years agoARM: dts: msm: Add PM support for msmfalcon
Raju P.L.S.S.S.N [Thu, 4 Aug 2016 13:47:31 +0000 (19:17 +0530)]
ARM: dts: msm: Add PM support for msmfalcon

Add initial PM configuration necessary for SPM, LPM, MPM,
RPM stats to support msmfalcon.

Change-Id: Ia1e83fe40710e80156b049982e9a8421d04902a1
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
7 years agomsm-core: use get_user() API to read userspace data/settings
Mohammed Khajapasha [Tue, 28 Jun 2016 06:25:34 +0000 (11:55 +0530)]
msm-core: use get_user() API to read userspace data/settings

Currently userspace data is getting accessed directly
and leading to crash, So use get_user() API to copy
userspace data/settings to kernel space.

Change-Id: I3a75ec9503d8207829640bf88e1c3160bf72c9f0
Signed-off-by: Mohammed Khajapasha <mkhaja@codeaurora.org>
7 years agoARM: dts: msm: Modify QRD interposer dts file for msm8998
Zhenhua Huang [Wed, 30 Nov 2016 10:29:15 +0000 (18:29 +0800)]
ARM: dts: msm: Modify QRD interposer dts file for msm8998

Update regulators for clocks and usb phy.

CRs-Fixed: 1096674
Change-Id: Ib205ccebaec612fd9d1d6bb1a02a4f14be8f21c1
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
7 years agoARM: dts: msm: Update clock mmss node for MSMfalcon/Triton
Taniya Das [Mon, 5 Dec 2016 13:18:31 +0000 (18:48 +0530)]
ARM: dts: msm: Update clock mmss node for MSMfalcon/Triton

Modify the clock_mmss dummy clock to use the real clock controller for MMSS
clock controller client. Use dummy clocks for RUMI platform.

Change-Id: I1ec9fe1d473be79ec0a54f2b8cacfc891f5be5bb
Signed-off-by: Taniya Das <tdas@codeaurora.org>
7 years agodefconfig: Add support to enable MMCC clocks
Taniya Das [Mon, 5 Dec 2016 10:17:59 +0000 (15:47 +0530)]
defconfig: Add support to enable MMCC clocks

Multimedia clock controller is required to be enabled for clocks
supported by multimedia clock controller clients.

Change-Id: I7fa2748c113870a20f0e01ae98faf391d195003c
Signed-off-by: Taniya Das <tdas@codeaurora.org>
7 years agoMerge "leds: qpnp-wled: Fix the APIs to read/write WLED registers"
Linux Build Service Account [Wed, 7 Dec 2016 05:03:17 +0000 (21:03 -0800)]
Merge "leds: qpnp-wled: Fix the APIs to read/write WLED registers"

7 years agoMerge "thermal-core: Use rcu for accessing sensor list"
Linux Build Service Account [Wed, 7 Dec 2016 05:03:16 +0000 (21:03 -0800)]
Merge "thermal-core: Use rcu for accessing sensor list"

7 years agoMerge "msm: sensor: Validationg function pointers before using them"
Linux Build Service Account [Wed, 7 Dec 2016 05:03:15 +0000 (21:03 -0800)]
Merge "msm: sensor: Validationg function pointers before using them"

7 years agoMerge "msm: camera: Notify TZ App about changes of the HW security mode"
Linux Build Service Account [Wed, 7 Dec 2016 05:03:14 +0000 (21:03 -0800)]
Merge "msm: camera: Notify TZ App about changes of the HW security mode"

7 years agoMerge "msm: ipa: enable suspend pipe for ODU"
Linux Build Service Account [Wed, 7 Dec 2016 05:03:13 +0000 (21:03 -0800)]
Merge "msm: ipa: enable suspend pipe for ODU"