Графік комітів

1092 Коміти

Автор SHA1 Повідомлення Дата
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
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
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
Jigar Agrawal
97133af139 msm: camera: cdm: Add Change base for RT-CDM
Add change base for CSID and VFE for RT-CDM support

CRs-Fixed: 2770438
Change-Id: I919019cc8e487c37b7726fae2125e70951c24a05
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2020-12-11 10:53:59 -08:00
Anand Ravi
52cd6c6646 msm: camera: isp: VFE TOP Refactor
Added new files for vfe top configuration and
IRQ handling.

CRs-Fixed: 2830502
Change-Id: I3e84bccc4901b3b55308f447e3d86236ee28d799
Signed-off-by: Vishalsingh Hajeri <vhajeri@codeaurora.org>
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
2020-12-11 10:50:28 -08:00
Karthik Anantha Ram
89484fac10 msm: camera: isp: sHDR & offline changes in CSID
This change adds irq handling for sHDR and support
for offline use-case in CSID. These changes are relevant
only for CSID V680.

CRs-Fixed: 2830502
Change-Id: I873c6d6abba33f4da84438495cc0b00463746779
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2020-12-11 10:16:00 -08:00
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
Abhijit Trivedi
5418bcb5d6 FF: Upto snap463: 'quic/camera-kernel.lnx.4.0' into 5.0 12/10/20
* quic/camera-kernel.lnx.4.0:
  msm: camera: cpas: Add hw version checks for Yupik camera
  msm: camera: cpas: Add support for Yupik camnoc
  msm: camera: isp: Remove WARN_ON() from error case in buf done
  msm: camera: icp: Fetch the firmware name from soc info
  msm: camera: cdm: Improve error handling during cdm hang
  msm: camera: cci: Fix logic to update cci clk freq
  msm: camera: isp: Transition to HALT state prior to HW stop
  msm: camera: isp: Print the expected height & width
  msm: camera: ope: Check array size of input sync obj
  msm: camera: isp: Add null check for vfe out res data
  msm: camera: isp: Update err type when notifying to HW MGR
  msm: camera: ife: Handle vfe out array properly
  msm: camera: ope: free unused memory in ope acquire
  msm: camera: isp: reduce bufdone error logs
  msm: camera: ope: Avoid submitting NULL request to CDM
  msm: camera: isp: Choose appropriate WM for frame header
  msm: camera: reqmgr: check applied req id for sync mode
  msm: camera: common: Improve IFE and CRM Logging
  msm: camera: smmu: Add support to force all CACHED

Change-Id: I589164549bc930986c1f5bb968d15e3714f03870
Signed-off-by: Abhijit Trivedi <abhijitt@codeaurora.org>
2020-12-10 12:13:14 -08:00
Camera Software Integration
1bdec879e6 Merge "msm: camera: cpas: Add hw version checks for Yupik camera" into camera-kernel.lnx.4.0 2020-12-10 11:02:45 -08:00
Camera Software Integration
0a3df107d1 Merge "msm: camera: smmu: Add support to force all CACHED" into camera-kernel.lnx.4.0 2020-12-10 11:02:22 -08:00
Camera Software Integration
0626661ebd Merge "msm: camera: cpas: Add support for Yupik camnoc" into camera-kernel.lnx.4.0 2020-12-10 11:02:13 -08:00
Camera Software Integration
72136a95ef Merge "msm: camera: isp: Remove WARN_ON() from error case in buf done" into camera-kernel.lnx.4.0 2020-12-10 11:01:46 -08:00
Camera Software Integration
cfad27efa7 Merge "msm: camera: icp: Fetch the firmware name from soc info" into camera-kernel.lnx.4.0 2020-12-10 11:01:34 -08:00