Commit graph

537 commits

Author SHA1 Message Date
Tejas Prajapati
24bb90e6ea msm: camera: utils: add spacing between register values
when using the cam_io_dump function to dump the register
values we are getting 4 register values without spacing
which makes is difficult to read, so adding space
between two specific register values.

CRs-Fixed: 2675959
Change-Id: I7e5db59398e406c30aa9729eb38331aa85736175
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
2020-06-04 03:20:32 -07:00
Camera Software Integration
c4d16b525c Merge "msm: camera: cci: Correct logging for better debug" into camera-kernel.lnx.4.0 2020-06-03 12:39:24 -07:00
Camera Software Integration
76586bbff2 Merge "msm: camera: isp: Fix num_entries value assigned to variable" into camera-kernel.lnx.4.0 2020-06-02 17:00:40 -07:00
Camera Software Integration
ca0de99342 Merge "msm: camera: common: Correct compilation flag for TFE hw" into camera-kernel.lnx.4.0 2020-06-02 17:00:33 -07:00
Vishalsingh Hajeri
68846d2555 msm: camera: isp: Fix num_entries value assigned to variable
num_cfg_new temp variable should be assigned the value of
num_hw_entries from new isp request instead of old isp request.

CRs-Fixed: 2673657
Change-Id: Ie4d29949e2c992560b6635f7e0b5db88c2dafd48
Signed-off-by: Vishalsingh Hajeri <vhajeri@codeaurora.org>
2020-05-29 14:47:55 -07:00
Jigar Agrawal
cb7abacaf6 msm: camera: cci: Correct logging for better debug
Correct and Update logs for better debugging purpose.

CRs-Fixed: 2686717
Change-Id: I2f7720e32aaf44764e6341813bb35c1717125a67
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2020-05-29 11:38:09 -07:00
Jigarkumar Zala
5c24b7d2d6 msm: camera: common: Correct compilation flag for TFE hw
TFE hardware compilation needs to be enable with correct flag.
Correct tfe compilation flag along with necessary base Makefile
change. Also, remove unnecessary makefiles from tfe hw module.

CRs-Fixed: 2675526
Change-Id: Ibd8b8f5acc4f843bf373e14a9c8e3bc41cb58839
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2020-05-28 18:31:43 -07:00
Jigarkumar Zala
a4f5f1e512 msm: camera: flash: Add flash off operation in shutdown
There is high chances, when camera server crash flash may not have
flash off request scheduled with CRM. In case of torch on, followed
by shutdown sequence, if flash off request is not scheduled, flash
remains turned on. This change adds flash off operation, in case
of shutdown.

CRs-Fixed: 2691916
Change-Id: I472f2b204b93d0cdc3d8a1f14fff29ab479e4588
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2020-05-28 16:47:41 -07:00
Camera Software Integration
f458d8e16a Merge "msm: camera: sync: Increase number of fences in sync" into camera-kernel.lnx.4.0 2020-05-26 13:14:29 -07:00
Camera Software Integration
07a53e7a01 Merge "msm: camera: cci: Correct the check and return code" into camera-kernel.lnx.4.0 2020-05-26 13:14:11 -07:00
Camera Software Integration
f947043b90 Merge "msm: camera: reqmgr: Add subdev node at the time of register" into camera-kernel.lnx.4.0 2020-05-26 13:14:02 -07:00
Camera Software Integration
efaf7facfb Merge "msm: camera: sync: Add SYNC_CANCEL support in sync driver" into camera-kernel.lnx.4.0 2020-05-26 13:13:46 -07:00
Camera Software Integration
6990de7ea5 Merge "msm: camera: ife: Change log level" into camera-kernel.lnx.4.0 2020-05-22 13:09:57 -07:00
Camera Software Integration
7cc1ee3b13 Merge "msm: camera: uapi: Support for UAPI_HEADER_TEST config" into camera-kernel.lnx.4.0 2020-05-22 13:09:48 -07:00
Camera Software Integration
c1c4a0651a Merge "msm: camera: cpas: Add mandatory bw option for axi ports clocks" into camera-kernel.lnx.4.0 2020-05-22 13:09:33 -07:00
Camera Software Integration
46c7b6bf79 Merge "msm: camera: util: Correct the return code" into camera-kernel.lnx.4.0 2020-05-22 13:09:22 -07:00
Karthik Jayakumar
c6096c4e35 msm: camera: uapi: Support for UAPI_HEADER_TEST config
Aligns the uapi header types and includes to be in-line with upstream
kernel formatting. The errors are given by enabling the UAPI_HEADER_TEST
config, which is now enabled in GKI builds.

CRs-Fixed: 2679250
Change-Id: I195fb2aab9251043fc63d79dd31f2db53b1228f5
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2020-05-21 21:35:50 -07:00
Mukund Madhusudan Atre
f54a60cc9e msm: camera: reqmgr: Add subdev node at the time of register
Some driver probes do not have a real dependency on other
driver probes. Still, they are blocked from creating subdev
nodes if that driver's probe comes after all nodes were created
in master component bind. Add subdev node at the time of subdev
register itself, to lift this requirement.

CRs-Fixed: 2686729
Change-Id: I3505071a79296dd7d5665b13d533a9a022aa1a85
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2020-05-21 18:52:56 -07:00
Jigarkumar Zala
a1f635192b msm: camera: cci: Correct the check and return code
Update the master status data type, as it expects the negative value
and do the operation accordingly. Also, correct the return code and
update the validation check.

CRs-Fixed: 2686717
Change-Id: I8ecae74de2995a08e532a7f0ef078d48d45a928e
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2020-05-21 13:35:04 -07:00
Pavan Kumar Chilamkurthi
74410fea6b msm: camera: sync: Add SYNC_CANCEL support in sync driver
Add SYNC_CANCEL definition and signal CANCEL instead of
ERROR in flush cases.

CRs-Fixed: 2673810
Change-Id: I1bd83e382f9b38f5f020a5af3b883083e211e3d2
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
2020-05-20 12:48:36 -07:00
Alok Chauhan
0ec65e7c74 msm: camera: cpas: Add mandatory bw option for axi ports clocks
Bw voting is mandatory to enable rt_axi and nrt_axi
clocks. Adding support for the same.

CRs-Fixed: 2585073, 2685467
Change-Id: I236b3940faea3925e668e0e5ddbf61e8e569b2f7
Signed-off-by: Rishabh Jain <risjai@codeaurora.org>
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2020-05-15 20:30:22 -07:00
Karthik Anantha Ram
26ef750076 msm: camera: isp: Update last reported request ID correctly
The last reported request ID indicates the request ID for which
the shutter was sent last. Only update this field for requests
that have not bubbled in a given IFE ctx.

CRs-Fixed: 2680502
Change-Id: I9ee4b479fe95800efa40ea1ff8d840fc79ef6528
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-05-15 12:50:29 -07:00
Jigarkumar Zala
0bede4b524 msm: camera: util: Correct the return code
For secure mode, csiphy driver ask for secure stream. Currently
this call always return success. This change return the appropriate
result of failure/success.

CRs-Fixed: 2673418
Change-Id: Ib425ad77e6481888acefdaf843256602aa759cf3
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2020-05-12 17:30:41 -07:00
Mukund Madhusudan Atre
bfdaaba4eb msm: camera: sync: Increase number of fences in sync
Some mfhdr usecases require more than 1024 fences because of
delayed request processing and bypass. Increase maximum number
of fences or sync objects to 2048.

CRs-Fixed: 2598592
Change-Id: If11fa2986fce0cd97c14370d29a117230134d6f5
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2020-05-11 14:26:17 -07:00
Camera Software Integration
beb3ea37bb Merge "msm: camera: common: Remove extra CAM_INFO logs" into camera-kernel.lnx.4.0 2020-05-07 20:31:15 -07:00
Camera Software Integration
1d8c2c33ae Merge "msm: camera: isp: Fix checking for valid bw vote" into camera-kernel.lnx.4.0 2020-05-07 20:30:59 -07:00
Camera Software Integration
15f0a07e50 Merge "msm: camera: sync: Fix kbuild config checks for synx driver" into camera-kernel.lnx.4.0 2020-05-07 20:30:46 -07:00
Camera Software Integration
da7a91d4f7 Merge "msm: camera: cpas: Fix bw voting units for interconnect" into camera-kernel.lnx.4.0 2020-05-07 20:30:37 -07:00
Camera Software Integration
078fae7918 Merge "msm: camera: sensor: Turn off the flash while flushing" into camera-kernel.lnx.4.0 2020-05-07 20:30:16 -07:00
Camera Software Integration
c056e39f34 Merge "msm: camera: smmu: Add map and unmap monitor" into camera-kernel.lnx.4.0 2020-05-04 14:06:05 -07:00
Camera Software Integration
c072d0eaab Merge "msm: camera: smmu: Use iommu best match algo for camera" into camera-kernel.lnx.4.0 2020-05-04 14:05:57 -07:00
Camera Software Integration
7b2841a726 Merge "msm: camera: smmu: Add support for non-contiguous mermory region" into camera-kernel.lnx.4.0 2020-05-04 14:05:48 -07:00
Anil Kumar Kanakanti
538accf58e msm: camera: sensor: Turn off the flash while flushing
Turn off the flash while flushing if the flushed request is
flash off and removed flush request ID validation in flush_all
scenario.

CRs-Fixed: 2667472
Change-Id: Iaf123f2f56117d7b7d1ef6d2291b0cde8c232d44
Signed-off-by: Anil Kumar Kanakanti <akanakan@codeaurora.org>
2020-05-04 09:56:10 -07:00
Mukund Madhusudan Atre
7429211dfc msm: camera: isp: Fix checking for valid bw vote
The BW config coming from user space functions based on
usage type as single or dual. Checking the validity of bw
vote based on hw index caused bw updates to be ignored from
isp side. Fix checking for valid bw vote by falling back to
walking through all indices.

CRs-Fixed: 2669422
Change-Id: I5762fb06c8b69ade286d890146e91844fbde5ce7
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2020-05-04 09:49:34 -07:00
Mukund Madhusudan Atre
bac9cf4a20 msm: camera: cpas: Fix bw voting units for interconnect
In bw voting for ahb and axi, interconnect API requires
bw values in KBps. Add conversion to icc compatible units
before voting to interconnect framework.

CRs-Fixed: 2664087
Change-Id: If64c2bcbd20a3e2ad9f738e18955d5a8256d715c
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2020-05-04 09:49:29 -07:00
Camera Software Integration
4cccdd446e Merge "msm: camera: csiphy: Fixed CSID overflow errors" into camera-kernel.lnx.4.0 2020-05-01 16:47:13 -07:00
Camera Software Integration
865fed29b3 Merge "msm: camera: isp: Remove request ID in bubble sof notification" into camera-kernel.lnx.4.0 2020-04-30 11:48:00 -07:00
Camera Software Integration
4ca6ec945a Merge "msm: camera: csiphy: Remove unnecessary delay from reset sequence" into camera-kernel.lnx.4.0 2020-04-30 11:47:53 -07:00
Camera Software Integration
9e312575d7 Merge "msm: camera: csiphy: Update bringUp sequence" into camera-kernel.lnx.4.0 2020-04-30 11:47:37 -07:00
Camera Software Integration
a2e62547bd Merge "msm: camera: isp: Fix per req reg dump for Single IFE usecase" into camera-kernel.lnx.4.0 2020-04-30 11:47:18 -07:00
Camera Software Integration
09bbae85ac Merge "msm: camera: smmu: Profile time taken for map, unmap" into camera-kernel.lnx.4.0 2020-04-30 11:47:09 -07:00
Camera Software Integration
aa71c1c0b7 Merge "msm: camera: ife: IFE debug enhancement for overflow debugging" into camera-kernel.lnx.4.0 2020-04-30 11:46:59 -07:00
Karthik Jayakumar
655736ee0b msm: camera: common: Remove extra CAM_INFO logs
Changes extraneous CAM_INFO logs into CAM_DBG logs in order to help
de-clutter serial boot logs.

CRs-Fixed: 2669269
Change-Id: I7589bd64363aa122c46e1193c68bbf49d78a4a9a
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2020-04-30 09:37:40 -07:00
ANIL KUMAR KANAKANTI
a5c3abfd09 msm: camera: csiphy: Fixed CSID overflow errors
Fix: Updated PHY settings as per latest PHY HPG to
avoid possible CSID overflow errors.

CRs-Fixed: 2567045
Change-Id: I7a508cb8ef31b642b2afbeb1adb1508b1d8ee205
Signed-off-by: ANIL KUMAR KANAKANTI <akanakan@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2020-04-30 10:30:10 +05:30
Camera Software Integration
1e20d6f687 Merge "msm: camera: isp: Ignore other csid irq errors during csid top reset" into camera-kernel.lnx.4.0 2020-04-29 16:52:22 -07:00
Camera Software Integration
6d5b2a796c Merge "msm: camera: common: Add sysfs support for bw override" into camera-kernel.lnx.4.0 2020-04-29 16:52:03 -07:00
Jigarkumar Zala
49dfccf260 msm: camera: csiphy: Remove unnecessary delay from reset sequence
Lane enable register reset is not required any delay to reflect the
change. This change removes the unnecesaary delay from lane_enable
register. Also, adding 1us of delay between back to back write in
SW reset register along with condition based refelction of delay.

CRs-Fixed: 2671221
Change-Id: I010570045a97fc1489a84d22ebd39df6f6f14f0a
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2020-04-28 13:22:16 -07:00
Jigarkumar Zala
43e3ea9bf3 msm: camera: csiphy: Update bringUp sequence
Update 2phase and 3phase bring up sequence for different
data rate to reflect latest hpg change.

CRs-Fixed: 2671221
Change-Id: Idd7445a523486a5fb4ec5d43bcf8987c54c089b0
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2020-04-28 13:20:03 -07:00
Pavan Kumar Chilamkurthi
122039844c msm: camera: smmu: Add map and unmap monitor
Add map and unmap events in monitor array for each
context bank and dump the last set of events whenever
some smmu related issue happens.

CRs-Fixed: 2538876
Change-Id: I18941e9a64ebd6828419e13471938bb32438122c
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
2020-04-27 14:00:47 -07:00
Pavan Kumar Chilamkurthi
5b396d1411 msm: camera: smmu: Use iommu best match algo for camera
Use best fit match algo for smmu map instead of first match
algo to avoid fragmentation in smmu virtual space.

CRs-Fixed: 2580128
Change-Id: I434e6e4396bc713e6e12e3da7ae4b78cc2da6a42
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
2020-04-27 14:00:37 -07:00