提交線圖

1102 次程式碼提交

作者 SHA1 備註 日期
Haritha Chintalapati
541b3d709a Merge "msm: camera: memmgr: Re-structure ion alloc usage" into camera-kernel.lnx.5.0 2021-01-13 13:49:14 -08:00
Savita Patted
b8a0954d26 Merge "msm: camera: isp: Disable csid sof irq logs based on threshold count" into camera-kernel.lnx.5.0 2021-01-12 13:47:07 -08:00
Savita Patted
c3a9b66901 Merge "msm: camera: isp: Add lite flag to csid caps" into camera-kernel.lnx.5.0 2021-01-12 13:46:36 -08:00
Pavan Kumar Chilamkurthi
7f497cf736 msm: camera: memmgr: Re-structure ion alloc usage
Consolidate ion usage functions and bring all ion related
usage into one single function. This helps to easily
write a different allocation wrapper in case a new allocator
need to be used in future.

CRs-Fixed: 2852327
Change-Id: I717ee5a976ae0f148dcdd5a050204514566c823d
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
2021-01-11 20:28:01 -08:00
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
Chandan Kumar Jha
83c75cccf4 msm: camera: isp: Disable csid sof irq logs based on threshold count
On encountering a sof freeze we dynamically enable csid sof irq logs.
These need to be disabled to avoid excessive logging based
on threshold count.

CRs-Fixed: 2830502
Change-Id: Ie5a67de047be9f6085323939543a14483c546a03
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
2021-01-11 18:09:15 +05:30
Camera Software Integration
0499b96da4 Merge "msm: camera: common: Optimize cam context memory" into camera-kernel.lnx.5.0 2021-01-08 14:29:46 -08:00
Camera Software Integration
23ef6775a7 Merge "msm: camera: isp: SFE BW update support" into camera-kernel.lnx.5.0 2021-01-08 14:29:30 -08:00
Gaurav Jindal
e8ae28dd91 msm: camera: isp: Add lite flag to csid caps
Add lite flag to csid caps.

Change-Id: I9d5dd2feeb845084a593559e5907c9238f8e3b0f
CRs-Fixed: 2830502
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-01-07 23:17:00 -08:00
Haritha Chintalapati
13bc7b6a63 Merge "msm: camera: isp: Fixing KW errors" into camera-kernel.lnx.5.0 2021-01-07 14:33:06 -08:00
Karthik Anantha Ram
4cb3cf0fd6 msm: camera: isp: SFE BW update support
Add support for BW update for SFE WMs/RMs.

CRs-Fixed: 2841729
Change-Id: I44d446335e555309537287fe5fa730f70dcc208f
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-01-06 17:28:20 -08:00
Haritha Chintalapati
82a76b86ad Merge "msm: camera: isp: Add missing config values for RDI on Lahaina IFE Lite" into camera-kernel.lnx.5.0 2021-01-06 13:16:10 -08:00
Haritha Chintalapati
5d0aef3c74 Merge "msm: camera: isp: Add support to handle pix for lite" into camera-kernel.lnx.5.0 2021-01-06 13:15:51 -08:00
Haritha Chintalapati
b70f5f7c82 Merge "msm: camera: isp: Add CSID meta handling" into camera-kernel.lnx.5.0 2021-01-06 13:15:22 -08:00
Gaurav Jindal
1a5797c6a8 msm: camera: common: Optimize cam context memory
In current implementation, cam_ctx_req has a array of
hw_update_entries, in_map_entries and out_map_entries. Each
context has array of N requests. Memory for all contexts is
allocated during probe. This causes a huge memory remaining
unutilized.
This commit moves the memory allocation to context acquire time
and freeing this memory during context release. In place
of using array, now dynamic allocation is used.
A top level calculation shows a memory reduction of around 2M-
2.5M with this change including all the camera drivers.

CRs-Fixed: 2830502
Change-Id: Id63cf2a52272e2a419704dc95100694e384330c3
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-01-06 06:53:08 -08:00
Chandan Kumar Jha
9d1980a8e2 msm: camera: isp: Fixing KW errors
Fixes KW errors for ISP.

CRs-Fixed: 2830502
Change-Id: I60f01a0da2d47bb8d0c249a73962a571ba9bee0a
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
2021-01-06 11:07:16 +05:30
Haritha Chintalapati
c6b2796833 Merge "msm: camera: isp: Update Blob support for dynamic mode switch" into camera-kernel.lnx.5.0 2021-01-05 12:43:52 -08:00
Haritha Chintalapati
07324022b6 Merge "msm: camera: isp: Resolve compilation errors" into camera-kernel.lnx.5.0 2021-01-05 12:43:39 -08:00
Haritha Chintalapati
009a397666 Merge "msm: camera: csiphy: Update the csiphy programming sequence" into camera-kernel.lnx.5.0 2021-01-05 12:43:23 -08:00
Haritha Chintalapati
6b98418d5b Merge "msm: camera: isp: Add IRQ registers & RUP mask for CSID Lite 680" into camera-kernel.lnx.5.0 2021-01-05 12:43:02 -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
f97ec2b211 msm: camera: isp: Add CSID meta handling
For some chipsets, CSID lies outside the IFE domain. To handle
the cmd buffer programming in such cases, we need to handle
the CSID meta and add change bases accordingly. Reg update for
CSID is also optimized.

Change-Id: I77cceb62681bc46b4ac8a4f54e4051401b02ba36
CRs-Fixed: 2830502
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-01-05 19:06:13 +05:30
Anand Ravi
b468cfda48 msm: camera: isp: Load VFE reset information from hardware files
Currently, VFE reset information is hardcoded and cpas hw version checks
are used to determine register information. In some hardware versions,
from Waipio onwards, VFE top doesn't support reset and can only be
triggered externally from CSID.

This change adds support for VFE reset for Waipio and allows for loading
of register and hardware information from hardware specific header
files. It also adds the ability to query for supported IRQ based on the
hardware.

CRs-Fixed: 2846451
Change-Id: I915b7a7926f6380c6a650fa10e0c2a65e14a0ec0
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
2021-01-04 10:05:16 -08:00
Shravya Samala
d486610bc7 msm: camera: isp: Resolve compilation errors
Few timer related apis are deprecated, which
resulted into compilation errors.

CRs-Fixed: 2845715
Change-Id: I11a446c589e34552800f706cb774aedc36ec5cd2
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
2021-01-04 04:57:03 -08:00
Anand Ravi
d52fbf7117 msm: camera: isp: Add missing config values for RDI on Lahaina IFE Lite
CSI2 RX PHY selection and lane swapping shift values are missing in the CSID
480 header file. The values default to zero which results in SOF freeze.
Adding these values restores the RDI functionality post-CSID-refactor.

CRs-Fixed: 2830502
Change-Id: I32c75a4b3a911cb871fd404f9e6d5addd626bb50
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
2020-12-30 16:57:57 -08:00
Anand Ravi
3124ed283b msm: camera: isp: Add IRQ registers & RUP mask for CSID Lite 680
This change adds the missing irq registers in CSID 680 lite header files
and also adds fixes required for register update to be received.

CRs-Fixed: 2830502
Change-Id: I1e37936decd3765eb3e75a28f7d3115613dc39b9
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
2020-12-30 16:38:10 -08:00
Chandan Kumar Jha
32c4409c9b msm: camera: isp: Update Blob support for dynamic mode switch
This change contains the missing part of dynamic mode switch blob support. 

CRs-Fixed: 2830502
Change-Id: I17f816c5cb90d135c4740fdcb732b7f469f8d24f
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
2020-12-29 12:23:55 +05:30
Chandan Kumar Jha
9c6e48201c msm: camera: isp: Add Blob support for dynamic mode switch
Add blob support to get the mup value for dynamic mode switch
from user space.

CRs-Fixed: 2830502
Change-Id: Ia90d8e38aab69c372d80e6817cc950d741648dcb
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
2020-12-23 10:47:53 +05:30
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
Haritha Chintalapati
7a3d1bc43b Merge "msm: camera: isp: Allow different in_ports to acquire same TPG HW" into camera-kernel.lnx.5.0 2020-12-22 18:24:45 -08:00
Haritha Chintalapati
72bea02a93 Merge "msm: camera: utils: Consume upstream api for io" into camera-kernel.lnx.5.0 2020-12-22 18:24:29 -08:00
Haritha Chintalapati
eecf51b957 Merge "msm: camera: isp: Enhance SFE driver" into camera-kernel.lnx.5.0 2020-12-22 18:24:09 -08:00
Haritha Chintalapati
f0dfadcf46 Merge "msm: camera: isp: HW mgr changes for SFE HW" into camera-kernel.lnx.5.0 2020-12-22 18:23:51 -08:00
Haritha Chintalapati
c9eb0e320a Merge "msm: camera: isp: Add error irq and debug logs in CSID" into camera-kernel.lnx.5.0 2020-12-22 18:23:33 -08:00
Haritha Chintalapati
a6d0939e8e Merge "msm: camera: icp: Introduce processor boot/shutdown sequence" into camera-kernel.lnx.5.0 2020-12-22 18:22:53 -08:00
Jigar Agrawal
c8ff7a3c9f msm: camera: csiphy: Update the csiphy programming sequence
Update the csiphy2.1.0 programming sequence for the update
on 11/19/2020.

CRs-Fixed: 2833124
Change-Id: Ie5c00423bc9dea42996108eeb6722ec975ca065f
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2020-12-22 11:05:57 -08:00
Haritha Chintalapati
4a01b61208 Merge "msm: camera: isp: sHDR & offline changes in CSID" into camera-kernel.lnx.5.0 2020-12-21 16:05:35 -08:00
Karthik Anantha Ram
f7c65899fc msm: camera: icp: Introduce processor boot/shutdown sequence
Abstract the firmware loading and processor boot/shutdown
mechanisms. The device interface is best suited to dealing
with the sequence.

Note this also cleans up some descriptions in struct cam_icp_hw_mgr
that were left over when the debugfs entries were renamed.

CRs-Fixed: 2842016
Change-Id: I1574c799a2b023c02137b32572f8284fe7523188
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-12-21 11:46:36 -08:00
Gaurav Jindal
e38f67f1f0 msm: camera: isp: Add error irq and debug logs in CSID
Overflow error irq are not enabled. Debug logs are missing
in dual sync function.

This commit:
Adds error irq mask in CSID.
Enables overflow errors and mup frame drop.
Adds logs for dual sync configurations.
Changes return value to IRQ_HANDLED in path bottom_half.
Optimizes function to print path irq status.

CRs-Fixed: 2830502
Change-Id: I6d03ee659082769152cb1ac14a5486e03c273289
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2020-12-21 17:50:22 +05:30
Karthik Anantha Ram
57bf238016 msm: camera: isp: HW mgr changes for SFE HW
HW mgr and packet parser changes for new SFE HW block,
introduced on Waipio chipset.

CRs-Fixed: 2841729
Change-Id: Ia8dbeb128448cd399fcce6c4fb74252793664574
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-12-20 15:35:57 -08:00
Karthik Anantha Ram
91aea32016 msm: camera: isp: Allow different in_ports to acquire same TPG HW
In case of sHDR we need to configure same TPG for different vc-dt
corresponding to each exposure channel.

CRs-Fixed: 2823940
Change-Id: I9b754b7f4d0d8e13d81c9c928e2fcc06e05203c0
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-12-19 18:46:54 -08:00
Karthik Anantha Ram
b901fba0b2 msm: camera: isp: Enhance SFE driver
Enhance SFE irq handling, debug capabilities and support
line based config for SFE RDI0-2 WMs.

CRs-Fixed: 2841729
Change-Id: I2057310608f2833819f50f0d61b154421de3b0ad
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-12-18 20:11:04 -08:00
Jeyaprakash Soundrapandian
accaa3a3c6 msm: camera: utils: Consume upstream api for io
camera io function call needs to use directly
from upstream api's.

CRs-Fixed: 2835738
Change-Id: I54c00bf784721984d060c34e472c6eea4e5ca012
Signed-off-by: Jeyaprakash Soundrapandian <jsoundra@codeaurora.org>
2020-12-18 19:17:04 -08:00
Haritha Chintalapati
d8174b2e37 Merge "msm: camera: isp: Change comparison condition to fix compilation" into camera-kernel.lnx.5.0 2020-12-18 16:28:55 -08:00
Haritha Chintalapati
adef4936f6 Merge "msm: camera: cdm: Add Change base for RT-CDM" into camera-kernel.lnx.5.0 2020-12-18 16:28:46 -08:00
Camera Software Integration
788687670c Merge "msm: camera: isp: Fix sensor dimension and minor issues" into camera-kernel.lnx.5.0 2020-12-17 13:52:55 -08:00
Camera Software Integration
6a84f8b5ad Merge "msm: camera: isp: VFE TOP Refactor" into camera-kernel.lnx.5.0 2020-12-17 13:52:47 -08:00
Gaurav Jindal
5277f10c4a msm: camera: isp: Change comparison condition to fix compilation
With auto compare flags enabled, compilation fails for some conditions.
This commit changes the comparison condition.

Change-Id: I411ab5127afba3d4073092d8fc44aa36982fbb27
CRs-Fixed: 2830502
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2020-12-17 14:33:08 +05:30
Gaurav Jindal
4960bbc41b msm: camera: isp: Fix sensor dimension and minor issues
Add sensor dimensions for all the paths and fix some minor issues.
Fix error handling scenarios.

Change-Id: Idf0e9a58d38c389821ff2c72c0662c7252df3765
CRs-Fixed: 2830502
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2020-12-17 00:38:23 +05:30
Karthik Jayakumar
1f0db194fb msm: camera: common: Remove all references to struct timeval
Remove all uses of struct timeval due to deprecation of the API in linux kernel
5.5+. The API is deprecated due to an overflow issue in the year 2038 on 32-bit
architectures.

CRs-Fixed: 2835738
Change-Id: I1d0ebb30cd77e9465121425a3cf7af80127bed6e
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2020-12-15 16:09:16 -08:00