Commit graph

578518 commits

Author SHA1 Message Date
xiaonian
75bc552202 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>
2016-12-02 02:29:08 -08:00
Brahmaji K
f3be096981 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>
2016-12-02 15:47:02 +05:30
Srinivas Ramana
62520da504 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>
2016-12-02 14:13:20 +05:30
Srinivas Ramana
f0ba75cf1f 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>
2016-12-02 14:13:19 +05:30
Srinivas Ramana
f443c34688 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>
2016-12-02 14:13:19 +05:30
Shubhraprakash Das
1e796900d3 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>
2016-12-01 23:53:11 -08:00
Shubhraprakash Das
2f6c60ca4f 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>
2016-12-01 23:53:05 -08:00
Shubhraprakash Das
02977df8b2 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>
2016-12-01 23:53:01 -08:00
Shubhraprakash Das
afaeeaf099 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>
2016-12-01 23:52:55 -08:00
Shubhraprakash Das
4d0a1adb96 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>
2016-12-01 23:52:48 -08:00
Shubhraprakash Das
2527a06cae 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>
2016-12-01 23:52:31 -08:00
Shubhraprakash Das
c30b1bc021 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>
2016-12-01 23:51:41 -08:00
Linux Build Service Account
b979f780bf Merge "msm: mdss: hdcp_1x: remove obsolete code" 2016-12-01 23:47:40 -08:00
Linux Build Service Account
866aa12eb4 Merge "uapi/media: add additional ubwc compressed formats" 2016-12-01 23:47:39 -08:00
Linux Build Service Account
daa2c4f942 Merge "mm: Inform KASAN when allocating pages during isolation" 2016-12-01 23:47:38 -08:00
Linux Build Service Account
e349b1b10c Merge "net: rmnet_data: Handle leaked packets when adding MAP fields in TX" 2016-12-01 23:47:37 -08:00
Shubhraprakash Das
77029f9744 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>
2016-12-01 23:41:51 -08:00
Rajesh Kemisetti
8a706cbc3d 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>
2016-12-01 23:25:18 -08:00
Taniya Das
7511463229 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>
2016-12-02 09:24:35 +05:30
Taniya Das
355e6dba7d 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>
2016-12-02 09:24:34 +05:30
Linux Build Service Account
b832093be4 Merge "sched: pre-allocate colocation groups" 2016-12-01 16:39:40 -08:00
Linux Build Service Account
a7adb0df6b Merge "msm: mdss: restore pipe src/dst rect after multiple PU ROI update" 2016-12-01 16:39:39 -08:00
Linux Build Service Account
74e95335c0 Merge "ASoc: msm: qdsp6v2: Add TX app type support in compress driver" 2016-12-01 16:39:37 -08:00
Linux Build Service Account
15b248e390 Merge "msm: camera: fix bound check of offset to avoid overread overwrite" 2016-12-01 16:39:36 -08:00
Linux Build Service Account
a0918ede1c Merge "msm: camera: Print kernel pointer using correct specifier" 2016-12-01 16:39:35 -08:00
Linux Build Service Account
60297d105f Merge "msm: camera: jpegdma: Check for compat config" 2016-12-01 16:39:34 -08:00
Linux Build Service Account
689f29df32 Merge "msm: camera2: cpp: Added secure buffer [un]mapping" 2016-12-01 16:39:33 -08:00
Linux Build Service Account
3c74e592e8 Merge "msm: mdss: dp: set crypto clock rate" 2016-12-01 16:39:32 -08:00
Linux Build Service Account
dff68b7e79 Merge "msm: mdss: hdcp_1x: update hdcp state on link integrity failures" 2016-12-01 16:39:31 -08:00
Linux Build Service Account
0d27592c3b Merge "msm: mdss: dp: hdcp 2.2: add support for interrupt handling" 2016-12-01 16:39:30 -08:00
Linux Build Service Account
d3191bd934 Merge "msm: mdss: avoid scheduling pp work during continuous updates" 2016-12-01 16:39:28 -08:00
abeykun
d8595e1f56 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>
2016-12-01 16:25:17 -08:00
Ajay Singh Parmar
9ae0fdc9fe 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>
2016-12-01 14:19:35 -08:00
Subbaraman Narayanamurthy
4f1454facc 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>
2016-12-01 13:04:40 -08:00
Chinmay Sawarkar
e07d8796c5 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>
2016-12-01 12:49:19 -08:00
Joonwoo Park
7437cd7c4b 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>
2016-12-01 11:28:01 -08:00
Yuanyuan Liu
d9a8fa86c0 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>
2016-12-01 10:56:24 -08:00
Veera Sundaram Sankaran
55931ab731 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>
2016-12-01 10:49:31 -08:00
Satish Babu Patakokila
0661cfb2a3 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>
2016-12-01 23:08:48 +05:30
Satish Babu Patakokila
160813b82f 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>
2016-12-01 22:58:18 +05:30
Linux Build Service Account
c2cbb11bf9 Merge "msm: hdcp: add response timeout and new messages for sink" 2016-12-01 09:23:49 -08:00
Linux Build Service Account
bfaad619ea Merge "Input: synaptics: check input, prevent sysfs races" 2016-12-01 09:23:48 -08:00
Linux Build Service Account
6b90aa18be Merge "mmc: core: check if CQE is already disabled before halt/unhalt" 2016-12-01 09:23:47 -08:00
Linux Build Service Account
e7211aacd5 Merge "msm: mdss: add support to set mdp clock rate before enable" 2016-12-01 09:23:46 -08:00
Linux Build Service Account
27d5c36477 Merge "msm ipa3: fix blocking faulty IOCTLs" 2016-12-01 09:23:45 -08:00
Linux Build Service Account
42335fc5e3 Merge "mmc: block: send CMD13 when a response error detected in CQ mode" 2016-12-01 09:23:44 -08:00
Srinivas Ramana
c3f3cfdb7f 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>
2016-12-01 18:47:00 +05:30
Ajay Agarwal
abe1a7d157 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>
2016-12-01 14:04:57 +05:30
Deepak Kushwah
1899dd7e67 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>
2016-12-01 00:20:00 -08:00
Sayali Lokhande
07eb9e42cf 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>
2016-12-01 12:12:14 +05:30