Commit graph

1,250 commits

Author SHA1 Message Date
Camera Software Integration
8a5becb04e Merge "msm: camera: reqmgr: check link state before taking mutex" into camera-kernel.lnx.4.0 2021-07-14 10:32:55 -07:00
Camera Software Integration
3012045375 Merge "msm: camera: sensor: Use correct addr_type & data_type for probe" into camera-kernel.lnx.4.0 2021-07-14 10:30:53 -07:00
Camera Software Integration
8af123ac14 Merge "msm: camera: csiphy: Publish rx clock to other subnodes" into camera-kernel.lnx.4.0 2021-07-14 10:30:27 -07:00
Camera Software Integration
d0b010666c Merge "msm: camera: core: Add delay detection support" into camera-kernel.lnx.4.0 2021-07-10 07:19:51 -07:00
Tejas Prajapati
a3589a0965 msm: camera: reqmgr: check link state before taking mutex
In case if the destroy session is processed first it will
as a part of unlink try to drain the work queue. This will
schedule all the enqueued wq. Workqueue when scheduled
try to acquire same mutex destroy session has already acquried
this will lead to dead-lock. To avoid that, check the link
state first if it is in idle state then return from the
workqueue without trying to acquire mutex.

CRs-Fixed: 2976325
Change-Id: I57a53455c69e5f4f38c92413f9d1b7f2d06c9960
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
2021-07-07 12:28:43 +05:30
Camera Software Integration
786e1d8bd1 Merge "msm: camera: csiphy: Update CSIPHY settings as per HPG" into camera-kernel.lnx.4.0 2021-07-03 08:31:38 -07:00
Tony Lijo Jose
84373dc039 msm: camera: csiphy: Publish rx clock to other subnodes
Currently we are publishing csiphy timer clock to other submodules who
needs to maintain the clock ratio between the submodules. This change
changes it publish the phy_rx clock as the phy clock rate.

CRs-Fixed: 2975394
Change-Id: I7331d66ebdd1e6ded0d5ac7dd6f47b4c42c2b06f
Signed-off-by: Tony Lijo Jose <tjose@codeaurora.org>
2021-06-30 17:59:13 +05:30
Ayush Kumar
c99311f326 msm: camera: core: Add delay detection support
This changes is to detect workqueue and tasklet
scheduling and execution delay.

CRs-Fixed: 2977775
Change-Id: Ia4b4845a067c22bd1f24bd63a971d103fcfc049c
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2021-06-28 07:58:28 -07:00
Hongwei Ren
146310b60e msm: camera: core: Make Bengal camera module dynamic
This change is to make Bengal camera module dynamic.

CRs-Fixed: 2977410
Change-Id: I447fa17c907c5e1993dbf86ae1347e4e15de6b30
Signed-off-by: Hongwei Ren <hongren@codeaurora.org>
2021-06-25 01:52:26 -07:00
Camera Software Integration
b635b43f6c Merge "msm: camera: flash: Init default flash type to PMIC flash" into camera-kernel.lnx.4.0 2021-06-25 01:26:22 -07:00
Camera Software Integration
fa93505c70 Merge "msm: camera: isp: Fix the assignment of bubble_detected" into camera-kernel.lnx.4.0 2021-06-25 01:25:30 -07:00
Anil Kumar Kanakanti
8940d2ec73 msm: camera: csiphy: Update CSIPHY settings as per HPG
CSIPHY settings updated based on latest HPG settings.

CRs-Fixed: 2974853
Change-Id: I3cb3d25bddf707ee9d57a145e0506487b12e487e
Signed-off-by: Anil Kumar Kanakanti <akanakan@codeaurora.org>
2021-06-22 23:31:11 +05:30
Wyes Karny
e1261386ea msm: camera: common: Fix for wrong ab ib value send to ICC
While passing ab and ib value to interconnect
for conversion from BPS to ICC units wrong kernel macro is used.
Therefore use correct macro to get the proper ICC units.
In the same way, update the correct flash on active time (use div_u64
instead of do_div).

CRs-Fixed: 2971025
Change-Id: I4cd0de06bd081ea95cdc76eb74887c4d5815241a
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2021-06-22 12:22:13 +05:30
Camera Software Integration
196f4e6b2f Merge "msm: camera: smmu: Disable SMMU stall on page fault" into camera-kernel.lnx.4.0 2021-06-18 06:55:38 -07:00
Anil Kumar Kanakanti
5bf8f7b7ae msm: camera: flash: Init default flash type to PMIC flash
Initialize default flash type to PMIC flash.

CRs-Fixed: 2969985
Change-Id: Id563435f78b7412362bd1f6a1db53cbdfc3664cc
Signed-off-by: Anil Kumar Kanakanti <akanakan@codeaurora.org>
2021-06-16 14:12:37 +05:30
Depeng Shao
6c3073f63a msm: camera: isp: Fix the assignment of bubble_detected
Fix the assignment of bubble_detected.

CRs-Fixed: 2948932
Change-Id: Ie9a289f732d12a0238e643e81c8a5bbdcaca059a
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-06-15 10:52:07 +08:00
Camera Software Integration
e40030134a Merge "msm: camera: flash: Add support for I2C flash" into camera-kernel.lnx.4.0 2021-06-13 10:12:43 -07:00
Camera Software Integration
96d421450c Merge "msm: camera: cci: Fix CCI Timeout during burst_read concurrency" into camera-kernel.lnx.4.0 2021-06-13 10:12:28 -07:00
Camera Software Integration
fb2d46d420 Merge "msm: camera: isp: Mask process_bubble for SHDR usecase" into camera-kernel.lnx.4.0 2021-06-13 10:12:15 -07:00
Camera Software Integration
1a281195e2 Merge "msm: camera: sensor: Increase slot ids in sensor" into camera-kernel.lnx.4.0 2021-06-07 23:01:08 -07:00
Camera Software Integration
adc097c23e Merge "msm: camera: sensor: extend I2C read/write size" into camera-kernel.lnx.4.0 2021-06-07 23:00:49 -07:00
Anil Kumar Kanakanti
0c570733ee msm: camera: cci: Fix CCI Timeout during burst_read concurrency
During burst read concurrency, is_burst_read variable not updated
properly leading to missing th_complete signal. is_burst_read variable
updated per master to avoid concurrency issue.

CRs-Fixed: 2962232
Change-Id: Id741d48e0b9a6987b4aa7bc7361daf555d9bc587
Signed-off-by: Anil Kumar Kanakanti <akanakan@codeaurora.org>
2021-06-07 16:20:12 +05:30
Om Parkash
aead69dc61 msm: camera: sensor: Use correct addr_type & data_type for probe
Use correct Address type & data type for camera sensor probe
use the type received from sensor driver instead of hardcoding.

CRs-Fixed: 2948896
Change-Id: I3e355d86fca6a49fb96ab782213dc158f0a6ea39
Signed-off-by: Om Parkash <oparkash@codeaurora.org>
2021-06-06 13:42:05 +05:30
Shravya Samala
bc32fa9ef8 msm: camera: smmu: Disable SMMU stall on page fault
Changes are made to disable stall on pagefault
for all the driver contexts inorder to
support for smmu stall on page fault.

CRs-Fixed: 2936320
Change-Id: Id3d16b4d980349044de1bc1d1bf4bfad5aee79f4
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
2021-06-04 03:46:55 -07:00
Camera Software Integration
5bdd66fa28 Merge "msm: camera: config: Add Support for monaco target" into camera-kernel.lnx.4.0 2021-06-03 04:41:38 -07:00
Camera Software Integration
078dd57d7d Merge "msm: camera: sensor: fix 64-bit division for 32-bit kernel compilation" into camera-kernel.lnx.4.0 2021-06-03 04:41:14 -07:00
shiwgupt
de2b0fb94b msm: camera: flash: Add support for I2C flash
- Add Regulator power up for I2C flash
- Add GPIO support in probe call for I2C flash
- Add flash type in query capability call of flash.

CRs-Fixed: 2938804
Change-Id: I7d5575ecdf4c1c3b329e6bf49586771e37611e5a
Signed-off-by: shiwgupt <shiwgupt@codeaurora.org>
2021-06-01 23:29:10 +05:30
Jigar Agrawal
7a10111a87 msm: camera: sensor: Increase slot ids in sensor
Increase the max supported slot ids to 16 in sensor.

CRs-Fixed: 2871214
Change-Id: I08910f2c34f70333bf25dbb31de5994c3beb7a8f
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-05-27 10:33:56 -07:00
Camera Software Integration
67373afb96 Merge "msm: camera: core: Make Blair camera module dynamic" into camera-kernel.lnx.4.0 2021-05-27 07:24:22 -07:00
Amit Somani
56f616b463 msm: camera: sensor: fix 64-bit division for 32-bit kernel compilation
Fix a 64bit division error for 32bit kernel compilation.

CRs-Fixed: 2918290
Change-Id: Ic729644088eb6e8640de240d76b2e8971d2f569c
Signed-off-by: Amit Somani <amitsm@codeaurora.org>
2021-05-26 22:21:56 +05:30
Depeng Shao
93f25fccc8 msm: camera: isp: Mask process_bubble for SHDR usecase
SHDR usecase doesn't report bubble to CRM, but we still
need to know whether it is processing bubble during
applying request, since we may haven't received the
reg update of the previous applied request, then
we have a chance to apply a new req to HW, this may
result in overflow issue. This change masks the
process_bubble for SHDR case during epoch in applied
sub state.

CRs-Fixed: 2948932
Change-Id: I699a2f59ea874693b78a918895db98727b95c634
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-05-26 10:56:03 +08:00
Camera Software Integration
d89a81f7e2 Merge "msm: camera: ife: Program image addr for once in RDI batch mode" into camera-kernel.lnx.4.0 2021-05-24 23:54:02 -07:00
Camera Software Integration
6f91e88b55 Merge "msm: camera: isp: Update the reported_req_id correctly" into camera-kernel.lnx.4.0 2021-05-24 23:48:46 -07:00
Camera Software Integration
39599117b7 Merge "msm: camera: cpas: Add support for blair camnoc" into camera-kernel.lnx.4.0 2021-05-24 23:48:11 -07:00
Sureshnaidu Laveti
5c97b95b7b msm: camera: sensor: extend I2C read/write size
Extend I2C read/write capability to 20kb

CRs-Fixed: 2952585
Change-Id: Ia5465342fd1d434f90e472c3dd5a5275c3fab8cd
Signed-off-by: Sureshnaidu Laveti <lsuresh@codeaurora.org>
2021-05-24 14:25:17 +05:30
Ayush Kumar
d3f13f02a4 msm: camera: core: Make Blair camera module dynamic
This change is to make Blair camera module dynamic.

CRs-Fixed: 2944976
Change-Id: I1af60fd3e1e607f52285d7abf30321ff6682149e
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2021-05-21 12:24:08 +05:30
Amit Somani
4c9ba2b362 msm: camera: config: Add Support for monaco target
Add camera config support for MONACO target.

CRs-Fixed: 2918290
Change-Id: I98ff2a0d540aa6a4fb5a31a8d26f7abe0750918d
Signed-off-by: Amit Somani <amitsm@codeaurora.org>
2021-05-19 17:43:46 -07:00
Camera Software Integration
e182f855ab Merge "msm: camera: req_mgr: Fix deadlock in ICP driver in close sequence" into camera-kernel.lnx.4.0 2021-05-19 08:45:17 -07:00
Camera Software Integration
c2dda7e67d Merge "Revert "Revert "msm: camera: req_mgr: Enhance camera v4l2 subdev shutdown sequence""" into camera-kernel.lnx.4.0 2021-05-19 08:44:51 -07:00
Camera Software Integration
c48130dff1 Merge "msm: camera: icp: allow icp debug clock for debug purpose" into camera-kernel.lnx.4.0 2021-05-12 22:15:53 -07:00
Camera Software Integration
a8eb1b80e1 Merge "msm: camera: ife: Update resource state in tpg start" into camera-kernel.lnx.4.0 2021-05-12 22:15:23 -07:00
Alok Chauhan
41716fade5 msm: camera: req_mgr: Fix deadlock in ICP driver in close sequence
ICP driver is not releasing mutex in error scenario
in close sequence and causing deadlock further in open.

Fix the deadlock and avoid prints in other driver
while close in provider crash.

CRs-Fixed: 2938073
Change-Id: I226c9a8e9b2d0c30e90282b11fbd15ea0b085f87
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2021-05-09 11:56:54 -07:00
Sridhar Gujje
9f18463541 Revert "Revert "msm: camera: req_mgr: Enhance camera v4l2 subdev shutdown sequence""
This reverts commit 4a487d9638.

Change-Id: I9d052d9260581ed8155d3fbd3e5eff3a81247306
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
2021-05-09 11:56:02 -07:00
Ayush Kumar
f6f57c8d7f msm: camera: cpas: Add support for blair camnoc
Blair has different version of CPAS version which
requires camnoc interface changes and CPAS version
change. This change adds the same.

CRs-Fixed: 2944976
Change-Id: I700d99e52dacee9badcb2f66a7a295fb18771231
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2021-05-06 16:38:32 +05:30
Camera Software Integration
34e2308084 Merge "msm: camera: isp: Reset csid error irq count on flush" into camera-kernel.lnx.4.0 2021-05-04 09:55:38 -07:00
Camera Software Integration
3224b69647 Merge "msm: camera: reqmgr: Only do self-correction at SOF" into camera-kernel.lnx.4.0 2021-05-04 09:55:10 -07:00
Alok Chauhan
e1f751f760 msm: camera: ife: Update resource state in tpg start
Resource state is not proper during csid stop for PHY TPG hence stop
doesn't call for it.

Update the correct resource state during tpg start for PHY TPG.

CRs-Fixed: 2906168
Change-Id: Ib5fd05a380f6e1dbb303af23b7b0017d9f88c125
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2021-04-30 16:34:20 +05:30
Camera Software Integration
dd5d08d0d4 Merge "msm: camera: isp: Check ife out res validity" into camera-kernel.lnx.4.0 2021-04-28 05:32:25 -07:00
Camera Software Integration
f9f98b6936 Merge "msm: camera: tfe: Drop first rdi frame in dual tfe scenario" into camera-kernel.lnx.4.0 2021-04-28 05:26:34 -07:00
Camera Software Integration
84df0f25e9 Merge "msm: camera: cpas: Change to set OT value to 8 for RT block" into camera-kernel.lnx.4.0 2021-04-28 05:26:18 -07:00