Increase the total number of camera ID's supported.
Change-Id: Icf9cf2e48757d437a2b7dbbe618e886dc0203f6d
Signed-off-by: Om Parkash <quic_oparkash@quicinc.com>
Completed implementation of IFE and CSIphy device diagnostic APIs
Change-Id: I7815af881c9986feade4150e0d64dd235bbea7c1
Signed-off-by: E V Ravi <evenka@codeaurora.org>
Add support for nested camera smmu for content protected streams.
Acked-by: Abderahmane Allalou <aallalou@qti.qualcomm.com>.
Change-Id: I84535d826e6b4657277fb6b48326d7d28a3ab93b
Signed-off-by: Terence Ho <terenceh@codeaurora.org>
S2R: Implement .suspend() and .resume()
S2D: Implement .thaw() and .restore().
Change-Id: Idef319f8f67895fcadb838fb72f03187799401c8
Signed-off-by: E V Ravi <evenka@codeaurora.org>
Add new AIS IFE driver as a lightweight variant for RDI only usecases
based on msm-4.14 cam_isp as of commit 698ee3d927
("msm: ais: isp: validate in_port before accessing").
The API definition is in ais_isp.h and ais_isp_hw.h.
Change-Id: I04927f0f184045985f52bb7cb6c8c42a47ec6476
Signed-off-by: Terence Ho <terenceh@codeaurora.org>
Add cci sync API to support multiple i2c slaves,
also allows multiple clients to work on the same cci
device.
Change-Id: I1f5cf6a78bd7bc9c93a7f305743100c85631ae59
Signed-off-by: YUE CHEN <yueche@codeaurora.org>
In case of drop due to sw sync logic in
dual camera, need to update the isp page
with the number of frames that are dropped.
Change-Id: I18c4bbf781a5f1f2bf2f48518464b2e459ac7892
Signed-off-by: Meera Gande <mgande@codeaurora.org>
Migration of 4.9(vidc_3x) driver to kernel 4.14.
This is snapshot of the video driver as of msm-4.9(vidc_3x)
commit 79457f1020bc4ee (" update the condition for load check").
Change-Id: I7ca104c341c2b4661479a72286663fe2eb3139e5
Signed-off-by: Vasantha Balla <vballa@codeaurora.org>
Configure the gpios as irq mode, send the event
to ais when error detected.
Change-Id: I6aaa6e002fbcea4013e2e80c34052f62ad8b604e
Signed-off-by: YUE CHEN <yueche@codeaurora.org>
Expose CCI nodes and add CCI interface for debugging.
Change-Id: I890a2cf03360e524b9ce401dbd599ab2afa79c5b
Signed-off-by: Terence Ho <terenceh@codeaurora.org>
Add sync extension to create object with client id param that will
be offset of v4l2 event used. Also add reset API to enable reuse
of signalled sync objects.
Change-Id: I0d2297a57367b1cc81e48848de640df860078e70
Signed-off-by: Terence Ho <terenceh@codeaurora.org>
Notify the CSID errors to user space.
User space can then chose to take appropriate action based on
the error.
Change-Id: Ic7d8848d7bf8a91d1629365ac4ce0bccb87e7a3c
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
* commit '08173d1ffb1a9ad8121c7f704726240d2afb83ee':
msm: camera: isp: Fix Page fault dump for first request
msm: camera: cpas: Add Urgency Low register value
ARM: dts: qcom: Correct max voltage of Regulator L4
msm: camera: isp: Adding cpas hw version for SCM call in atoll
msm: camera: csiphy: update csiphy data rate settings for sm8150
msm: camera: csiphy: Update csiphy settings for sm8150
msm: camera: csiphy: reset phy lane configs on shutdown
msm: camera: reqmgr: return if sync_slot_idx is not found
msm: camera: LDAR Debug info dump framework implementation
msm: camera: lrme: Handle release lock when returning from error case
Change-Id: If48867128616f0da0d854850bd84619faa437c1c
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
* commit '5ec74675604e1a4129213d032fff0e49d3567112':
msm: camera: cam_isp: Change default fps value
ARM: dts: msm: Add camera sensor nodes for atoll
ARM: dts: qcom: Enable phy regulators for atoll
ARM: dts: qcom: Add csiphy, cci for atoll
msm: camera: cpas: Add cpas support for camera v150_110 platform
ARM: dts: msm: Add AHB-IB voting bandwidth to bring up v150_110 camera
msm: camera: eeprom: Release the mutex even though got error
ARM: dts: msm: Add PPI clock sources to bring up v150_110 camera
msm: camera: isp: Added PPI driver functionality
ARM: dts: msm: Add dtsi support for v150_110 camera
msm: camera: Add csiphy version for atoll
msm: camera: isp: Log information during IFE acquire failure
msm: camera: cam_isp: Recovery after IRQ delayed
msm: camera: isp: Add fps Blob support
msm: camera: isp: Enable pixel_format_measurement in CSID
msm: camera: isp: Handle wait and active list during flush all
msm: camera: isp: Add irq status prints to CAM_ERR
Change-Id: I7caa2253ad5dfcc5275ee5945ff8b118e7de225a
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
When user space detects an error for a request or does
not receive the expected response. it sends dump request
to kernel space.
User space passes the culprit issue request id
and the buffer where the info can be dumped.
Kernel space traverse across the drivers and find the culprit hw
and dumps the relevant information in the buffer.
This data is written to a file by user space for offline
processing.
This commit implements the framework for the traversal
across the RT and NRT devices.
Change-Id: I0b14206f1b740089677160eecf84025c6babf59d
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
Add fps blob to get the fps value from user space. Epoch interrupt
configuration will be depend on the fps value. Configure epoch
interrupt to half of the frame if fps value is 60, in rest all cases
configure epoch interrupt to 2/3 of the frame.
Change-Id: I2544a5e18895a983155c2f01e49920c9e1ec59b9
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
Thirdparty EIS need sof timestamp to be in nanoseconds and
this change will send new event sof_nanosec to get
nanosec timestamp.
Change-Id: Ia9884a2612cc3aa1153b4677521fce7ddfb8d1ba
Signed-off-by: Mounika Reddy Tangirala <mtangi@codeaurora.org>
Enabling format measure helps to find mismatch between
the expected sensor width and height with actual sensor width
and height.
In case of mismatch CSID will give CSID_PATH_ERROR_PIX_COUNT
and CSID_PATH_ERROR_LINE_COUNT.
Change-Id: I11aefe7d073ec47810564442109981d0e46f9844
Signed-off-by: Rishabh Jain <risjai@codeaurora.org>
Add driver for PWM based IR-LED and IR-CUT filter
in camera to be used to capture very low light scenario.
It takes IR mode and IRLED Intensity from UMD configures
IRLED and IR CUT filter accordingly.
Change-Id: I97328b14c177a05f9f48a37d3198193e2204acd8
Signed-off-by: Om Parkash <oparkash@codeaurora.org>
In secure camera mode, publish topology and stream
start and stop events to TZ for it to reset the
modules, which adds to the security of the data.
Change-Id: If7f4b85199e628846a1a416530f43ad4afa786ac
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
Signed-off-by: Shadul Shaikh <sshadu@codeaurora.org>
Signed-off-by: Sumalatha Malothu <smalot@codeaurora.org>
Initial frame drop is required for some sensors. User space
provide the number of frames need to drop through blob
command buffer.
If initial frame drop is provided, CSID driver enable the SOF irq
at csid path start. For every SOF IRQ, count will be incremented
and if it reaches the init frame drop number then configure path
control registers to start the path at frame boundary.
For dual ife usecase, first RDI frame need to drop as pix frame
will be dropped for csid synchronization.
Change-Id: I615c9f03a7387329214fa6d2fc12e8578a665593
Signed-off-by: Ravikishore Pampana <rpampana@codeaurora.org>
Increasing the device handles to 128 to support more pipelines.
Change-Id: Id0322cba095091e6168d8541d432628d8422a641
Signed-off-by: Mangalaram ARCHANA <mangar@codeaurora.org>
register dual vfe irq, and handle the events accordingly
Change-Id: Ie33b10ba4792af77e3b80b76a3d06998304ff123
Signed-off-by: Ramesh V <ramev@codeaurora.org>
* commit 'cc19ad28282a9db6269397fc357234b4c62fd77f':
msm: camera: Add bounds checking for output resources
ARM: dts: msm: Add new nodes for tele and ultra wide camera for sm6150
ARM: dts: msm: Mclk3 support for sm6150
msm: cam: cpas: Handling AB BW passed by UMD along with IB
msm: camera: smmu: Move the error message at correct place
msm: camera: sensor: Subtract offset before validating cmd desc
Change-Id: I7128ee8b093e215b8cc43e4f3125060a23387f18
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
Currently CPAS only handles IB voted by each client.
Added support to handle AB along with IB to be voted on
external bus.
Change-Id: Iff5b28f3980a1293adb81e389915d08ff84728bc
Signed-off-by: Alok Pandey <akumarpa@codeaurora.org>
Adding support to decode 12 bit raw metadata
at CSID.
Change-Id: I89bb9f69f3f004df29b1498761e9a54fb88cdef0
Signed-off-by: Mounika Reddy Tangirala <mtangi@codeaurora.org>
This mechanism allows to take control over camera data path
in order to limit access to the camera frame streams. If
enabled the CSID address space is exclusively available to TEE.
TEE is responsible to actually read/write the CSID registers
according to the information relayed from the HLOS driver.
Change-Id: Ifae30241b704d8d9bc265ebff96a35c6266f2911
Signed-off-by: Shadul Shaikh <sshadu@codeaurora.org>
In few scenarios, the request frame may get
delayed and current and request frame id may
become same. To handle such scenarios, made
changes to inform user to delay a frame and
process the request.
Change-Id: I31fa04c386922c48a043c511a163c76316e21987
Signed-off-by: Meera Gande <mgande@codeaurora.org>
Signed-off-by: Abhishek Jain <abhij@codeaurora.org>
* commit '4593b60130a84ec26b8afced5b7732d7854787ae':
msm: camera: Correct driver removal operations for sensor modules
msm: camera: Change reset sequence for CSID
msm: camera: icp: KW work issue in ICP
msm: camera: sensor: Add check for overflow for sensor util
msm: camera: lrme: Check the HW state before access register
msm: camera: ife: Adds bound checking for output resources
msm: camera: Add cpas stop in case of notify secure mode failure
msm: camera: reqmgr: Validate num links in link control
msm: camera: crm: Notify UMD on Error to preform recovery
msm: camera: reqmgr: Remove kfree calls on link struct
ARM: dts: msm: Flag for dynamic ib bw update for SM8150/sdmmagpie
msm: camera: Add flag to dynamically update axi ib bw
msm: camera: flash: Moving flash off operation in stop dev ioctl
Change-Id: I55fa590a691958be6b05a5aa447d8c64654e5527
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
This driver provides interface to resource manager to get secure handle.
The handle is used by secure camera interface.
Change-Id: I8cf479a8680180aa2436ffb54c6b93839200ff90
Signed-off-by: Alok Pandey <akumarpa@codeaurora.org>