While preparing config packet at HW layer,
we are setting Ope request timer even before
processing command buffer and IO cfg. This is
leading to false hw hang detection.
Expectation is Ope request timer has to
start after req is submitted to HW.
CRs-Fixed: 2788900
Change-Id: Idd1420b2ee1aed4bfe947cf5617bbec9b39147d3
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
Signed-off-by: Nirmal Abraham <quic_c_nabrah@quicinc.com>
1) There is one to one mapping for ppi index with phy index
but phy select is not always equal to phy number,for some
targets "phy_sel = phy_idx + 1", and for some targets it is
"phy_sel = phy_idx", ppi_index should be updated accordingly.
2) Updated to configure ppi cfg register as.
for cphy, disable dphy in config register.
for dphy, do nothing (both cphy and dphy will be selected).
then enable all lanes.
CRs-Fixed: 3057665
Change-Id: I1d5d66034a5563b5adcb8163acf9a668d10d4a19
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
Add Support for qup i2c based flash. Update i2c driver
probe function and added 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.
CRs-Fixed: 3056236
Change-Id: If33086c80bd7d5c1403aedf1a2c01867d6c56687
Signed-off-by: Vishal Verma <vishverm@codeaurora.org>
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>
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>
It provide support for differeent TPG patterns
like color bar, incrementing and user defined.
CRs-Fixed: 3026095
Change-Id: I8f7c4f3bb4c1c0d0026ff098d76b5664a66baca2
Signed-off-by: Dharmender Sharma <dharshar@codeaurora.org>
In case of input buffer, check array size of input sync obj before
assigning fence.
CRs-Fixed: 2821583
Change-Id: I5cd7968cfbe0be86a8967565616bf6eb1cf7fcf7
Signed-off-by: Shravya Samala <shravyas@codeaurora.org>
In case of concurrent tpg use case, configure top tpg mux sel
properly.
CRs-Fixed: 2804168
Change-Id: I9955c9f03cebac854a339ff5161a99ecaf27cbdf
Signed-off-by: Pranav Sanwal <psanwal@codeaurora.org>
msm: camera: cdm: Add CDM hang detect and debug registers dump support
msm: camera: ope: free unused memory in ope acquire
msm: camera: cdm: Improve error handling during cdm hang
msm: camera: ope: Dump stripe info at the time of hang.
CRs-Fixed: 2878214
Change-Id: I998a71fb614be92c3a012a1823bdd2512d3af3d5
Signed-off-by: Dharmender Sharma <dharshar@codeaurora.org>
Maintain flash state in flash off for I2C flash.
Change-Id: Ieb605a79881b4091c8c3e4fac3a84731339b573f
Signed-off-by: shiwgupt <shiwgupt@codeaurora.org>
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>
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>
- 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>
For recovery of the bubble the request from active list
should be added back to pending request list.
Change-Id: I8d7d6726ddc3e720665e53e4979a7907b09d86aa
CRs-Fixed: 3011917
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
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>
OPE probe is failing due to incorrect OPE version.
Correcting OPE version as a fix.
CRs-Fixed: 2994159
External Impact: No
Change-Id: I8c4de8aa76c1da883a922b1ca873b31e8937ca03
Signed-off-by: Alok Pandey <akumarpa@codeaurora.org>
Currently cam-res-mgr uses the virtual gpio number (A global gpio number
among all the gpio modules) in case of shared gpio. We cannot know this
upfront as the mapping varies between targets. This change allows to use
the shared gpios using gpios property, where we can mention the gpio module
and the gpio number used.
CRs-Fixed: 2994159
Change-Id: Ic60eeace89e5223eaeee5a7709bb3beee4127bb0
Signed-off-by: Tony Lijo Jose <tjose@codeaurora.org>
CSID probe is failing due to PPI getting probed later than CSID.
Fix:
- PPI initialization failure as non-fatal.
- Reordering compilation to call PPI probe before csid.
CRs-Fixed: 2994159
External Impact: No
Change-Id: I43948b28ef044eaaef2c72027e991f1fa63bee02
Signed-off-by: Alok Pandey <akumarpa@codeaurora.org>
- 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: 3660915
Change-Id: I64ecba3fa4176972e819b11f2a65340c24f85d4f
Signed-off-by: shiwgupt <shiwgupt@codeaurora.org>
CSIPHY settings are propagated for version 1.2.1 from
4.0 to 3.1.
CRs-Fixed: 2966344
Change-Id: Id315bfcde4c29d2fa491be17d46544371716c5a9
Signed-off-by: shiwgupt <shiwgupt@codeaurora.org>
PPI is a bridge between CSIPHY and CSID. Responsibilty of this driver is to
enable and configure PPI bridge from CSID as per the configuration.
CRs-Fixed: 2960970
Change-Id: I0606b8ee06f6fbc2f84c3be628f356192a79f5a5
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
Khaje has different version of CPAS version which
requires camnoc interface changes and CPAS version
change. This change adds the same.
CRs-Fixed: 2960970
Change-Id: Iff58b7872129966879ecadab058d1d57cd439bea
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
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>
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>