Commit graph

21800 commits

Author SHA1 Message Date
Linux Build Service Account
fb1e57936b Merge "media: dvb-core: dvb dmxdev filter callback function changes" 2016-10-19 11:18:18 -07:00
Linux Build Service Account
4f19b2964a Merge "msm: camera: isp: Configure stats framedrop period correctly" 2016-10-19 11:17:55 -07:00
Udaya Mallavarapu
752a69d018 media: dvb-core: dvb dmxdev filter callback function changes
The demux driver migration from kernel 3.18 to 4.4 added
extra parameter to dmx_ts_cb, dmx_section_cb callback functions
to send demux status to dmxdev filters. Revert back the change
to original prototype.

CRs-Fixed: 1079183
Change-Id: I4bdced9942e6524e8cc21410532fa7231049454f
Signed-off-by: Udaya Mallavarapu <udaym@codeaurora.org>
2016-10-19 12:16:55 +05:30
Linux Build Service Account
083bcc387b Merge "msm: camera: isp: Set the clock rate before ahb vote" 2016-10-18 03:24:53 -07:00
Linux Build Service Account
79fd9cc15e Merge "msm: camera: cpp: Add validation for v4l2 ioctl arguments" 2016-10-17 21:00:45 -07:00
Linux Build Service Account
b6cab4d0be Merge "msm: camera: isp: Update burst length for msmfalcon" 2016-10-17 21:00:43 -07:00
Linux Build Service Account
1fa5af7193 Merge "msm: sensor: Update CSI PHY 3 phase settings for msmcobalt" 2016-10-17 21:00:42 -07:00
Shubhraprakash Das
9103f8a346 msm: camera: isp: Configure stats framedrop period correctly
As per the hardware programming guide, a period of N needs to be
programmed as N-1.

Change-Id: I58c13a97dd35b3a439ea1af25bc93182e38e29f0
CRs-Fixed: 1066261
Signed-off-by: Venu Yeshala <vyeshala@codeaurora.org>
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-10-17 12:38:04 -07:00
Shubhraprakash Das
db1cd0b522 msm: camera: isp: Set the clock rate before ahb vote
Set the vfe clock rate before putting the ahb vote into
suspend otherwise the clock vote will bump up the ahb
vote and prevent shutdown.

CRs-Fixed: 1078215
Change-Id: I439ae8aea839af6d9b84fe1384feb18de3d9d276
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-10-17 12:34:57 -07:00
Saurabh Kothawade
1008ad689c msm: vidc: Update plane count in get-format
Currently, driver updates plane count only when client
requests buffer requirements. If it queries buffer
format before requesting buffer requirement, driver
returns incorrect plane count. With this change,
driver updates plane count in get-format as well.

CRs-Fixed: 1021026
Change-Id: Id829f07123963584f6c7fe0174e34006d2697aa9
Signed-off-by: Saurabh Kothawade <skothawa@codeaurora.org>
2016-10-13 03:20:24 -07:00
Linux Build Service Account
52912bb76b Merge "msm: vidc: Don't print message queues in error cases" 2016-10-11 22:33:04 -07:00
Linux Build Service Account
f5724ba17b Merge "msm: vidc: Fix the condition to check dcvs support" 2016-10-11 22:33:03 -07:00
Linux Build Service Account
3fe3b20c5e Merge "msm: kgsl: Remove obsolete IOMMU domain attribute" 2016-10-11 01:16:53 -07:00
Linux Build Service Account
9ab222a34e Merge "msm: cpp: Add support pagefault handler in CPP driver" 2016-10-10 18:28:26 -07:00
Linux Build Service Account
89fd48e0ae Merge "msm: vidc: Keep v4l2 plane count instance-specific" 2016-10-08 18:29:36 -07:00
Linux Build Service Account
3ffe336b5e Merge "msm: vidc: Selectively handle SYS_ERROR as FATAL" 2016-10-07 22:15:44 -07:00
Praneeth Paladugu
58ec831e44 msm: vidc: Don't print message queues in error cases
While flushing debug queues, avoid touching message queues.
Bleeding message queues here can discard FW responses and
forward threads may timeout by not receiving them. This can
cause confusion about timeouts. Hence don't touch message
queues unless you process and send them to forward thread.

CRs-Fixed: 1066658
Change-Id: I7a5a89c32dc4b1284895d01202dcfdd8a90ccda0
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
2016-10-07 15:19:03 -07:00
Chinmay Sawarkar
5a9807e133 msm: vidc: Fix the condition to check dcvs support
DCVS limit check fails due to coding error in the condition.
With this change, dcvs-limit is correctly interpreted.

CRs-Fixed: 1074911
Change-Id: I38689d490a31a8e02688d0cacaa6f6028f6f79c8
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
2016-10-07 12:24:44 -07:00
Benjamin Chan
4b7bbe3ad1 msm: sde: Reject 0 size image for SDE rotator
Rotator HW cannot support 0 dimension of input and output image. During
V4L2 validation, it must reject any 0 size image format setting.

CRs-Fixed: 1073633
Change-Id: I503561677271c39894b7a6910fe8d9c5c25e9c28
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2016-10-07 10:47:01 -04:00
Linux Build Service Account
6c1f1861b7 Merge "msm: sensor: Avoid potential stack overflow" 2016-10-06 19:45:37 -07:00
Linux Build Service Account
5bca027a17 Merge "msm: vidc: Add support for TP10 color format" 2016-10-06 19:45:37 -07:00
Umesh Pandey
00f2e3e6dc msm: vidc: Selectively handle SYS_ERROR as FATAL
User SSR triggers a SYS_ERROR from the hardware.
However the driver cannot detect if the error is
due to user SSR or other reasons. Handle SYS_ERROR
due to user SSR as non-fatal

CRs-Fixed: 1054921
Change-Id: I4151b6bfb24e55c1f1a38bfdca012f7b7af86603
Signed-off-by: Umesh Pandey <umeshp@codeaurora.org>
2016-10-06 17:14:28 -07:00
Linux Build Service Account
421e53ee00 Merge "msm: camera: Fix KW issues in sensor code" 2016-10-06 12:25:58 -07:00
Linux Build Service Account
f976eac548 Merge "msm: camera: isp: Fix for sleeping function call inside spinlock" 2016-10-06 12:25:56 -07:00
Linux Build Service Account
b1c75b86c1 Merge "msm: sde: fix wrong chroma stride for h2v1/h1v2 formats" 2016-10-06 12:25:47 -07:00
Linux Build Service Account
c50041fa03 Merge "msm: camera: isp: Fix overflow recovery" 2016-10-06 01:07:05 -07:00
Linux Build Service Account
2721b89e03 Merge "msm: sensor: validate the i2c table index before use" 2016-10-05 19:29:26 -07:00
Venu Yeshala
ec486b025d msm: camera: isp: Update burst length for msmfalcon
The VFE burst length has been doubled from 8 to 16.

Change-Id: Ifa29acf4bd698730732e75476dd3615884f40e6a
CRs-Fixed: 1073892
Signed-off-by: Venu Yeshala <vyeshala@codeaurora.org>
2016-10-05 01:27:00 -07:00
Saurabh Kothawade
bd60e570fe msm: vidc: Keep v4l2 plane count instance-specific
Existing video driver maintains a static array of
video formats. Video instances have a pointer to this
common array. In multi-instance scenario, different
instances read/write to common structure, resulting
into invalid plane count for other instances. To
avoid such situation, keep plane count structure
specific to the instance.

CRs-Fixed: 1051541
Change-Id: I9bd487459277e509cf64c0124a2d2e3f5fdc443b
Signed-off-by: Saurabh Kothawade <skothawa@codeaurora.org>
2016-10-03 19:01:45 -07:00
Sunid Wilson
5cb50e051b msm: camera: cpp: Add validation for v4l2 ioctl arguments
In CPP v4l2 ioctl command is made, if _IOC_DIR(cmd) is
_IOC_NONE, then the user-supplied argument arg is not checked
and an information disclosure is possible

CRs-Fixed: 1042068
Change-Id: Iddb291b10cdcb5c42ab8497e06c2ce47885cd5ab
Signed-off-by: Sunid Wilson <sunidw@codeaurora.org>
2016-10-03 18:48:01 -07:00
Xu Han
7a0052344f msm: sensor: Update CSI PHY 3 phase settings for msmcobalt
3 phase CPHY mode requires a setting update for msmcobalt V2.

Change-Id: I26db214b101d63feaf16b6b47e716116e334f648
CRs-Fixed: 1045908
Signed-off-by: Xu Han <hanxu@codeaurora.org>
2016-10-03 15:33:03 -07:00
Linux Build Service Account
0b3886773c Merge "msm: vidc: Disable power collapse for HFR" 2016-10-03 05:54:41 -07:00
Alan Kwong
a51dee4748 msm: sde: fix wrong chroma stride for h2v1/h1v2 formats
Current driver is swapping the chroma subsample
for the read pipe when rotation is in place,
this configuration is already taken care by the
rotator, and it is not needed to swap the chroma
sampling for the rotator pipes.
This fixes wrong stride calculations, causing
wrong colors shown in h2v1/h1v2 tests.

CRs-Fixed: 1069748
Change-Id: Idfbe229a39bda728aebbdecd45e468b808026ff8
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
2016-10-03 04:37:56 -07:00
Linux Build Service Account
627381d09a Merge "msm: sde: Adjust SDE rotator clock and BW calculation" 2016-09-30 18:23:47 -07:00
Linux Build Service Account
789809fbfc Merge "msm: camera: Add regulator enable and disable independent of CSID" 2016-09-30 18:23:46 -07:00
Umesh Pandey
571faa4a2c msm: vidc: Add support for TP10 color format
Support for TP10 color format on the capture port for HDR
video playback.

CRs-Fixed: 1067229
Change-Id: I96317fc58f1610e87180ef970104b0a3a4080595
Signed-off-by: Umesh Pandey <umeshp@codeaurora.org>
2016-09-30 16:27:31 -07:00
Linux Build Service Account
25303294bd Merge "Migrate mpq demux driver from kernel 3.18 to 4.4" 2016-09-29 11:21:12 -07:00
Linux Build Service Account
6e395a551f Merge "Migrate demux driver from kernel 3.18 to 4.4" 2016-09-29 11:21:11 -07:00
Linux Build Service Account
d099799530 Merge "msm: camera: Add a driver to control IR CUT device" 2016-09-29 11:19:56 -07:00
Linux Build Service Account
a04c752c85 Merge "msm: camera: Export IR CUT device to mm-qcamera-daemon" 2016-09-29 11:19:54 -07:00
Benjamin Chan
6c700903fc msm: sde: Adjust SDE rotator clock and BW calculation
Optimize the initial rotator session opening time by moving the clock
and BW voting to the start of rotator. Also adjusting the clock
calcuation to include overhead and fudge factor. Create debugfs entry
for supporting override the clock and BW calculation

CRs-Fixed: 1071288
Change-Id: Ia6a84f160d0288ced98bf9f1818d9eabfc2e3963
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2016-09-28 13:34:05 -04:00
Sureshnaidu Laveti
f1e5322784 msm: sensor: validate the i2c table index before use
Verifying the i2c table index value before accessing
the i2c table to avoid memory corruption issues.

CRs-Fixed: 1065916
Change-Id: I0e31c22f90006f27a77cd420288334b8355cee95
Signed-off-by: Sureshnaidu Laveti <lsuresh@codeaurora.org>
2016-09-28 01:24:57 -07:00
Viswanadha Raju Thotakura
fd39134867 msm: camera: Add regulator enable and disable independent of CSID
Regulator enable and disable of CSIPHY depends on the CSID module.
Make the enable and disable of clk regulator independent of CSIPHY.

CRs-Fixed: 1050172
Change-Id: Iefd57ae1c3fb5774b8043ef2e824acbacc8d16d2
Signed-off-by: Viswanadha Raju Thotakura <viswanad@codeaurora.org>
2016-09-27 13:40:33 -07:00
Mitchel Humpherys
628c30f55b msm: cam_smmu: Remove obsolete IOMMU domain attribute
The DOMAIN_ATTR_COHERENT_HTW_DISABLE IOMMU domain attribute is being
removed.  SMMU coherency will be configured through the SMMU device tree
nodes moving forward.  Remove the obsolete option.

Change-Id: Iaa48cce6930c20bf1ef03f1049503253ccba66b9
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2016-09-26 17:42:48 -07:00
Mitchel Humpherys
ff54079a10 msm: mdss: Remove obsolete IOMMU domain attribute
The DOMAIN_ATTR_COHERENT_HTW_DISABLE IOMMU domain attribute is being
removed.  SMMU coherency will be configured through the SMMU device tree
nodes moving forward.  Remove the obsolete option.

Change-Id: Ie1dbb942949265a06a8b091f390610ef56cc29d2
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2016-09-26 17:42:46 -07:00
Mitchel Humpherys
d4763c0489 msm: vidc: Remove obsolete IOMMU domain attribute
The DOMAIN_ATTR_COHERENT_HTW_DISABLE IOMMU domain attribute is being
removed.  SMMU coherency will be configured through the SMMU device tree
nodes moving forward.  Remove the obsolete option.

Change-Id: Ia823466d27791549502a98c716114ebc0d68a4c7
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2016-09-26 17:42:45 -07:00
Shubhraprakash Das
4e3c6202ef msm: camera: isp: Fix overflow recovery
On vfe48 the write masters need to be reenabled after vfe h/w reset.

CRs-Fixed: 1067996
Change-Id: I3ca87ec06e6204e3cecb137d8d8b4f1cedfc3fe1
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-09-26 16:07:31 -07:00
Shubhraprakash Das
b5cf50d8ea msm: camera: isp: Reset undeliver count on stream stop
When stream is stopped the undelivered buffers are flushed but
the count is not set back to 0, fix this.

CRs-Fixed: 1067674
Change-Id: I2e31912667be7bb9d0179b655b8bed425d18a869
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-09-26 16:05:37 -07:00
Shubhraprakash Das
ff9201d66d msm: camera: isp: Check the stream handles from user
Before operating on the streams sent by userspace ensure that
the stream handles sent from userspace are correct.

CRs-Fixed: 1064457
Change-Id: I0bde105ac751f9e26572efc387dfd88414e0c22d
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-09-26 16:05:35 -07:00
Shubhraprakash Das
f5640f2c84 msm: camera: isp: Initialize completion structure
When setting the stream satte to UPDATING the active completion
should be initialized since we wait on that completion.

CRs-Fixed: 1064457
Change-Id: Ia17d8fb224ef2709761f03464aaf2d4541566817
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-09-26 16:05:34 -07:00