Commit graph

1,393 commits

Author SHA1 Message Date
Linux Build Service Account
39204283f8 Merge 981b2405f2 on remote branch
Change-Id: Ie64f322e8f58a030507cd09761872ea5586454ee
2021-10-24 02:19:02 -07:00
Camera Software Integration
981b2405f2 Merge "msm: camera: isp: Add handling for flush in flushed state" into camera-kernel.lnx.4.0 2021-10-11 11:34:30 -07:00
Camera Software Integration
d1207eb24c Merge "msm: camera: core: Delete request from pending list in case of error" into camera-kernel.lnx.4.0 2021-10-11 11:33:06 -07:00
Vikram Sharma
abee20f08a msm: camera: isp: Add handling for flush in flushed state
This change handles race condition in which flush is handled in
flushed state.

CRs-Fixed: 3038297
Change-Id: I8be1f8c70431c77366f8846d8ccab3414f3ede3e
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2021-10-05 01:09:47 -07:00
Camera Software Integration
1894a410ed Merge "msm: camera: req_mgr: Table info dump removed" into camera-kernel.lnx.4.0 2021-10-04 11:23:19 -07:00
Camera Software Integration
30da00d21b Merge "msm: camera: flash: Add support for qup i2c flash" into camera-kernel.lnx.4.0 2021-10-04 11:22:47 -07:00
Gaurav Jindal
6e882932bd msm: camera: core: Delete request from pending list in case of error
While preparing hw for request, there is a possiblity of receiving
invalid sync object. In this case, we need to return error. By this
time, the request is already in pending list. While returning error,
request is moved back to free list. But deleting from the pending list
was missed.
This commit deleted the request from the pending list if the sync object
received is invalid.

CRs-Fixed: 2660625
Change-Id: Id619452889476b0c2811c8560361205b0d89bcb9
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-09-30 00:42:57 -07:00
sokchetra eung
1f20f5bc62 msm: camera: req_mgr: Table info dump removed
Remove dump_tbl_info function and all of its
invocations in CRM to prevent dumping all the
handle info when holding the spin lock.

CRs-Fixed: 3014074, 3014073
Change-Id: Ie98bafb489fc0d1f2d75cf0f3f08efb48d9b4062
Signed-off-by: sokchetra eung <eung@codeaurora.org>
2021-09-29 11:23:29 -07:00
Vishal Verma
77cf2e394f msm: camera: flash: Add support for qup i2c flash
Add Support for qup i2c based flash. Update i2c
driver probe function and added regulator init at
power up and init for gpio pin control table. Since
positive return values are not errors for qup i2c rx
and tx data transfer, fix the return type for the APIs.
Added check for null pointer in get flash dt data for
device node. Correct the logging group in sensor util
for regulator power up function.

CRs-Fixed: 3047031
Change-Id: I70558fbb489b622da25278283015139b6d4fe2a6
Signed-off-by: Vishal Verma <vishverm@codeaurora.org>
2021-09-29 10:14:59 +05:30
Camera Software Integration
0695f8edc8 Merge "msm: camera: memmgr: ref count for init and deinit" into camera-kernel.lnx.4.0 2021-09-25 23:17:50 -07:00
Camera Software Integration
ff6c9be4dd Merge "msm: camera: jpeg: Ensure in/out map entries are within allowed range" into camera-kernel.lnx.4.0 2021-09-21 10:48:51 -07:00
Linux Build Service Account
702b632d40 Merge 1510d5b82f on remote branch
Change-Id: I5c824f5427d765864701d3784d66657400801d14
2021-09-17 03:04:13 -07:00
Shravya Samala
ed7d45ddc5 msm: camera: jpeg: Ensure in/out map entries are within allowed range
Added checks to make sure in_map /out_map entries of packet
io configs are within expected maximum value.

CRs-Fixed: 3007258
Change-Id: I7e5a652cd8f9ae104a10a2af551fe49930849b2d
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
2021-09-13 13:42:48 +05:30
Tejas Prajapati
b8429f0813 msm: camera: memmgr: ref count for init and deinit
Shared memory is initialized by CRM and used by
ICP; with CRM not active the ICP would fail to
access the shared memory if memory manager is
deinit. Tracking open and close calls will help
ICP driver to access the shared memory if CRM
is not active.

CRs-Fixed: 3019488
Change-Id: Ifdf198c2e3593050573c66aeba69d50d131435b9
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
2021-09-07 15:11:20 +05:30
Dharmender Sharma
1510d5b82f msm: camera: jpeg: JPEG HW and Camnoc MISR
Support for Camnoc MISR for JPEG DMA and Encoder.
Also added support for seprate target files.

CRs-Fixed: 3012752
Change-Id: I5e066d5d871f58073f669c01270d5b64ce16088e
Signed-off-by: Dharmender Sharma <dharshar@codeaurora.org>
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
2021-09-07 00:40:18 -07:00
Camera Software Integration
8ef61574d0 Merge "msm: camera: isp: Support all patterns for TOP TPG" into camera-kernel.lnx.4.0 2021-09-06 20:38:59 -07:00
Camera Software Integration
12c02d3c4a Merge "msm: camera: reqmgr: Delay to do slot reset for finished req" into camera-kernel.lnx.4.0 2021-09-06 20:38:47 -07:00
Camera Software Integration
71d33047c2 Merge "msm: camera: cdm: Acquire mutex lock before accessing client data" into camera-kernel.lnx.4.0 2021-09-06 05:04:56 -07:00
Camera Software Integration
e12864cddd Merge "msm: camera: smmu: Unmap secure buffers in secure camera use case" into camera-kernel.lnx.4.0 2021-09-01 10:26:21 -07:00
Dharmender Sharma
6e68552105 msm: camera: isp: Support all patterns for TOP TPG
It provide support for differeent TPG patterns
like color bar, incrementing and user defined.

CRs-Fixed: 3026095
Change-Id: If18c99fb759f9cdb5bf8950c54f719d188a5e4ae
Signed-off-by: Dharmender Sharma <dharshar@codeaurora.org>
2021-08-31 13:26:10 +05:30
Camera Software Integration
3e949eb2c0 Merge "msm: camera: ope: Fix uninitialized variable access" into camera-kernel.lnx.4.0 2021-08-30 05:31:17 -07:00
Camera Software Integration
322225df0d Merge "msm: camera: sync: Prevent OOB access of sync name" into camera-kernel.lnx.4.0 2021-08-30 05:31:10 -07:00
Linux Build Service Account
3bced21834 Merge 8d5da81f5d on remote branch
Change-Id: I0666cff1e8a7e3d101ad12ba65ca8216043da401
2021-08-27 00:03:57 -07:00
Camera Software Integration
f2b30f3448 Merge "msm: camera: reqmgr: Fix trigger count out of bound issue" into camera-kernel.lnx.4.0 2021-08-25 04:10:10 -07:00
Camera Software Integration
40fa38ccab Merge "msm: camera: flash: Add support for flash stream off" into camera-kernel.lnx.4.0 2021-08-25 04:09:20 -07:00
Camera Software Integration
774b550caf Merge "msm: camera: tfe: Fix dereference of pointer before NULL check" into camera-kernel.lnx.4.0 2021-08-25 04:08:53 -07:00
Camera Software Integration
b8070c343c Merge "msm: camera: isp: CSID Tasklet stop sequence" into camera-kernel.lnx.4.0 2021-08-25 04:08:36 -07:00
Alok Chauhan
dfa85a1638 msm: camera: ope: Fix uninitialized variable access
Update ope pf dump function for uninitialized variables
access.

CRs-Fixed: 3020020
Change-Id: I7a996b15c8fe48297bcd160be3dbf4c7b65dc41d
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2021-08-23 19:17:12 +05:30
chengxue
1c39013311 msm: camera: reqmgr: Delay to do slot reset for finished req
For boken mode with hw sync enable, a link and its synclink
streaming with sync. if a bubble condition happens on a link,
and can not wait all buf done to clear the isp ctx
process_bubble flag in time, there may apply fails on isp
during the bubble recovery flow. current crm reset in_q slot
after req's report has finished. this may lead to a synclink
slot not found while do ready check.

So delay to do slot reset by referring the link delay.

CRs-Fixed: 2996710
Change-Id: Ice8c340a9f478a69d97e3a7c77e0d0a263be66fa
Signed-off-by: chengxue <chengxue@codeaurora.org>
2021-08-23 14:22:33 +08:00
Trishansh Bhardwaj
8839726f67 msm: camera: sync: Prevent OOB access of sync name
Issue:
strlcpy calls strlen on src ptr. If src is not NULL terminated then OOB
access will occur in below stack.
  strlen
  strlcpy
  cam_sync_init_row
  cam_sync_handle_create
  cam_sync_dev_ioctl

Fix:
Pad user-space supplied name with NULL.

CRs-Fixed: 3010262
Change-Id: Ib5c2fbfe395025ec05e0bb2980f86111e95ff54c
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
2021-08-20 07:35:58 +00:00
Shravya Samala
9d68bffd2a msm: camera: cdm: Acquire mutex lock before accessing client data
There is a chance of use after release of client data in
cdm internal operation calls. Hence acquire mutex lock whenever
accessing client data to avoid use after release scenario.

CRs-Fixed: 3010261
Change-Id: Iaf7f41d56301299a6f63a5dc1090334063019881
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
2021-08-17 01:37:52 -07:00
shiwgupt
e41ff174c1 msm: camera: flash: Add support for flash stream off
- Apply flash off register settings at the time of stream off.
- Add support to send fire command in initial config command.

CRs-Fixed: 2998772
Change-Id: I8897a68e637d283afd98e386b6a7b1fbaaf63c61
Signed-off-by: shiwgupt <shiwgupt@codeaurora.org>
2021-08-17 08:33:29 +05:30
Shravya Samala
e3c0176a11 msm: camera: tfe: Fix dereference of pointer before NULL check
This commit fixes derefering NULL pointer before accessing
it.

CRs-Fixed: 3011823
Change-Id: Id9ba556103310d9bb13a0b1029e942a2541a272f
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
2021-08-16 14:40:03 +05:30
Camera Software Integration
8d5da81f5d Merge "msm: camera: flash: Handle I2C flash request deletion" into camera-kernel.lnx.4.0 2021-08-13 10:07:32 -07:00
Camera Software Integration
96063b961e Merge "msm: camera: cci: Enhance burst read timing" into camera-kernel.lnx.4.0 2021-08-13 10:07:15 -07:00
Shadul Shaikh
6fb7609c0b msm: camera: smmu: Unmap secure buffers in secure camera use case
Dettach and unmap DMA buffers obtained previously from DMA attach
and mappings respectively.

CRs-Fixed: 3014632
Change-Id: If8f8ebe9fc270f2ba39a9a42ab7c7bfb0f79c4eb
Signed-off-by: Shadul Shaikh <sshadu@codeaurora.org>
2021-08-13 16:31:21 +05:30
Linux Build Service Account
723b1eff44 Merge 78f83a4079 on remote branch
Change-Id: Ic9d9d9d452dec3f4e10cb6c0e099d561fb869514
2021-08-13 00:44:50 -07:00
Camera Software Integration
d2c38601c2 Merge "msm: camera: cpas: Support OT enablement through Fuse" into camera-kernel.lnx.4.0 2021-08-11 00:42:47 -07:00
Camera Software Integration
12c6f510f4 Merge "msm: camera: isp: Correct error check in clock rate assignment" into camera-kernel.lnx.4.0 2021-08-11 00:42:26 -07:00
Camera Software Integration
4bc86335b3 Merge "msm: camera: csiphy: Update csiphy-v1.2.3 CPHY sequences" into camera-kernel.lnx.4.0 2021-08-11 00:42:15 -07:00
Yash Upadhyay
56b3486384 msm: camera: isp: CSID Tasklet stop sequence
Handle race for tasklet stop. Changed the sequence of tasklet stop
call to avoid unclocked register accesses on tasklet stop/flush.

CRs-Fixed: 3010894
Change-Id: Ieec9f20db127b2bebec0bb40ec437b4eb3d3d9dd
Signed-off-by: Yash Upadhyay <yupadhya@codeaurora.org>
2021-08-10 18:53:09 +05:30
shiwgupt
d99dd2a640 msm: camera: flash: Handle I2C flash request deletion
Handle I2C flash request deletion in the buffer so that
new request can be added.

CRs-Fixed: 3002966
Change-Id: I774a49c687832ef566071ae3ec4249bf425e94c2
Signed-off-by: shiwgupt <shiwgupt@codeaurora.org>
2021-08-09 08:55:14 +05:30
Depeng Shao
c457fcd68a msm: camera: reqmgr: Fix trigger count out of bound issue
Since the CAM_TRIGGER_MAX_POINTS equal to CAM_TRIGGER_POINT_EOF,
so we need to use CAM_TRIGGER_MAX_POINTS + 1 to define the
trigger count.

CRs-Fixed: 3007296
Change-Id: Ia0cefd8381417a4b7ecd8636796bf25df705101d
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-08-05 14:59:59 +08:00
Ayush Kumar
3cc0296241 msm: camera: cpas: Support OT enablement through Fuse
This change is to support enable and disable of OT values
for real time block through fuse.

CRs-Fixed: 2924987
Change-Id: If4c6b89cafd517a5c6f7706bf65cc0a47ecdc62e
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2021-08-03 19:16:23 +05:30
Alok Chauhan
2f0fa5b4cd msm: camera: isp: Correct error check in clock rate assignment
Error check is not proper while assigning clock rates.
this is causing failure on updated clock rates.

CRs-Fixed: 2998722
Change-Id: Id8634438a7930362e4b8eb010b523dc2def1f043
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2021-08-03 12:53:16 +05:30
zhuo
a84ec521b5 msm: camera: csiphy: Add csiphy header file delta
This change add csiphy header file delta from camera-kernel.3.1
to camera-kernel.4.0.

CRs-Fixed: 2998514
Change-Id: I802b25fe3939edb5294536f2e26307105c6667f0
Signed-off-by: zhuo <zhuo@codeaurora.org>
2021-08-02 13:55:07 +08:00
Depeng Shao
f1f8fc1c93 msm: camera: cci: Enhance burst read timing
In burst read flow, we need to wait CCI irq
once one set data is read, but the fifo may has
new data what can be read immediately and don't
need to wait the irq. This change also optimize
the irq processing, we can reset irq mask first,
then process the irq status, it can avoids some
timing issue, e.g. the read context runs too
quickly, then read context enable the read
threshold bit in irq mask1, but irq context runs
late, then irq context clear the read threshold,
then we can't receive read threshold again.

CRs-Fixed: 2995920
Change-Id: I8acfadf07b95782725bf4bf8b05b88789874c1da
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
2021-08-01 08:49:04 +08:00
Camera Software Integration
78f83a4079 Merge "msm: camera: cpas: Enable Priority LUT for Blair OPE" into camera-kernel.lnx.4.0 2021-07-31 07:22:09 -07:00
Camera Software Integration
3655578b20 Merge "msm: camera: ife: Null pointer check for dump_data" into camera-kernel.lnx.4.0 2021-07-31 07:20:50 -07:00
Shravan Nevatia
672b8abdde msm: camera: csiphy: Update csiphy-v1.2.3 CPHY sequences
Update the CPHY sequences to align to HPG rev X.

Data rate:   <=1.9Gsps  1.9Gsps->3Gsps  >3Gsps
144/344/544  0x22       0xA2            0xA2
988/A88/B88  0          5               5
980/A80/B80  0          0x61            0x61
9B4/AB4/BB4  8          8               4.

CRs-Fixed: 3000765
Change-Id: I6cda0471399c5724a6b9e50a175fc5b69a72b025
Signed-off-by: Shravan Nevatia <snevatia@codeaurora.org>
2021-07-30 12:03:11 +05:30