Commit Graph

28 Commitit

Tekijä SHA1 Viesti Päivämäärä
Karthik Anantha Ram
8a6b9bd10b msm: camera: uapi: Add new IFE blob and update feature flag
Add new BIT fields for IFE feature flag to indicate custom AEB
mode/shdr mode. Also add support to obtain epoch factor from
userland.

CRs-Fixed: 2986303
Change-Id: I1593b3ac3d1ace660bf58f2185f35e7f9986681c
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-07-07 12:40:32 -07:00
Camera Software Integration
19d782fd36 Merge "msm: camera: isp: Add support for vertical binning in CSID" into camera-kernel.lnx.5.0 2021-06-10 17:32:46 -07:00
Karthik Anantha Ram
1b89b74b0a msm: camera: isp: Add support for vertical binning in CSID
Add support to obtain hint from userland to enable binning in
either direction. The change updates the existing binning field
in UAPI to provide provision for both vertical & horizontal
binning options.

CRs-Fixed: 2841729
Change-Id: I37958d648ed4387d9e2bff8bcff8ffd39801baa3
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-06-09 10:58:08 -07:00
Ayush Kumar
566ac7abf8 msm: camera: common: Multiple fixes for crm redesign
This change help to resolve below issues :-
1. Update frame duration calculation
   Add frame duration calculation with the use of fps. In some cases
   where horizonal blanking is more, frame duration calculation based
   on sof epoch calculation is not accurate.
2. Corner case in bubble handling
   Add support to handle master link bubble even if ISP linked with
   slave link receive few buf done irq for bubble request before master
   sends slave link to bubble state.

CRs-Fixed: 2783209
Change-Id: Ibf35f31f5263be7b6a6be6cd095447a2910a6878
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2021-06-05 00:16:43 +05:30
Karthik Anantha Ram
8dc42065be msm: camera: isp: Add support for BW limiter
Add blob to allow userland to configure BW limter for IFE/SFE
WMs. Deprecate usage of BW limiter field in UBWC blob.

CRs-Fixed: 2841729
Change-Id: Id39414e2a6f9e9f9f4ae33aa245f3ab6f3ad0f45
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-05-26 09:44:39 -07:00
Karthik Anantha Ram
cf9c149e52 msm: camera: uapi: Add support to drop initial sensor frames
This change introduces a blob to obtain number of frames to be
dropped in CSID when sensor is streamed on. This parameter will
be applicable for all paths in the pipeline.

CRs-Fixed: 2841729
Change-Id: Idcf1f6c8223f885c82883aa1d5fdf6981ffcc813
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-05-03 20:02:38 -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
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
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
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
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
Camera Software Integration
811d02c493 Merge "msm: camera: isp: Enable format measurement in CSID" into camera-kernel.lnx.4.0 2020-06-18 17:19:48 -07:00
Ayush Kumar
5619922854 msm: camera: isp: Enable format measurement in CSID
Enabling format measure helps to find mismatch between
the expected sensor width and height with actual sensor width
and height. In case of metadata, width is more than 16 bit, hence
skip format measure check for it.
In case of mismatch CSID will give CSID_PATH_ERROR_PIX_COUNT
and CSID_PATH_ERROR_LINE_COUNT.

CRs-Fixed: 2634468
Change-Id: Ic57a18ee5217982d36116060371bdc99405ea759
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
Signed-off-by: Vishalsingh Hajeri <vhajeri@codeaurora.org>
2020-06-08 19:48:45 -07:00
Jigar Agrawal
6de4fa2ed8 msm: camera: ife: Add support to provide IFE count in Query caps
IFE Query cap currently gives only IFE Full Information. Update the
code to return IFE Full, IFE lite, full IFE-CSID and IFE-CSID lite
information in return of the IFE Query cap command.

CRs-Fixed: 2647995
Change-Id: I84cf5b766ce191aacad4a1de478c6eebafe917b3
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2020-06-08 14:15:40 -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
Prakasha Nayak
8dc1774e8b msm: camera: isp: Add epd Blob support
This change adds blob support to disable CSID EOT IRQ
in case of high data rate sensors which sends
EPD instead of EOT.

CRs-Fixed: 2566158
Change-Id: I8ac6d2281a6510d3702f3b651e2c7ca2391afe6c
Signed-off-by: Prakasha Nayak <pnayak@codeaurora.org>
2020-02-05 14:14:57 -08:00
Vishalsingh Hajeri
4a019e7828 msm: camera: uapi: Add flags for additional IFE HW
As part of acquire HW, kernel passes the IFE hw_idx to
userspace. This change will enable the capability to pass
the hw_idx of additional IFE HW enabled.

CRs-Fixed: 2582959
Change-Id: I689b99d021c8d0f3440e46d09a5dcda3daaefcfc
Signed-off-by: Vishalsingh Hajeri <vhajeri@codeaurora.org>
2020-01-08 16:50:53 -08:00
Vishalsingh Hajeri
4265f73698 msm: camera: common: Enable additional IFE hw
Add IFE2 in UAPI header to return acquired IFE's
hw index to userspace.

CRs-Fixed: 2582959
Change-Id: I42de76453753245376f9a857d5a7de979da78333
Signed-off-by: Vishalsingh Hajeri <vhajeri@codeaurora.org>
2019-12-19 17:48:24 -08:00
Abhijit Trivedi
9b6110b579 UPSTREAM: 11/12/19: Merge 'quic/camera-kernel.lnx.1.0' into 'quic/camera-kernel.lnx.4.0'
* quic/camera-kernel.lnx.1.0:
  msm: camera: common: Update uapi to support custom hw features
  msm: camera: ife: calculate accurate boot timestamp at CSID SOF
  msm: camera: cpas: Update ife_rd safe lut value
  msm: camera: sensor: Remove true/false redefinitions
  msm: camera: reqmgr: Add support to modify timer for long exposure
  msm: camera: reqmgr: Add provision to obtain exposure time
  msm: camera: cpas: Fix TCSR Register programming
  msm: camera: cci: Fix cam_cci_get_subdev for conditional compilation
  msm: camera: utils: Remove deprecated clk_set_flag functions
  msm: camera: csiphy: Update DPHY combo mode sequence
  msm: camera: csiphy: Correct Dphy mission mode sequence
  msm: camera: core: Fix extraneous variable declaration
  msm: camera: icp: Remove qcom soc dependency
  msm: camera: sync: Dump fence info in case of fence exhaust
  msm: camera: icp: Use CAM_PERF for clock, bw related logs
  msm: camera: common: va_end should follow va_start
  msm: camera: common: Fix integer overflow in shift
  msm: camera: reqmgr: Remove division on uint64_t
  msm: camera: isp: Improve isp substate logging
  msm: camera: isp: Limit sof_in_epoch log to first frame
  msm: camera: jpeg: Add plane stride & slice height debug info
  msm: camera: isp: Change state immediately in flush
  msm: camera: isp: Dump isp req for cdm timeout
  msm: camera: ife: Add packing format support
  msm: camera: icp: Fix AHB, AXI voting in icp
  msm: camera: ife: Remove duplicate add to port counters
  msm: camera: csiphy: Update CPHY 3-phase registers for CSIPHY v1.2

Change-Id: I93948d5cfcf2c8dea921d34696456490abd6f1e5
Signed-off-by: Abhijit Trivedi <abhijitt@codeaurora.org>
2019-11-12 12:51:34 -08:00
Karthik Jayakumar
8d6ec3bf3c msm: camera: uapi: Add camera subfolder
Added a camera subfolder for the UAPI headers to be located in.
This prevents the camera UAPI headers from overwriting upstream kernel
headers.

CRs-Fixed: 2554484
Change-Id: Ie1edbfe585bbd428a6e5d1a40b438d22bd7c06c0
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2019-11-01 14:03:03 -07:00