Commit Graph

19 Commits

Author SHA1 Message Date
Jigarkumar Zala
f1135e91b9 msm: camara: sync: Add callback registration logic for synx
Synx driver is dependent on camera driver for registering callback
functions of sync driver. This change invert the logic, and camera
driver will register the callback functions for synx driver at the
time of sync driver probe.

Change-Id: I2dbee15ba4c7a9dde336a4bb1f2a4dddcd90348b
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-07-09 10:34:33 -07:00
Alok Pandey
a0129f5975 msm: camera: icp: setting QoS for a5 firmware
It sets the bus access priority for A5 core.

Change-Id: Ic110bc10d14ea512f79dfff361e61db4e9db6fe7
Signed-off-by: Alok Pandey <akumarpa@codeaurora.org>
2019-07-09 10:34:29 -07:00
Vishalsingh Hajeri
c952930533 msm: camera: isp: Add CSID binning
Add support to configure CSID binning

Change-Id: I09b76b287c243149c89cba958a786f7476c8addb
Signed-off-by: Vishalsingh Hajeri <vhajeri@codeaurora.org>
2019-07-09 10:34:25 -07:00
Jigarkumar Zala
326d40f7f1 msm: camera: eeprom: Increase memory map count
For write operation while read memory memptr should not need to increase as
it leads to crash. This change removes that increase opertion. Also,
increasing map count to support more data reading for eeprom.

Change-Id: Ie71deb225c2513e7c18229d174a9a0e129fdd1f7
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-07-09 10:34:20 -07:00
Jigarkumar Zala
146826aa41 msm: camera: eeprom: Fix OOB condition for memory map count
Fix OOB check for memory map count to access correct memory map.

Change-Id: Ifa3d323103725e4df57e86295bb7567835654b71
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-07-09 10:34:15 -07:00
Abhilash Kumar
a52b95db19 msm: camera: cpas: QoS setting for IFE1
It corrects QoS value for IFE1.

Change-Id: Iab70f9262cb275be575704206f09c820327564ab
Signed-off-by: Abhilash Kumar <krabhi@codeaurora.org>
2019-07-09 10:34:11 -07:00
Venkat Chinta
e7e5e70f17 msm: camera: ife: Enable sample drop on CSID RDI paths
This change enables CSID sample drop on RDI paths by default. The
sample drop pattern, as always, is set to 0 at init. This allows
the userspace driver to simply program sample drop pattern on
desired RDI paths to obtain sample dropped output without having
to also overwrite config register to enable drop. This change
also takes care of programming max value to sample drop period on
version 480 hardware due to hardware limitations. It also adds a
separate header file for CSID Lite version 480 hardware.

Change-Id: I6e8ace1df3241b7ab4e34d9a13b382f5dde8b4f3
Signed-off-by: Venkat Chinta <vchinta@codeaurora.org>
2019-07-09 10:34:07 -07:00
Mukund Madhusudan Atre
af6455ddfd msm: camera: cpas: Add updated QoS settings for kona
Adding updated values for registers in camnoc address space
which determine QoS for different axi bw paths.

Change-Id: I6a24b7650f542938fd9720ae86a0330b5d4fd048
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2019-07-09 10:34:03 -07:00
Jigarkumar Zala
eedac0e21c msm: camera: Correct the return logic for error case
Currently for the flush request error case, mutex unlock is
executed without mutex lock which result in instability of
system. This change returns with appropriate error code
if error occurs.

Change-Id: I2ff0056002c7d96a7100295f2ed6ba5cc0da2254
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-07-09 10:34:00 -07:00
Jigarkumar Zala
657d77d87d msm: camera: icp: Protect icp context access at time of pagefault
Take mutex before acessing icp context to prevent improper free.

Change-Id: If2fd2c66dd9a00f1ab5c9ec1710573c2921dce6a
Signed-off-by: Prakasha Nayak <pnayak@codeaurora.org>
2019-07-09 10:33:56 -07:00
Jigarkumar Zala
2c55550c19 msm: camera: isp: Add debugfs parameter for state monitor dump
This change adds a debugfs parameter to enable isp context state
monitor dump rather than always print by default. This change
also changes isp context substate to HALT only after stop hw
is complete.

Change-Id: I1025a46e9be63b4ee5808c2eb44672687d901c2e
Signed-off-by: Venkat Chinta <vchinta@codeaurora.org>
2019-07-09 10:33:52 -07:00
Jigarkumar Zala
7fd239ba24 msm: camera: Enable top debug status cfg register
In case of VFE Overflow print additional debug
information based on whether the overflow is
on bus side or in the IFE modules.

Change-Id: I292bab0e75824bd1f151a4824f25220784c81172
Signed-off-by: Vishalsingh Hajeri <vhajeri@codeaurora.org>
Signed-off-by: Venkat Chinta <vchinta@codeaurora.org>
2019-07-09 10:33:49 -07:00
Jigarkumar Zala
391b3fa3d6 msm: camera: Update csiphy settings for lito
Update the register settings for CPHY 3phase.

Change-Id: I5cdc5cd348f9f861215206c59e674efdcdc7159c
Signed-off-by: Shankar Ravi <rshankar@codeaurora.org>
2019-07-09 10:33:45 -07:00
Jigarkumar Zala
f8b0159a3e msm: camera: Update dynamic clock voting for csiphy
Update the clock voting, datarate settings for
csiphy version 1.2.2.

Change-Id: I7b08819c1918d2eeec530733d42828e092bf2aa9
Signed-off-by: Shankar Ravi <rshankar@codeaurora.org>
2019-07-09 10:33:41 -07:00
Jigarkumar Zala
aeffc3147d msm: camera: Adds state variable in mem manager
Add state variable for camera mem manager to show initialization status.
Ensure that all operations are rejected before initialization.

Change-Id: I1ddbaaf6fbed59e4804476562c97f6895d99e916
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
2019-07-09 10:33:35 -07:00
Jigarkumar Zala
40047f58df msm: camera: core : Validate the dev name during the node ioctl handler
Validate the context device name with node name. If device name is
not matching return the error.

Change-Id: I8dee4e6f64e17b0d1e486077a2c8b0df562a702e
Signed-off-by: Rishabh Jain <risjai@codeaurora.org>
2019-07-09 10:33:30 -07:00
Mukund Madhusudan Atre
396a4cc576 msm: camera: Add LCR in axi bw vote and checks for memory free
Adding LCR resource id in isp bw voting for axi bw voting v1 path
and v2 path. Also, adding checks for unwanted memory free during
cpas probe.

Change-Id: Ib3dca34727b640326893fb227b160a42dab457fc
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2019-07-09 10:33:26 -07:00
Mukund Madhusudan Atre
c28468e278 msm: camera: Add custom ratelimit logs and use for old blob type
Adding custom ratelimited log types and use it in generic blob
handler for isp and icp.

Change-Id: Iec6c94f41506839055c5e0036d2e343849dc12b5
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2019-07-09 10:33:21 -07:00
Jigarkumar Zala
05349feaa2 Camera: Bring over camera driver changes
Bring over camera driver changes as of msm-4.19
commit  5a5551a7 (Merge "msm: camera: reqmgr: Fix CRM
shift one req issue").

Change-Id: Ic0c2b2d74d1b3470c1c51d98228e312fb13c501a
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-07-08 10:24:55 -07:00