OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agoMerge "ARM: dts: msm: refactor smb138x device to its own dtsi"
Linux Build Service Account [Tue, 6 Dec 2016 22:33:19 +0000 (14:33 -0800)]
Merge "ARM: dts: msm: refactor smb138x device to its own dtsi"

7 years agoMerge "ARM: dts: msm: Enable CX Ipeak Mitigation for MSMFALCON"
Linux Build Service Account [Tue, 6 Dec 2016 22:33:16 +0000 (14:33 -0800)]
Merge "ARM: dts: msm: Enable CX Ipeak Mitigation for MSMFALCON"

7 years agoMerge "ARM: dts: msm: Make required changes for Modem PIL for MSMFALCON Interposer"
Linux Build Service Account [Tue, 6 Dec 2016 22:33:14 +0000 (14:33 -0800)]
Merge "ARM: dts: msm: Make required changes for Modem PIL for MSMFALCON Interposer"

7 years agoMerge "ARM: dts: msm: Add vmem slave bus usecase to vmem in msm8998"
Linux Build Service Account [Tue, 6 Dec 2016 22:33:14 +0000 (14:33 -0800)]
Merge "ARM: dts: msm: Add vmem slave bus usecase to vmem in msm8998"

7 years agoMerge "msm: vidc: Fail qbuf and prepare_buf incase of error"
Linux Build Service Account [Tue, 6 Dec 2016 22:33:13 +0000 (14:33 -0800)]
Merge "msm: vidc: Fail qbuf and prepare_buf incase of error"

7 years agoMerge "msm: vidc: change format specifier for size_t"
Linux Build Service Account [Tue, 6 Dec 2016 22:33:12 +0000 (14:33 -0800)]
Merge "msm: vidc: change format specifier for size_t"

7 years agoMerge "clk: msm: clock-osm: set SEQ_REG(32) to L_VAL of corner in LEVEL_3_UP_VC"
Linux Build Service Account [Tue, 6 Dec 2016 22:33:11 +0000 (14:33 -0800)]
Merge "clk: msm: clock-osm: set SEQ_REG(32) to L_VAL of corner in LEVEL_3_UP_VC"

7 years agoMerge "phy: qcom-ufs-qmp-v3: increase the minimum time in hibernate"
Linux Build Service Account [Tue, 6 Dec 2016 22:33:11 +0000 (14:33 -0800)]
Merge "phy: qcom-ufs-qmp-v3: increase the minimum time in hibernate"

7 years agoMerge "ARM: dts: msm: Add ERP device definition on msmtriton"
Linux Build Service Account [Tue, 6 Dec 2016 22:33:09 +0000 (14:33 -0800)]
Merge "ARM: dts: msm: Add ERP device definition on msmtriton"

7 years agoMerge "ARM: dts: msm: Add ERP device definition on msmfalcon"
Linux Build Service Account [Tue, 6 Dec 2016 22:33:08 +0000 (14:33 -0800)]
Merge "ARM: dts: msm: Add ERP device definition on msmfalcon"

7 years agoMerge "ARM: dts: msm: Add cpu cache nodes for msmtriton"
Linux Build Service Account [Tue, 6 Dec 2016 22:33:08 +0000 (14:33 -0800)]
Merge "ARM: dts: msm: Add cpu cache nodes for msmtriton"

7 years agoMerge "soc: qcom: glink: add NULL check for edge_ctx"
Linux Build Service Account [Tue, 6 Dec 2016 22:33:07 +0000 (14:33 -0800)]
Merge "soc: qcom: glink: add NULL check for edge_ctx"

7 years agoMerge "msm: camera: isp: Check reg update miss only for PIX stream"
Linux Build Service Account [Tue, 6 Dec 2016 22:33:04 +0000 (14:33 -0800)]
Merge "msm: camera: isp: Check reg update miss only for PIX stream"

7 years agoMerge "msm: camera: isp: Dual camera sync feature"
Linux Build Service Account [Tue, 6 Dec 2016 22:33:03 +0000 (14:33 -0800)]
Merge "msm: camera: isp: Dual camera sync feature"

7 years agoMerge "ARM: dts: msm: Front camera config for msmfalcon interposer"
Linux Build Service Account [Tue, 6 Dec 2016 22:33:02 +0000 (14:33 -0800)]
Merge "ARM: dts: msm: Front camera config for msmfalcon interposer"

7 years agoMerge "msm: mdss: dp: fix parity byte calculation"
Linux Build Service Account [Tue, 6 Dec 2016 22:32:57 +0000 (14:32 -0800)]
Merge "msm: mdss: dp: fix parity byte calculation"

7 years agoMerge "msm: vidc: Align release buffers with V4L2 states"
Linux Build Service Account [Sun, 4 Dec 2016 13:55:31 +0000 (05:55 -0800)]
Merge "msm: vidc: Align release buffers with V4L2 states"

7 years agoMerge "msm: vidc: Add debug info inside queue headers"
Linux Build Service Account [Sun, 4 Dec 2016 13:55:30 +0000 (05:55 -0800)]
Merge "msm: vidc: Add debug info inside queue headers"

7 years agoMerge "ARM: dts: msm: Set max non secure region to 0xE0000000 on msm8998"
Linux Build Service Account [Sun, 4 Dec 2016 01:18:07 +0000 (17:18 -0800)]
Merge "ARM: dts: msm: Set max non secure region to 0xE0000000 on msm8998"

7 years agoMerge "msm: vidc: avoid repeated calls to handle_sys_error"
Linux Build Service Account [Sun, 4 Dec 2016 01:18:06 +0000 (17:18 -0800)]
Merge "msm: vidc: avoid repeated calls to handle_sys_error"

7 years agoMerge "msm: vidc: fix lock issue in msm_comm_get_mbs_per_sec()"
Linux Build Service Account [Sun, 4 Dec 2016 01:18:06 +0000 (17:18 -0800)]
Merge "msm: vidc: fix lock issue in msm_comm_get_mbs_per_sec()"

7 years agoMerge "qcom-charger: smb2: add support of PMFALCON"
Linux Build Service Account [Sat, 3 Dec 2016 17:59:53 +0000 (09:59 -0800)]
Merge "qcom-charger: smb2: add support of PMFALCON"

7 years agoMerge "ARM: dts: msm: fix slave-id of charger and FG on PMFALCON"
Linux Build Service Account [Sat, 3 Dec 2016 17:59:53 +0000 (09:59 -0800)]
Merge "ARM: dts: msm: fix slave-id of charger and FG on PMFALCON"

7 years agoMerge "icnss: Add support of setting MAC address from platform driver"
Linux Build Service Account [Sat, 3 Dec 2016 10:17:52 +0000 (02:17 -0800)]
Merge "icnss: Add support of setting MAC address from platform driver"

7 years agoMerge "ARM: dts: msm: Change camera mount angle for msm8998 QRD device"
Linux Build Service Account [Sat, 3 Dec 2016 10:17:51 +0000 (02:17 -0800)]
Merge "ARM: dts: msm: Change camera mount angle for msm8998 QRD device"

7 years agoARM: dts: msm: refactor smb138x device to its own dtsi
Nicholas Troast [Wed, 30 Nov 2016 22:45:45 +0000 (14:45 -0800)]
ARM: dts: msm: refactor smb138x device to its own dtsi

The smb138x device has been duplicated across many board level files.
Refactor the smb138x device to a separate dtsi file so it can be
included in any board level files.

Change-Id: I9520595f2a40e197ad2227a8391bed79412b19f8
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agoMerge "ARM: dts: msm: change ufs regulators for msmfalcon interposer QRD"
Linux Build Service Account [Fri, 2 Dec 2016 17:02:33 +0000 (09:02 -0800)]
Merge "ARM: dts: msm: change ufs regulators for msmfalcon interposer QRD"

7 years agoMerge "ARM: dts: msm: Add sdhc2 regulator for QRD msmfalcon interposer"
Linux Build Service Account [Fri, 2 Dec 2016 17:02:31 +0000 (09:02 -0800)]
Merge "ARM: dts: msm: Add sdhc2 regulator for QRD msmfalcon interposer"

7 years agoMerge "defconfig: msm: Disable CRYPTO_DEV_QCE config flag for msmfalcon"
Linux Build Service Account [Fri, 2 Dec 2016 17:02:30 +0000 (09:02 -0800)]
Merge "defconfig: msm: Disable CRYPTO_DEV_QCE config flag for msmfalcon"

7 years agoMerge "msm: kgsl: Reserve a context ID slot but don't populate immediately"
Linux Build Service Account [Fri, 2 Dec 2016 17:02:29 +0000 (09:02 -0800)]
Merge "msm: kgsl: Reserve a context ID slot but don't populate immediately"

7 years agoMerge "ASoC: msm: qdsp6v2: Fix an incorrect string comparison logic"
Linux Build Service Account [Fri, 2 Dec 2016 17:02:28 +0000 (09:02 -0800)]
Merge "ASoC: msm: qdsp6v2: Fix an incorrect string comparison logic"

7 years agoMerge "ASoC: msm8998: Update supported sample rates for USB backend."
Linux Build Service Account [Fri, 2 Dec 2016 17:02:26 +0000 (09:02 -0800)]
Merge "ASoC: msm8998: Update supported sample rates for USB backend."

7 years agoMerge "SoC: msm: q6dspv2: add null check for payload"
Linux Build Service Account [Fri, 2 Dec 2016 17:02:25 +0000 (09:02 -0800)]
Merge "SoC: msm: q6dspv2: add null check for payload"

7 years agoMerge "ASoC: wcd934x: enable lineout path in codec"
Linux Build Service Account [Fri, 2 Dec 2016 17:02:24 +0000 (09:02 -0800)]
Merge "ASoC: wcd934x: enable lineout path in codec"

7 years agoMerge "ASoC: soc-dapm: Invalidate DAPM path during dapm addition of routes"
Linux Build Service Account [Fri, 2 Dec 2016 17:02:22 +0000 (09:02 -0800)]
Merge "ASoC: soc-dapm: Invalidate DAPM path during dapm addition of routes"

7 years agoMerge "misc: qcom: qdsp6v2: register ioctl calls for g711mlaw driver"
Linux Build Service Account [Fri, 2 Dec 2016 17:02:18 +0000 (09:02 -0800)]
Merge "misc: qcom: qdsp6v2: register ioctl calls for g711mlaw driver"

7 years agoMerge "ASoC: audio-ext-clk: add new audio ext clock"
Linux Build Service Account [Fri, 2 Dec 2016 17:02:16 +0000 (09:02 -0800)]
Merge "ASoC: audio-ext-clk: add new audio ext clock"

7 years agoMerge "ARM: dts: msm: Update ascent battery profile for GEN3 FG"
Linux Build Service Account [Fri, 2 Dec 2016 17:02:15 +0000 (09:02 -0800)]
Merge "ARM: dts: msm: Update ascent battery profile for GEN3 FG"

7 years agoMerge "ARM: dts: msm: Add sdhc2 support for msmfalcon interposer"
Linux Build Service Account [Fri, 2 Dec 2016 17:02:13 +0000 (09:02 -0800)]
Merge "ARM: dts: msm: Add sdhc2 support for msmfalcon interposer"

7 years agoMerge "msm: kgsl: Check MMU type for memory and pagetable operations"
Linux Build Service Account [Fri, 2 Dec 2016 17:02:12 +0000 (09:02 -0800)]
Merge "msm: kgsl: Check MMU type for memory and pagetable operations"

7 years agoMerge "ARM: dts: msm: Remove clocks associated with GDSC for MSMfalcon/Trition"
Linux Build Service Account [Fri, 2 Dec 2016 17:02:11 +0000 (09:02 -0800)]
Merge "ARM: dts: msm: Remove clocks associated with GDSC for MSMfalcon/Trition"

7 years agoMerge "usb: gadget: f_rmnet: Add support for configfs"
Linux Build Service Account [Fri, 2 Dec 2016 17:02:09 +0000 (09:02 -0800)]
Merge "usb: gadget: f_rmnet: Add support for configfs"

7 years agoARM: dts: msm: Enable CX Ipeak Mitigation for MSMFALCON
Gaurav Kohli [Thu, 17 Nov 2016 11:06:45 +0000 (16:36 +0530)]
ARM: dts: msm: Enable CX Ipeak Mitigation for MSMFALCON

This enables the assertion of CX ipeak mitigation during
MSS restart.

Change-Id: I113037aabafeacba7079d530ca859833f475f649
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
7 years agosoc: qcom: pil: Add support for the CX IPeak mitigation
Gaurav Kohli [Thu, 17 Nov 2016 09:52:08 +0000 (15:22 +0530)]
soc: qcom: pil: Add support for the CX IPeak mitigation

Clear the CX iPeak bit if it was set by MSS before crash.
MSS sets this bit if it was in Turbo state. In a situation
where all the votes were set (including MSS), It would have
resulted in CDSP throttling. But when MSS is in crashed state,
It cannot be cleared by MSS, So PIL needs to do this. It
would allow possible clearance of throttle state.

Change-Id: Ia561436a362dc5b0e1cb22c30ce9f5b8bb027a1f
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
7 years agoqcom-charger: smb2: add support of PMFALCON
Ashay Jaiswal [Wed, 30 Nov 2016 06:12:36 +0000 (11:42 +0530)]
qcom-charger: smb2: add support of PMFALCON

Add support of PMFALCON PMIC and enable PMIC specific
workarounds in charger driver.

Change-Id: Id21fde25b9b741b9cb570ab5348959715e53e6cb
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
7 years agoARM: dts: msm: fix slave-id of charger and FG on PMFALCON
Ashay Jaiswal [Fri, 2 Dec 2016 11:38:22 +0000 (17:08 +0530)]
ARM: dts: msm: fix slave-id of charger and FG on PMFALCON

Charger and Fuel Gauge peripherals are on slave-id 0. Update
charger and FG device node to reflect the same.

Change-Id: I99d1e47a20fd5c3304249aa4f6c64e5967874312
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
7 years agoARM: dts: msm: Make required changes for Modem PIL for MSMFALCON Interposer
Gaurav Kohli [Tue, 29 Nov 2016 13:04:13 +0000 (18:34 +0530)]
ARM: dts: msm: Make required changes for Modem PIL for MSMFALCON Interposer

Correct the required regulator node for Modem PIL for MSMFALCON Interposer
and also enable Modem pil.

Change-Id: I106ae84303f6a0b1de13ce564600f7788dd382b3
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
7 years agoARM: dts: msm: Make required changes for Slpi PIL for MSMFALCON Interposer
Gaurav Kohli [Tue, 29 Nov 2016 11:33:12 +0000 (17:03 +0530)]
ARM: dts: msm: Make required changes for Slpi PIL for MSMFALCON Interposer

Correct the required regulator node for Slpi PIL and also enable Slpi
PIL.

Change-Id: Ia9cb83e7f7f5c74737ddf6f6987b5acfae11e224
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
7 years agoARM: dts: msm: Make required changes for Lpass pil for MSMFALCON Interposer
Gaurav Kohli [Tue, 29 Nov 2016 08:55:59 +0000 (14:25 +0530)]
ARM: dts: msm: Make required changes for Lpass pil for MSMFALCON Interposer

Correct the required regulator node for Lpass pil for MSMFALCON Interposer
and also enable Lpass pil.

Change-Id: I69d8cdddf847c3f327b03884eba7c976349ac08c
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
7 years agoARM: dts: msm: change ufs regulators for msmfalcon interposer QRD
xiaonian [Thu, 1 Dec 2016 07:21:26 +0000 (15:21 +0800)]
ARM: dts: msm: change ufs regulators for msmfalcon interposer QRD

Change ufs regulators for msmfalcon interposer QRD. Reduce
maximum power load that can be drawn from vcc and vccq2 supply.
Add the required minimum and maximum voltages of ufs phy.

CRs-Fixed: 1093028
Change-Id: Ic534c518116c18e98bd4e421365831400ef967f4
Signed-off-by: xiaonian <xiaonian@codeaurora.org>
7 years agoARM: dts: msm: Add sdhc2 regulator for QRD msmfalcon interposer
xiaonian [Thu, 1 Dec 2016 06:25:33 +0000 (14:25 +0800)]
ARM: dts: msm: Add sdhc2 regulator for QRD msmfalcon interposer

Add sdhc2 regulator corresponding to HW desgin.

CRs-Fixed: 1096038
Change-Id: Ib763bf5f58155fe2c6001357aa939d8098d2ff14
Signed-off-by: xiaonian <xiaonian@codeaurora.org>
7 years agodefconfig: msm: Disable CRYPTO_DEV_QCE config flag for msmfalcon
Brahmaji K [Tue, 4 Oct 2016 08:40:23 +0000 (14:10 +0530)]
defconfig: msm: Disable CRYPTO_DEV_QCE config flag for msmfalcon

Disable CONFIG_CRYPTO_DEV_QCE flag from defconfig,
which is not required for msmfalcon.

Change-Id: I29cf58d7069d758239c2f5712e70e94be20a42d3
Signed-off-by: Brahmaji K <bkomma@codeaurora.org>
7 years agoARM: dts: msm: Add ERP device definition on msmtriton
Srinivas Ramana [Wed, 30 Nov 2016 08:36:39 +0000 (14:06 +0530)]
ARM: dts: msm: Add ERP device definition on msmtriton

Add a device definition for the CPU Error Reporting
hardware on msmtriton, to allow hardware errors to be
reported to software.

Change-Id: I36561c446ade0ee36dfb266c6033ae7734af4df9
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
7 years agoARM: dts: msm: Add ERP device definition on msmfalcon
Srinivas Ramana [Wed, 30 Nov 2016 08:35:43 +0000 (14:05 +0530)]
ARM: dts: msm: Add ERP device definition on msmfalcon

Add a device definition for the CPU Error Reporting
hardware on msmfalcon, to allow hardware errors to be
reported to software.

Change-Id: I73c3a129bd206e4c1c275a55f550e1ce847985c0
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
7 years agoARM: dts: msm: Add cpu cache nodes for msmtriton
Srinivas Ramana [Wed, 30 Nov 2016 07:59:21 +0000 (13:29 +0530)]
ARM: dts: msm: Add cpu cache nodes for msmtriton

Add cpu cache nodes to represent the cache hierarchy and
to specify the dump size of each cache.

While at it also add the cache dump nodes which will enable
reserving the memory for cache dumps.

Change-Id: I1d80ac853eb283c411985ceebd0dc31ed046836a
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
7 years agomsm: camera: isp: Check reg update miss only for PIX stream
Shubhraprakash Das [Tue, 15 Nov 2016 03:38:37 +0000 (19:38 -0800)]
msm: camera: isp: Check reg update miss only for PIX stream

Reg updates can only miss on PIX stream since reg updates
are forced for RDI streams. This also prevents the error
check from being called multiple times for PIX streams.

CRs-Fixed: 1089937
Change-Id: Ibe0ea7efabc5a8452f05fdc2ab8b3ec7931a66e7
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
7 years agomsm: camera: isp: Fix stats recovery
Shubhraprakash Das [Mon, 14 Nov 2016 21:52:59 +0000 (13:52 -0800)]
msm: camera: isp: Fix stats recovery

Stats buffer done was not coming after device reset because the
sequence for turning on stats was not right. Follow the same
sequence which is followed on start stream for stats during
recovery. Also, for vfe 46 version fix the write master offset.

CRs-Fixed: 1089758
Change-Id: I47849097022817dc411c31e3aadf037f6cae9a72
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
7 years agomsm: camera: isp: Stop camif based on user input
Shubhraprakash Das [Fri, 11 Nov 2016 20:06:55 +0000 (12:06 -0800)]
msm: camera: isp: Stop camif based on user input

If user requests the camif to be stopped immediately then do so.
Only user driver will know if input has already streamed off in
which case camif shopuld be stopped immediately as per the
user driver request.

CRs-Fixed: 1089754
Change-Id: I47df74cb72e41b3c00fcebaab9d709818820ed47
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
7 years agomsm: camera: isp: Return success if buffer not available
Shubhraprakash Das [Fri, 11 Nov 2016 18:45:27 +0000 (10:45 -0800)]
msm: camera: isp: Return success if buffer not available

If buffer is not available during stream start then do not treat
that as an error.

CRs-Fixed: 1087368
Change-Id: I8f56bbf621313676282e06449431d1961d4819eb
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
7 years agomsm: camera: isp: Reserve unified buffer(ub) space for rdi
Shubhraprakash Das [Mon, 7 Nov 2016 22:02:43 +0000 (14:02 -0800)]
msm: camera: isp: Reserve unified buffer(ub) space for rdi

Rdi and pix interfaces can operate on different camera and they
can start/stop independently. If once camera uses entire ub then
another camera will not get any ub resulting in overflow. Fix
this problem by reserving space for rdi interface in ub.

CRs-Fixed: 1087367
Change-Id: I66f03cec28d7e3ecda42c06f01eb18fd869c913b
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
7 years agomsm: camera: isp: Dual camera sync feature
Shubhraprakash Das [Fri, 2 Dec 2016 07:52:31 +0000 (23:52 -0800)]
msm: camera: isp: Dual camera sync feature

Add ioctl to swicth dual camera mode from sync to
unsync mode and vise versa. Also, change the logic
of frame id sync to support unsync mode.

CRs-Fixed: 1070296
Change-Id: I58e27c9ea66f1788d640bf523e7c6569cde162f7
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
Signed-off-by: Junzhe Zou <jnzhezou@codeaurora.org>
7 years agomsm: camera: isp: Increment stats active counter
Shubhraprakash Das [Mon, 31 Oct 2016 22:37:03 +0000 (15:37 -0700)]
msm: camera: isp: Increment stats active counter

The stats active counter was not being incremented, fix it.

CRs-Fixed: 1084238
Change-Id: I07b3c000836955eab9cf2273ce535c4317b3f166
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
7 years agoMerge "msm: mdss: hdcp_1x: remove obsolete code"
Linux Build Service Account [Fri, 2 Dec 2016 07:47:41 +0000 (23:47 -0800)]
Merge "msm: mdss: hdcp_1x: remove obsolete code"

7 years agoMerge "uapi/media: add additional ubwc compressed formats"
Linux Build Service Account [Fri, 2 Dec 2016 07:47:40 +0000 (23:47 -0800)]
Merge "uapi/media: add additional ubwc compressed formats"

7 years agoMerge "mm: Inform KASAN when allocating pages during isolation"
Linux Build Service Account [Fri, 2 Dec 2016 07:47:39 +0000 (23:47 -0800)]
Merge "mm: Inform KASAN when allocating pages during isolation"

7 years agoMerge "net: rmnet_data: Handle leaked packets when adding MAP fields in TX"
Linux Build Service Account [Fri, 2 Dec 2016 07:47:38 +0000 (23:47 -0800)]
Merge "net: rmnet_data: Handle leaked packets when adding MAP fields in TX"

7 years agomsm: camera: isp: Fix recovery in dual vfe mode
Shubhraprakash Das [Fri, 2 Dec 2016 07:41:31 +0000 (23:41 -0800)]
msm: camera: isp: Fix recovery in dual vfe mode

In case of dual vfe overflow recovery was failing because
the dual streams were not reset on both vfe. Fix the issue
with this change.

CRs-Fxied: 1076758
Change-Id: Iee81103263d95d93947a3967b1a3dbb568f76cf1
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
7 years agomsm: kgsl: Check MMU type for memory and pagetable operations
Rajesh Kemisetti [Fri, 11 Nov 2016 19:13:22 +0000 (00:43 +0530)]
msm: kgsl: Check MMU type for memory and pagetable operations

Check MMU type for below operations to make NOMMU functional:

- adreno_iommu_set_pt_ctx() tries to set pagetable during context
  switch without really checking on type of MMU.
- skip tracking of gpuaddr in case of NoMMU during
  kgsl_mem_entry_track_gpuaddr().
- In case of nommu the function kgsl_allocate_global() should
  always allocate contiguous memory from CMA.

Change-Id: I8cb59e1475376167c7a8a60c54df0939597f5083
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
7 years agoARM: dts: msm: Remove clocks associated with GDSC for MSMfalcon/Trition
Taniya Das [Fri, 2 Dec 2016 03:52:38 +0000 (09:22 +0530)]
ARM: dts: msm: Remove clocks associated with GDSC for MSMfalcon/Trition

The clients of each GDSC would take care of any memory requirement of the
associated clocks, so remove them from GDSC.

Change-Id: Ic2df5ba83d1e7166aadc954aa137ec65ffa79133
Signed-off-by: Taniya Das <tdas@codeaurora.org>
7 years agoclk: msm: Remove overrides from clock header files for common clock
Taniya Das [Wed, 30 Nov 2016 05:48:20 +0000 (11:18 +0530)]
clk: msm: Remove overrides from clock header files for common clock

For clients using msm-clk-provider.h and msm-clk.h
header files, no override is expected for COMMON_CLK
framework so fixing the same by conditionally compiling
the clock header files.

Change-Id: I5f7393f3f486a884bfa881a93c01623c3cd2664d
Signed-off-by: Taniya Das <tdas@codeaurora.org>
7 years agoMerge "sched: pre-allocate colocation groups"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:41 +0000 (16:39 -0800)]
Merge "sched: pre-allocate colocation groups"

7 years agoMerge "msm: mdss: restore pipe src/dst rect after multiple PU ROI update"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:40 +0000 (16:39 -0800)]
Merge "msm: mdss: restore pipe src/dst rect after multiple PU ROI update"

7 years agoMerge "ASoc: msm: qdsp6v2: Add TX app type support in compress driver"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:38 +0000 (16:39 -0800)]
Merge "ASoc: msm: qdsp6v2: Add TX app type support in compress driver"

7 years agoMerge "msm: camera: fix bound check of offset to avoid overread overwrite"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:37 +0000 (16:39 -0800)]
Merge "msm: camera: fix bound check of offset to avoid overread overwrite"

7 years agoMerge "msm: camera: Print kernel pointer using correct specifier"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:36 +0000 (16:39 -0800)]
Merge "msm: camera: Print kernel pointer using correct specifier"

7 years agoMerge "msm: camera: jpegdma: Check for compat config"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:35 +0000 (16:39 -0800)]
Merge "msm: camera: jpegdma: Check for compat config"

7 years agoMerge "msm: camera2: cpp: Added secure buffer [un]mapping"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:34 +0000 (16:39 -0800)]
Merge "msm: camera2: cpp: Added secure buffer [un]mapping"

7 years agoMerge "msm: mdss: dp: set crypto clock rate"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:32 +0000 (16:39 -0800)]
Merge "msm: mdss: dp: set crypto clock rate"

7 years agoMerge "msm: mdss: hdcp_1x: update hdcp state on link integrity failures"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:31 +0000 (16:39 -0800)]
Merge "msm: mdss: hdcp_1x: update hdcp state on link integrity failures"

7 years agoMerge "msm: mdss: dp: hdcp 2.2: add support for interrupt handling"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:31 +0000 (16:39 -0800)]
Merge "msm: mdss: dp: hdcp 2.2: add support for interrupt handling"

7 years agoMerge "msm: mdss: avoid scheduling pp work during continuous updates"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:29 +0000 (16:39 -0800)]
Merge "msm: mdss: avoid scheduling pp work during continuous updates"

7 years agouapi/media: add additional ubwc compressed formats
abeykun [Fri, 11 Nov 2016 15:36:54 +0000 (10:36 -0500)]
uapi/media: add additional ubwc compressed formats

Patch adds RGB565, RGBA 10-bit and P010 10-bit ubwc
compressed formats support to media API planes calculation.
Also fix in align macro when alignment is not a power of 2.

CRs-Fixed: 1096408
Change-Id: I4afcf7d5b22395eeda2e77131bd45592abaeb561
Signed-off-by: abeykun <abeykun@codeaurora.org>
Signed-off-by: Umesh Pandey <umeshp@codeaurora.org>
7 years agomsm: mdss: hdcp_1x: remove obsolete code
Ajay Singh Parmar [Sat, 19 Nov 2016 07:10:25 +0000 (23:10 -0800)]
msm: mdss: hdcp_1x: remove obsolete code

Remove HLOS and TZ communication mechanism which is
using SCM APIs. New hardware supports programming in
HLOS itself. Also, communication is now handled by
qseecom APIs. This makes SCM code obsolete and redundant.
Remove any such code which is not being used in current
hardware.

Change-Id: I9b120b88f92be517d1734697625038b28b32feb1
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
7 years agoARM: dts: msm: Update ascent battery profile for GEN3 FG
Subbaraman Narayanamurthy [Wed, 30 Nov 2016 00:53:39 +0000 (16:53 -0800)]
ARM: dts: msm: Update ascent battery profile for GEN3 FG

As per the recent battery characterization, update the profile
data for ascent battery used with pmi8998 FG.

Change-Id: I405cb68749f63f6f779e4f3c2b47065b02ec07de
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoARM: dts: msm: Add vmem slave bus usecase to vmem in msm8998
Chinmay Sawarkar [Thu, 1 Dec 2016 01:31:59 +0000 (17:31 -0800)]
ARM: dts: msm: Add vmem slave bus usecase to vmem in msm8998

On 8998 v2 there is a hard requirement that "clk_set_rate"
must be set before "clk_enable". In the case of vmem, bus driver
can do this only if the order of vmem slave & vmem cfg bw vote
is enforced. These usecases will be used for ensuring bw voting order.

Change-Id: Ic7d17b7aa33f394db83dfa9cec440c9d8951c2c0
CRs-Fixed: 1091417
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
7 years agosched: pre-allocate colocation groups
Joonwoo Park [Mon, 28 Nov 2016 21:41:18 +0000 (13:41 -0800)]
sched: pre-allocate colocation groups

At present, sched_set_group_id() dynamically allocates structure for
colocation group to assign the given task to the group.  However
this can cause deadlock as memory allocator can wakeup a task which
also tries to acquire related_thread_group_lock.

Avoid such deadlock by pre-allocating colocation structures.  This
limits maximum colocation groups to static number but it's fine as it's
never expected to be a lot.

Change-Id: Ifc32ab4ead63c382ae390358ed86f7cc5b6eb2dc
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
7 years agoicnss: Add support of setting MAC address from platform driver
Yuanyuan Liu [Thu, 1 Dec 2016 18:55:25 +0000 (10:55 -0800)]
icnss: Add support of setting MAC address from platform driver

Add support of setting WLAN MAC address from platform driver.
The MAC address will be passed to WLAN driver when WLAN is
turned on.

CRs-Fixed: 1096286
Change-Id: I249222b419dd130241cbc84f4d41709b408941e0
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
7 years agomsm: mdss: restore pipe src/dst rect after multiple PU ROI update
Veera Sundaram Sankaran [Wed, 30 Nov 2016 22:27:19 +0000 (14:27 -0800)]
msm: mdss: restore pipe src/dst rect after multiple PU ROI update

During multiple partial update, each pipe is checked against
the two ROIs and the pipe's src and dst rect are cropped and
adjusted with respect to first_roi or second_roi, based on its
position. If the pipe is used with the same configs in the next
kickoff, restore the pipe's actual src/dst before continuing with
the kickoff.

Change-Id: I1db579626d96302e07fef1a755fb39944d3eaca8
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
7 years agoASoc: msm: qdsp6v2: Add TX app type support in compress driver
Satish Babu Patakokila [Wed, 3 Aug 2016 15:54:53 +0000 (21:24 +0530)]
ASoc: msm: qdsp6v2: Add TX app type support in compress driver

Add TX app type support in compress driver to support different
post processing modules per COPP in the TX path

CRs-fixed: 1072067
Change-Id: I8e84577b5aff5e932632c4612a88808615d764ae
Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
7 years agoASoc: msm: qdsp6v2: Add timestamp support for compress capture
Satish Babu Patakokila [Wed, 3 Aug 2016 15:17:59 +0000 (20:47 +0530)]
ASoc: msm: qdsp6v2: Add timestamp support for compress capture

Add timestamp support for compress driver.
Modify ASM driver to read the buffer from predefined offset.

CRs-fixed: 1072067
Change-Id: I1c46befc223285495b3c0650e6c3eaae81f58771
Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
7 years agoMerge "msm: hdcp: add response timeout and new messages for sink"
Linux Build Service Account [Thu, 1 Dec 2016 17:23:50 +0000 (09:23 -0800)]
Merge "msm: hdcp: add response timeout and new messages for sink"

7 years agoMerge "Input: synaptics: check input, prevent sysfs races"
Linux Build Service Account [Thu, 1 Dec 2016 17:23:49 +0000 (09:23 -0800)]
Merge "Input: synaptics: check input, prevent sysfs races"

7 years agoMerge "mmc: core: check if CQE is already disabled before halt/unhalt"
Linux Build Service Account [Thu, 1 Dec 2016 17:23:47 +0000 (09:23 -0800)]
Merge "mmc: core: check if CQE is already disabled before halt/unhalt"

7 years agoMerge "msm: mdss: add support to set mdp clock rate before enable"
Linux Build Service Account [Thu, 1 Dec 2016 17:23:46 +0000 (09:23 -0800)]
Merge "msm: mdss: add support to set mdp clock rate before enable"

7 years agoMerge "msm ipa3: fix blocking faulty IOCTLs"
Linux Build Service Account [Thu, 1 Dec 2016 17:23:45 +0000 (09:23 -0800)]
Merge "msm ipa3: fix blocking faulty IOCTLs"

7 years agoMerge "mmc: block: send CMD13 when a response error detected in CQ mode"
Linux Build Service Account [Thu, 1 Dec 2016 17:23:45 +0000 (09:23 -0800)]
Merge "mmc: block: send CMD13 when a response error detected in CQ mode"

7 years agoARM: dts: msm: Add cpu cache nodes for msmfalcon
Srinivas Ramana [Wed, 16 Nov 2016 11:21:55 +0000 (16:51 +0530)]
ARM: dts: msm: Add cpu cache nodes for msmfalcon

Add cpu cache nodes to represent the cache hierarchy and
to specify the dump size of each cache.

While at it also add the cache dump nodes which will enable
reserving the memory for cache dumps.

Change-Id: I06eead417b77c74a6e12e6f6b5251c0c7e62c96b
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
7 years agousb: gadget: f_rmnet: Add support for configfs
Ajay Agarwal [Thu, 27 Oct 2016 13:42:50 +0000 (19:12 +0530)]
usb: gadget: f_rmnet: Add support for configfs

Add APIs to allocate and instanciate f_rmnet function
driver using configFS.

Change-Id: Iad76a7e317dd9caf846dbe870baee63a8c5ce6c1
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
7 years agomsm: vidc: change format specifier for size_t
Deepak Kushwah [Thu, 1 Dec 2016 07:21:54 +0000 (12:51 +0530)]
msm: vidc: change format specifier for size_t

size_t is an unsigned integer. Change format specifier
to resolve compilation issues for 32 bit.

Change-Id: I4309335c7ad0c695081d446a3f90e84edbcf1e32
CRs-Fixed: 1096066
Signed-off-by: Deepak Kushwah <dkushwah@codeaurora.org>
7 years agoARM: dts: msm: Add sdhc2 support for msmfalcon interposer
Sayali Lokhande [Mon, 21 Nov 2016 14:47:43 +0000 (20:17 +0530)]
ARM: dts: msm: Add sdhc2 support for msmfalcon interposer

Add sdhc2 support to enable SD card for msmfalcon
interposer platform.

Change-Id: I22df2ab1210d0ec7da1ac394e6c61beaa52eb712
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>