Commit graph

1,203 commits

Author SHA1 Message Date
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
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
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
Depeng Shao
6f9f6f4854 msm: camera: reqmgr: Only do self-correction at SOF
Since the SOF timestamp is only updated at SOF,
so we can't do self-correction at EOF. When the
frames already in sync, but the req is a EOF
triggered req, then the req can't be applied at
SOF, but it will fail to pass self-correction
checking at EOF. Then we will loop this progress,
the req can't be applied anymore.

CRs-Fixed: 2930497
Change-Id: I079cbd3cb9ac9541f049c5369baeee831f7444a2
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-04-26 15:46:03 +08:00
Camera Software Integration
f9f491b84d Merge "msm: camera: isp: Add support for YUV422 10 bit" into camera-kernel.lnx.4.0 2021-04-22 09:38:42 -07:00
Camera Software Integration
ac8728a994 Merge "msm: camera: sensor: Add data rate table for holi" into camera-kernel.lnx.4.0 2021-04-22 09:38:28 -07:00
Camera Software Integration
1eccc13e1e Merge "msm: camera: ife: pagefault_ops access protected with mutex_lock" into camera-kernel.lnx.4.0 2021-04-22 09:38:12 -07:00
Vikram Sharma
72c9ddcce9 msm: camera: isp: Check ife out res validity
This change adds validity check for ife out res. If ife out res is
NULL we can run into crash or issues.

CRs-Fixed: 2915741
Change-Id: I8722b2a4e2634bda42f0080e00bf09050bbd6b91
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2021-04-21 00:30:45 -07:00
Sridhar Gujje
0067edcd22 Revert "msm: camera: csiphy: Update CSIPHY settings based recommendation"
This reverts commit 89c548e862.

Change-Id: I0a979e5352aec48df946dd9cd584de6a69bde674
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
2021-04-20 18:22:42 +05:30
Ayush Kumar
8570262453 msm: camera: isp: Reset csid error irq count on flush
This change is to reset csid_error_irq_count on flush
to prevent from recovery.

CRs-Fixed: 2926200
Change-Id: I8568fdc679317e41c31f4aeb9cf8c3ae579d8448
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2021-04-19 16:38:46 +05:30
Camera Software Integration
d313b62f5e Merge "msm: camera: csiphy: Update CSIPHY settings based recommendation" into camera-kernel.lnx.4.0 2021-04-18 23:05:56 -07:00
Camera Software Integration
c83454fe55 Merge "Revert "msm: camera: req_mgr: Re-design CRM to support multi links in sync mode"" into camera-kernel.lnx.4.0 2021-04-18 23:05:37 -07:00
Sridhar Gujje
4a487d9638 Revert "msm: camera: req_mgr: Enhance camera v4l2 subdev shutdown sequence"
This reverts commit 8564c26920.

Change-Id: Idb956f2da5cf954c08f2f3e2af391939d859fd8a
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
2021-04-18 12:31:34 -07:00
Ravikishore Pampana
8f9d699778 msm: camera: tfe: Drop first rdi frame in dual tfe scenario
In Dual tfe scenario, tfe csid drop first frame in the ipp pix
path to sync both master and slave, but rdi frame will go to tfe.
this will cause issues in the camif and rdi sub sampling scenarios.
in sub sampling scenarios both camif and rdi should be subsampled
on same frames. To achieve this drop the rdi first frame from csid
in dual tfe scenarios.

Change-Id: I73e98a6d3d973af93bbe6afef7585a95578f2a2b
CRs-Fixed: 2923045
Signed-off-by: Ravikishore Pampana <rpampana@codeaurora.org>
2021-04-18 18:11:53 +05:30
Gaurav Jindal
2ca3aa523b msm: camera: isp: Add support for YUV422 10 bit
Add support for YUV422 format 10 bit in CSID and bus drivers.

CRs-Fixed: 2923254
Change-Id: Icecc367d88509b9ed08f5d0cab8c4da788886a0a
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-04-17 17:20:45 +05:30
Ayush Kumar
d3c7cff028 msm: camera: cpas: Change to set OT value to 8 for RT block
This change is set the OT values for RT client of Camonc
to 8 for Yupik camera.

CRs-Fixed: 2924987
Change-Id: Icb7f30c23f5899558a41308fe313d46fd8d992a3
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2021-04-16 11:02:10 +05:30
Camera Software Integration
a1e44aa4e6 Merge "Revert "msm: camera: req_mgr: Validate active sequence id in link control"" into camera-kernel.lnx.4.0 2021-04-15 11:19:11 -07:00
Tejas Prajapati
daefdfbe1d msm: camera: ife: pagefault_ops access protected with mutex_lock
Pagefault_ops is protected by the mutex_lock to avoid the
list corruption by concurrent access by flush calls.

CRs-Fixed: 2904307
Change-Id: Ia6519a382ace7b89b6bd59a2dacfeca3c31e2705
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
2021-04-14 23:48:11 -07:00
Ayush Kumar
bb921ff616 Revert "msm: camera: req_mgr: Re-design CRM to support multi links in sync mode"
This reverts commit 65a86de979.

CRs-Fixed: 2898158
Change-Id: I40efe11908603fddc8aec025edca2536ada46e99
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2021-04-15 11:27:25 +05:30
Ayush Kumar
ec6656b5fc Revert "msm: camera: req_mgr: Validate active sequence id in link control"
This reverts commit 4580f024fe.

CRs-Fixed: 2898158
Change-Id: I29ab6ef02df0b30093c9f6a295eb74351f480a00
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2021-04-14 12:02:52 +05:30
Camera Software Integration
90c3dafbc1 Merge "msm: camera: req_mgr: Enhance camera v4l2 subdev shutdown sequence" into camera-kernel.lnx.4.0 2021-04-13 10:43:13 -07:00
Anil Kumar Kanakanti
89c548e862 msm: camera: csiphy: Update CSIPHY settings based recommendation
CSIPHY settings updated based on latest HPG settings and enabled
deskew calibration.

CRs-Fixed: 2918358
Change-Id: I130bf9024cda95b0d5742ec32a2efd0968127f7c
Signed-off-by: Anil Kumar Kanakanti <akanakan@codeaurora.org>
2021-04-09 03:52:14 -07:00
Camera Software Integration
8227b6af95 Merge "msm: camera: isp: Change logic of acquiring dual composite group" into camera-kernel.lnx.4.0 2021-04-08 10:43:47 -07:00
Camera Software Integration
ec1310773c Merge "msm: camera: isp: Dont enable Wm configurations during HW start" into camera-kernel.lnx.4.0 2021-04-08 10:43:38 -07:00
Alok Chauhan
8564c26920 msm: camera: req_mgr: Enhance camera v4l2 subdev shutdown sequence
when provider crash occurred, there was a CSID lane overflow
observed due to shutdown sequence from CRM(sensor, csid, csiphy).
To fix the issue need to change the shutdown sequence
(csid, sensor, csiphy).

This change will update the devices sequence in order while registering
and close the sequence accordingly.

CRs-Fixed: 2852076
Change-Id: Ia6d8022e995823bf031400c33528eb8544dc2e29
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2021-04-07 19:57:06 +05:30
Camera Software Integration
eeb0a95316 Merge "msm: camera: req_mgr: Validate active sequence id in link control" into camera-kernel.lnx.4.0 2021-04-06 20:33:01 -07:00
Camera Software Integration
d8f925cccb Merge "msm: camera: ife: dump fill level registers on overflow" into camera-kernel.lnx.4.0 2021-04-06 20:32:37 -07:00
Camera Software Integration
269b2a3c40 Merge "msm: camera: isp: Reapply bubble request in RDI path" into camera-kernel.lnx.4.0 2021-04-06 20:32:07 -07:00
Camera Software Integration
4bebb220df Merge "msm: camera: req_mgr: Sending event_cause for frame error for shima" into camera-kernel.lnx.4.0 2021-04-05 11:11:51 -07:00
Camera Software Integration
11383cfb3e Merge "msm: camera: reqmgr: Reset the status for next req if bubble" into camera-kernel.lnx.4.0 2021-04-03 12:35:34 -07:00
Camera Software Integration
c2963ede8b Merge "msm: camera: isp: Get the first active req during bubble" into camera-kernel.lnx.4.0 2021-04-03 12:34:42 -07:00
Alok Pandey
a4a349c82f msm: camera: req_mgr: Sending event_cause for frame error for shima
When camnoc fill level for RDI port goes beyond 25%, notify UMD
with BAD frames to take corrective actions.

CRs-Fixed: 2913934
Change-Id: I5427ce94cdd2a48d8647ff4593cb1605a2f90a37
Signed-off-by: Alok Pandey <akumarpa@codeaurora.org>
2021-04-03 00:45:16 -07:00
Shravya Samala
ac3906ff6e msm: camera: isp: Change logic of acquiring dual composite group
There is a possibility of composite groups in free dual
composite group list are not in sequential order. In case
of dual ife use case, if composite groups are not in
sequential manner then we landed into a scenario
where two different IFE with same resource have two
different composite group index, which is not expected.

This commit ensures if it is dual IFE usecase then at the time
of acquiring composite group, both IFEs have same composite
group ID for same resource.

CRs-Fixed: 2912721
Change-Id: I734d1d1660c1e70e0480e2dc0b8377a1c441c634
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
2021-04-02 19:50:29 +05:30
Shravya Samala
81360e9bfa msm: camera: isp: Dont enable Wm configurations during HW start
There is a chance that during acquire time while updating write master,
for few resources io buffers are not allocated. If Wm configurations
are enabled without receiving io buffers then there is a chance of
hitting page fault issues.
This commit takes care of enabling Wm configurations for each
client only if io buffers are allocated.

CRs-Fixed: 2887053
Change-Id: I868bd01dbd896dd86eeec4fc92a8a62e746f79cf
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
2021-04-02 19:47:30 +05:30
Ravikishore Pampana
4580f024fe msm: camera: req_mgr: Validate active sequence id in link control
Validate active sequence id before clear bit. This avoid
invalid clear bit scenario if link is created but try to
deactivate with out link activate.

CRs-Fixed: 2909190
Change-Id: Ie12f6bb100e1e12c41b9addf516446f4088ae8a3
Signed-off-by: Ravikishore Pampana <rpampana@codeaurora.org>
2021-04-02 14:08:41 +05:30
Camera Software Integration
eefcfe50ce Merge "msm: camera: cdm: Fix of_match table null entry" into camera-kernel.lnx.4.0 2021-04-01 12:06:44 -07:00
Camera Software Integration
1ba8783d5d Merge "msm: camera: sensor: Change regulator get,put to devres entry" into camera-kernel.lnx.4.0 2021-04-01 04:40:07 -07:00
shiwgupt
70e5d8ea1a msm: camera: sensor: Add data rate table for holi
Add data rate table in csiphy driver for cphy
lane for holi.

CRs-Fixed: 2913428
Change-Id: I57c6ab503ed6535ae80e2268e76fb29bfccad856
Signed-off-by: shiwgupt <shiwgupt@codeaurora.org>
2021-04-01 12:19:35 +05:30
Tejas Prajapati
be81f37802 msm: camera: isp: Reapply bubble request in RDI path
For recovery of the bubble the request from active list
should be added back to pending request list.

CRs-Fixed: 2887188
Change-Id: I9bd14db82f96d2fda99bb542bd0df4c9c4a06745
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
2021-03-26 17:53:02 +05:30
Tejas Prajapati
f1bd9e7379 msm: camera: ife: dump fill level registers on overflow
Dump camnoc fill level registers for overflow and violations
along with the SOF, EPOCH and EOF timestamps.

CRs-Fixed: 2908055
Change-Id: I774140794eae6580f4332cd9cd39b8c65d7197a5
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
2021-03-25 14:17:59 +05:30
Karthik Jayakumar
1283cb07a1 msm: camera: cdm: Fix of_match table null entry
KASAN identified global-out-of-bounds issue on:
msm_cam_hw_cdm_dt_match
Due to no null-terminating struct in the array.

CRs-Fixed: 2883523
Change-Id: I36e4811f239993e1e6de158df959157217c28bfe
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-03-24 21:45:39 -07:00
Ravikishore Pampana
29e9e04820 Revert "msm: camera: core: Allocate memory for flush req array dynamically"
This reverts commit 018d8dae94.

CRs-Fixed: 2901141
Change-Id: Ida945ea1b83fdf1f60d19b072f667a133ac9b9dc
Signed-off-by: Ravikishore Pampana <rpampana@codeaurora.org>
2021-03-24 11:22:17 +05:30
Camera Software Integration
dc597bcd9b Merge "msm: camera: cdm: Add cdm debug status register" into camera-kernel.lnx.4.0 2021-03-23 11:57:42 -07:00
shiwgupt
21fea54664 msm: camera: sensor: Change regulator get,put to devres entry
This change modifies regulator_get, regulator_put to devres entry.
Devres is linked list of arbitrarily sized memory areas associated
with a struct device.  Each devres entry is associated with a release
function. All devres entries are released on driver detach. This
avoids potential leaking of resources on driver detach or having half
broken failure path implementation in probe call which would leak
resources when failure occurs.

CRs-Fixed: 2890861
Change-Id: Ibd46bc37bd6e31aeb2a5ea90ed75a1f596b57bf9
Signed-off-by: shiwgupt <shiwgupt@codeaurora.org>
2021-03-23 10:33:44 +05:30
Depeng Shao
0b798d0f8c msm: camera: reqmgr: Reset the status for next req if bubble
If req#N in slot idx, and this req meets bubble issue,
then the req#(N+1) in slot (idx+1) may also be applied,
and its status is APPLIED. If req#(N+1) applies failed
after finishing bubble recovery due to some reasons,
but we still can move to next slot since the status of
slot (idx+1) is already APPLIED. This change resets
the status of slot (idx+1) to ADDED if it is APPLIED
during processing error.

CRs-Fixed: 2902809
Change-Id: I32f318569ad8f24fdf0f324603f4ea0036867e98
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-03-22 13:17:13 +08:00
Depeng Shao
647861d344 msm: camera: isp: Get the first active req during bubble
Sometimes, UMD reports nonincrementing shutter request id
issue during monkey test on sHDR usecase, isp reports last
one req in active req list during bubble, so if the active
req count is 2, we will meet this issue.
This change gets the first active req during bubble in case
the active req cnt is 2.

CRs-Fixed: 2885087
Change-Id: I67d1ecfe9c88123e6d0887383961bfc676455a0d
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-03-19 10:53:01 +08:00
Camera Software Integration
3649ffdcd5 Merge "msm: camera: isp: Add horizontal binning with qcfa binning" into camera-kernel.lnx.4.0 2021-03-18 11:04:42 -07:00