Commit graph

1,287 commits

Author SHA1 Message Date
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
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
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
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
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
Sujit Das
496cf578aa msm: camera: ife: Null pointer check for dump_data
When pipeline is IFE_Lite and IFE_LITE doesn't define dump_data,
Need to have null check for dump_data.

CRs-Fixed: 2980840
Change-Id: Icb3322b82b265829e4a54271fa30260a00f90175
Signed-off-by: Sujit Das <sujitd@codeaurora.org>
2021-07-26 16:46:09 +05:30
Ayush Kumar
8df4478065 msm: camera: cpas: Enable Priority LUT for Blair OPE
This change is to enable priority lut QoS settings in
OPE Hw for Blair Camera.

CRs-Fixed: 2944976
Change-Id: Icb7b457b96698669a260a589fb445e246a8d100a
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2021-07-22 12:19:13 +05:30
Camera Software Integration
b7de35c284 Merge "msm: camera: common: Change judgement condition" into camera-kernel.lnx.4.0 2021-07-21 23:26:06 -07:00
Camera Software Integration
9655f948ce Merge "msm: camera: reqmgr: Reset sync mode for sync link in bubble" into camera-kernel.lnx.4.0 2021-07-21 23:15:26 -07:00
Camera Software Integration
afdd3c12a7 Merge "msm: camera: cpas: Add support for new cpas version" into camera-kernel.lnx.4.0 2021-07-14 11:16:10 -07:00
Camera Software Integration
310aab34f8 Merge "msm: camera: csiphy: Continue in case of unavailibility of CSIPHY hw" into camera-kernel.lnx.4.0 2021-07-14 11:15:58 -07:00
Camera Software Integration
3c1766f31f Merge "msm: camera: csiphy: Update PHY setting in 1+1 combo mode" into camera-kernel.lnx.4.0 2021-07-14 10:33:45 -07:00
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
zhuo
1666f6b6d4 msm: camera: common: Change judgement condition
Icc_get return value is IS_ERR type, so the commit change the
judgement condition.

CRs-Fixed: 2988670
Change-Id: I2c3375922bc42b598aa8872c756a47e881ccb80c
Signed-off-by: zhuo <zhuo@codeaurora.org>
2021-07-14 18:55:59 +08: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
Anil Kumar Kanakanti
9c2449a015 msm: camera: csiphy: Update PHY setting in 1+1 combo mode
Enable FORCE_TERM_EN for LN6 in 1+1 combo mode.

Change-Id: I2a23b2f5cb04102e1268a749ec5ca055da9c719a
CRs-Fixed: 2986671
Signed-off-by: Anil Kumar Kanakanti <akanakan@codeaurora.org>
2021-07-08 12:01:23 +05:30
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
Wyes Karny
3273afefe7 msm: camera: reqmgr: Reset sync mode for sync link in bubble
Reset sync link in case of bubble recovery.
When dual link is enabled, it is not required to re-apply the sync link
request in bubble recovery as the sync link request is already applied and
by the time reapply comes request would not be in pending list.
Therefore set the sync mode to zero for that index, so that
there would not be any dependency on the sync link.

CRs-Fixed: 2978526
Change-Id: I327371baecfd6d378cb773bc27c412ba6d2ba42d
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2021-06-28 17:41:26 +05:30
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