Commit Graph

100 Commits

Author SHA1 Message Date
Camera Software Integration
6c5c19ff95 Merge "msm: camera: uapi: Add interface for obtaining exposure order" into camera-kernel.lnx.5.0 2021-04-28 21:23:43 -07:00
Camera Software Integration
1ef8803d10 Merge "msm: camera: flash: Get the flash on wait time from userspace" into camera-kernel.lnx.5.0 2021-04-28 21:23:12 -07:00
Depeng Shao
0118523efd msm: camera: flash: Get the flash on wait time from userspace
This change gets the flash on wait time from userspace to
control the precise flash.

CRs-Fixed: 2929276
Change-Id: Ieac18f6e049b446c5a7b20dcfdff013aa9838575
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-04-23 13:00:39 +08:00
Jigar Agrawal
76857940be msm: camera: reqmgr: Propagate hw failures to user
Propagate error code to user in order to let the
user know more about the failure.

CRs-Fixed: 2860306
Change-Id: Icf030aa9df32eac97371059c2d282cfb53257401
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-04-19 19:07:15 -07:00
Karthik Anantha Ram
328a60b14b msm: camera: uapi: Add interface for obtaining exposure order
Add UAPI interface to obtain exposure order for SFE RDIs.

CRs-Fixed: 2841729
Change-Id: I6c01921d795645b825d007328332dad3c74523a6
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-04-15 13:58:23 -07:00
Wyes Karny
4e535ac459 msm: camera: isp: Add support for new CSID
Add CSID640 support. The following features support are added:
  - QCFA binning and BAYER binning support
  - Format measure support
  - Multi VC DT support
  - Add core_cfg support in in_port structure

CRs-Fixed: 2887030
Change-Id: Idd7d081c985f3ef21e0fee7ce4c1b8db96ddd3c3
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2021-04-12 01:34:13 -07:00
Vikram Sharma
23762a67ed msm: camera: cre: Add CRE driver changes
Add new camera driver Camera Reformat Engine (CRE).

CRs-Fixed: 2893978
Change-Id: Ia39b222493393bf7bb72525c86f0060ca0dc77c2
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2021-03-31 02:49:52 -07:00
Wyes Karny
dc1bf6d21b msm: camera: isp: Add new ports for TFE
Add support for new TFE ports.
New ports: DS4, DS16, AI, STATS RS, and independent PDAF.
Add new HW file. Remove older HW specific hard coding.

Depends-on: 3563428
CRs-Fixed: 2887030
Change-Id: I8ad7b0037652db39fe5a2e86af28028a3740f1f4
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2021-03-23 04:22:42 -07:00
Savita Patted
0626095cbc Merge "msm: camera: isp: Re-assign WMs for UAPI port names" into camera-kernel.lnx.5.0 2021-03-16 17:42:58 -07:00
Vikram Sharma
120169c774 msm: camera: cre: Add UAPI changes for CRE driver
This change adds UAPI interface file for CRE driver

CRs-Fixed: 2893978
Change-Id: I46b29755e1c7d9352d86250dbf6e7e31ab2ead0b
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2021-03-14 16:58:00 +05:30
Karthik Anantha Ram
5ce6aebaad msm: camera: isp: Re-assign WMs for UAPI port names
Switch WMs for current 2PD and 2PD_STATS ports. Rename
2PD_STATS to PREPROCESS_2PD inline with UMD notion.

CRs-Fixed: 2841729
Change-Id: I735ef397cfd6328aa2fef73970def0b64044fe2e
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-03-11 15:52:10 -08:00
Savita Patted
7d07226d92 Merge "msm: camera: sensor: Make some of the sensor enums uapi" into camera-kernel.lnx.5.0 2021-03-10 16:10:24 -08:00
Savita Patted
b2062b243b Merge "msm: camera: isp: Add new packer format to support LSB alignment" into camera-kernel.lnx.5.0 2021-03-09 20:18:07 -08:00
Jigar Agrawal
2bd4bd4aea msm: camera: sensor: Make some of the sensor enums uapi
Move sensor enums that are used by user mode
to uapi file for a synchronus operation. Currently,
user mode and kernel maintains two separate
copies of the same structure, so making a
change in these structure is error prone, since
there is no synchronization.

CRs-Fixed: 2894834
Change-Id: I3f413d03d7981ed3c886e684b11421cae7a39fca
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-03-09 11:03:08 -08:00
Savita Patted
24206e090b Merge "msm: camera: reqmgr: Add support to increase the crm handles" into camera-kernel.lnx.5.0 2021-03-09 01:30:51 -08:00
Savita Patted
505f88c7a3 Merge "msm: camera: uapi: Add support for new OPE ports" into camera-kernel.lnx.5.0 2021-03-09 01:30:22 -08:00
Jigar Agrawal
b621d13226 msm: camera: reqmgr: Add support to increase the crm handles
Add support to increase the number of available handles
in CRM to 256.

CRs-Fixed: 2811740
Change-Id: I16d05e85302f273ccb2b22ec882c07f9b515694d
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-03-03 18:18:42 -08:00
Haritha Chintalapati
280c7b643c Merge "msm: camera: uapi: Add register base support for CSID/SFE" into camera-kernel.lnx.5.0 2021-03-02 18:52:09 -08:00
Wyes Karny
547fd9371d msm: camera: uapi: Add support for new OPE ports
Add support for new ports for OPE in ICP.
New ports: FD, STATS_IHIST for IPE.

CRs-Fixed: 2887030
Change-Id: I41669f27f08a352088b0ed4ed29f2ed443fd02a4
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2021-03-02 04:18:08 -08:00
Karthik Anantha Ram
c19081ce1c msm: camera: uapi: Add register base support for CSID/SFE
Add new register base types to extend reg dump infrastructure
for Waipio.

CRs-Fixed: 2841729
Change-Id: I78888537721dd3e67a38b7196acf04309d1de957
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-02-26 15:53:40 -08:00
Haritha Chintalapati
b5ea977913 Merge "msm: camera: ope: Add support to dynamic switch pix_pattern" into camera-kernel.lnx.5.0 2021-02-25 17:16:40 -08:00
Vikram Sharma
2a948f7cc0 msm: camera: isp: Add new packer format to support LSB alignment
Add new packer format to support LSB alignment for plain16_10
packer format.

CRs-Fixed: 2825675
Change-Id: I401241dc14dc67d3b363d3d39b37aabe716e167c
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2021-02-24 23:34:33 -08:00
Savita Patted
37e33fb211 Merge "msm: camera: isp: Get hint for FS mode from UMD" into camera-kernel.lnx.5.0 2021-02-24 18:57:13 -08:00
Rishabh Jain
01249ea8d9 msm: camera: ope: Add support to dynamic switch pix_pattern
Add support to dynamically switch pix_pattern of read clients
based on data received in each request.

CRs-Fixed: 2811530
Change-Id: Icb3ebd33cae59b8db87bc0011d6560492ad29c3a
Signed-off-by: Rishabh Jain <risjai@codeaurora.org>
2021-02-23 10:58:45 -08:00
Jigar Agrawal
223fee3ea6 msm: camera: sensor: Add sensor name for better debugging
Add sensor name in the sensor drivers for better debugging.

CRs-Fixed: 2856300
Change-Id: I97995e2b731dcf05b5cf85d7b023be77d8a21327
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-02-16 20:54:59 -08:00
Karthik Anantha Ram
ce0aadce82 msm: camera: isp: Get hint for FS mode from UMD
In case of SFE FS mode, SFE PP needs to be bypassed by
programming sfe_offline_en in CSID wrapper. Get this
hint from UMD to differentiate between sHDR & FS use-cases.

CRs-Fixed: 2841729
Change-Id: If118440be2066c50871785f2077c69cff126d0f7
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-02-12 14:05:59 -08:00
Karthik Anantha Ram
9c7d665c19 msm: camera: isp: Configure HBI/VBI/Throttle params for TPG
Update hbi, vbi & throttle pattern in TPG with the values sent
from user-space in TPG blob.

CRs-Fixed: 2841729
Change-Id: Ie4d95252c0b00ce8226f39fe899eae7c0bf3c88a
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-02-11 13:29:15 -08:00
Camera Software Integration
43c1caa9f5 Merge "msm: camera: config: Makefile update to support GKI 2.0" into camera-kernel.lnx.5.0 2021-01-20 16:22:50 -08:00
Jigar Agrawal
7adee41eee msm: camera: sensor: Add support to hold sensor name
Add support for the new version a sensor probe
structure to hold the sensor name information
along with the existing informations.

CRs-Fixed: 2856300
Change-Id: Ib195455fbfe02b8d4035105bc6958d11c2a0faf6
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-01-15 18:25:13 -08:00
Chandan Kumar Jha
1975888f48 msm: camera: isp: Move epd support from blob to acquire time
This change moves epd support from blob to acquire.

CRs-Fixed: 2830502
Change-Id: I9794e5fe0fcad1c38c095a8d5b346f840d125da3
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
2021-01-13 16:54:03 +05:30
Karthik Anantha Ram
933cf650a1 msm: camera: isp: Add support for IFE epoch config
Add support to configure IFE epoch for SFE QCFA HDR
or binning use-cases.

CRs-Fixed: 2841729
Change-Id: I958656ddbe4e28d3247e317b021da5e963b03679
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-01-11 10:36:27 -08:00
Karthik Jayakumar
8c2e1cab8f msm: camera: config: Makefile update to support GKI 2.0
Adds support for camera kernel driver source being moved to Vendor SI.

CRs-Fixed: 2835738
Change-Id: Ibb876edb1284bc77c366c3ef9e1ee9a39981c960
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-01-11 10:11:37 -08:00
Gaurav Jindal
a3c040b4d0 msm: camera: isp: Add support to handle pix for lite
If there is a use-case where lite can be used to support PIX resources,
as a part of acquire, a hint will be sent to indicate that lite can
be acquired. This hint is used to acquire the lite csid based on the
use-case.

CRs-Fixed: 2830502
Change-Id: Ib0a005ed64cd7ffec579195948f0fcb8b24ea837
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-01-05 06:01:02 -08:00
Gaurav Jindal
aa4c865cc6 msm: camera: isp: Add UAPI changes for dynamic mode switch
During acquire, dynamic_sensor_switch_en flag is passed. This is used
to set the enable the bit in CSID rx.
As a part of config_dev, MUP and num_exposures are set.

CRs-Fixed: 2830502
Change-Id: Ie8a42f32b6fc61decff4fe1bddcb8ef41754af3d
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-12-23 09:06:39 +05:30
Gaurav Jindal
4b58880f6f msm: camera: isp: CSID Driver Refactoring
Due to major hw changes in latest CSID680 IP block, refactoring of
CSID kernel driver is required.
To support the hw speciific driver, version based files
are added. One common file to support the common functionality
and common utilities has also been added.

CRs-Fixed: 2830502
Change-Id: If1e2a0835ce285f968f154d2da5595e882ae6ccd
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2020-12-11 22:12:44 +05:30
Mukund Madhusudan Atre
f3965d4eec msm: camera: isp: Add UAPI changes for new VFE hardware
Add UAPI definitions for output resources of new VFE hardware.
Add changes to get the max output resource value based on
hardware version, at the time of probe.

CRs-Fixed: 2794540
Change-Id: I5f11be0546012c5f806153c2fd6b0aeb993f5d93
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2020-10-27 20:41:56 -07:00
Tejas Prajapati
4574450a12 msm: camera: common: Merge camera-kernel.3.1 changes in camera-kernel.4.0
msm: camera: cdm: Fix dangling pointer issue
msm: camera: cdm: change work record to atomic variable
msm: camera: utils: Adding device type to track device handles
msm: camera: tfe: Reduce stack footprint during bw vote
msm: camera: req_mgr: Thread switch delay detection mechanisms
msm: camera: cdm: Avoid submitting BL if FIFO is full
msm: camera: tfe: check cdm hang in the tfe config timeout
msm: camera: req_mgr: Delay detection mechanism
msm: camera: cdm: Debug info in case of cdm page fault
msm: camera: isp: Max context reduction for TFE in isp driver
msm: camera: ope: Maintain current clock value during acquire
msm: camera: req_mgr: Limit CAM_ERR log in case of no empty task
msm: camera: cdm: Decrement write-count only after Bl commit
msm: camera: isp: Added CSID recovery mechanism.

CRs-Fixed: 2792394
Change-Id: I1c7a903ae15b572acf3f6318cda7394cb6549c8d
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
2020-10-13 12:08:01 +05:30
bohahuan
9d1e44a94f msm: camera: memmgr: increase max slot count into 2048
In case large memory slot usage scene like MFHDR, MFSR.
increase kernel slot count to avoid out of memory issue.

CRs-Fixed: 2718732
Change-Id: I49dd2d9bdda548d5f95fa49c290364ecb6d40f6e
Signed-off-by: bohahuan <bohahuan@codeaurora.org>
2020-09-08 19:56:32 -07:00
Karthik Anantha Ram
f44caab866 msm: camera: isp: Add uapi for IFE/SFE HW blocks
Add support for IFE/SFE UAPI changes in ISP driver for
Waipio SoC.

CRs-Fixed: 2733230
Change-Id: I5320d2cf02afe1a2d203da65604c83d7b38cad38
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
Signed-off-by: Vishalsingh Hajeri <vhajeri@codeaurora.org>
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2020-09-01 12:51:22 -07:00
Shravya Samala
762751a88c msm: camera: ife: Configure epoch to exactly half of the frame
Some customers have sensor mode with more blanking width.
Due to this, time is not sufficient for applying
setting thus resulted in frame drops.
To avoid this situation, epoch is calculated on complete
frame and configured at half the frame.

CRs-Fixed: 2757095
Change-Id: I92927c23762f717d6ddca67a7e641422e8fb6d8f
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
2020-08-26 23:17:51 -07:00
Haritha Chintalapati
eedefac65c Merge "msm: camera: sync: Rearrange sync reason events" into camera-kernel.lnx.4.0 2020-08-25 16:43:57 -07:00
Haritha Chintalapati
28c2e8b5ef Merge "msm: camera: common: Define debugflag to allocate usecase info" into camera-kernel.lnx.4.0 2020-08-25 16:42:58 -07:00
Alok Chauhan
baf2d520ed msm: camera: sync: Rearrange sync reason events
Rearrange sync error reason code for better code
readability.

CRs-Fixed: 2750553
Change-Id: Ia64694155921c074946167763815a87beb856b35
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2020-08-24 13:48:40 +05:30
Camera Software Integration
73fd4e6bef Merge "msm: camera: core: Send event on smmu page fault" into camera-kernel.lnx.4.0 2020-08-21 14:07:01 -07:00
Camera Software Integration
80e8ff8cff Merge "msm: camera: tfe: Adds support PHY3 input source" into camera-kernel.lnx.4.0 2020-08-20 15:03:31 -07:00
Camera Software Integration
af5a6819f3 Merge "msm: camera: sync: Add SYNC_V4L_EVENT_V2 support in sync driver" into camera-kernel.lnx.4.0 2020-08-20 15:02:51 -07:00
Alok Chauhan
23fc6a670c msm: camera: common: Define debugflag to allocate usecase info
Define debug flag to allocate usecase info for debug purpose.
This flag can be used to get usecase buffer index at issue
time.

CRs-Fixed: 2707314
Change-Id: Iffacdb48f77ec6907b8070d4c19eb1c56be30f14
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2020-08-20 14:57:32 +05:30
Ravikishore Pampana
b746c4f527 msm: camera: core: Send event on smmu page fault
Currently when page fault happen, iommu driver callers camera
handler with CB details and iova address which caused the page
fault. With iommu iova address cam smmu driver finds the
closest mapping address for that cb and call the
corresponding driver to find the which port caused page fault.
This has limitation has page fault address always not mapped.
New approach is get the page fault ids from iommu driver.
Based on the Pid and Mid values, get the HW id and port ids,
go through all context which has this hw id and port id and log
the data. Once context id is identified, log the acquire data and
last consumed client address details. Dump the hw register data
in the given buffer. Send the smmu page fault event through
v4l2 queue to user.

CRs-Fixed: 2750690
Change-Id: I87c809b3229992c7c95655a4f3c6c70ebc035ae8
Signed-off-by: Ravikishore Pampana <rpampana@codeaurora.org>
2020-08-19 14:16:38 +05:30
Vikram Sharma
55944b0201 msm: camera: cpas: read and pass fuse information to user space
This change extract the fuse info from DTSI and reads the fuse
value then communicate the same to user space using query_cpas_v2
ioctl.

CRs-Fixed: 2749665
Change-Id: Ie161dc58a7eab3e7b74a5c406ab696af0e7b546e
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2020-08-17 09:50:13 +05:30
Trishansh Bhardwaj
7264d367c3 msm: camera: tfe: Adds support PHY3 input source
Adds support for CSID input source PHY3.

CRs-Fixed: 2756383
Change-Id: I988ffc353518b5d932fa95eedeef8607726e183f
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
2020-08-16 17:59:14 +05:30