Commit Graph

96 Commits

Author SHA1 Message Date
balgxmr
06d0ea64ab Merge tag 'LA.UM.9.1.r1-13700-SMxxx0.QSSI13.0' of https://git.codelinaro.org/clo/la/kernel/msm-4.14 into rebase
"LA.UM.9.1.r1-13700-SMxxx0.QSSI13.0"
2023-08-09 17:00:20 -05:00
pwnrazr
50e1c9d245 Merge tag 'LA.UM.9.1.r1-12600-SMxxx0.QSSI12.0' of https://git.codelinaro.org/clo/la/kernel/msm-4.14.git into dev-pwn
"LA.UM.9.1.r1-12600-SMxxx0.QSSI12.0"
2022-10-07 11:18:07 +03:00
Om Parkash
bd6a9de898 msm: camera: Increase the total number of camera ID's supported
Increase the total number of camera ID's supported.

Change-Id: Icf9cf2e48757d437a2b7dbbe618e886dc0203f6d
Signed-off-by: Om Parkash <quic_oparkash@quicinc.com>
2022-09-05 13:25:08 -07:00
Om Parkash
1b50fb88b8 msm: camera: Add page read support for EEPROM
Add page read support for EEPROM.

Change-Id: I7e030f72f7398a98dde9c10740ae1bf7cdb52b28
Signed-off-by: Om Parkash <quic_oparkash@quicinc.com>
2022-06-12 06:10:08 -07:00
UtsavBalar1231
72ed3142c3 msm: cam_sensor: Add I2C settings for camera sensor read/write registers
Change-Id: I39e81cd73b173b17ceadbf944c98f88273e18add
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2021-03-11 10:21:57 +05:30
UtsavBalar1231
af355368fb msm: camera: cam_sensor: Add xiaomi modifications for face unlock
Change-Id: Iddd39637585f89b8b7bc80915fe370c425d564bb
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2021-03-11 10:21:56 +05:30
UtsavBalar1231
fc3c711360 msm: camera: cam_req_mgr: Increase max handles supported by cam_req_mgr
Change-Id: Iba18bfd51b0443bc040219f9fde2989ece179859
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2021-03-11 10:21:52 +05:30
Chunhuan Zhan
3537b9efa4 msm: v4l2loopback_v2: Support vendor extension
Support sync set/get vendor extension and async
vendor extension event.

Change-Id: I613dd089ef7367f175ea6608177c065f75b55b8f
Signed-off-by: Chunhuan Zhan <zhanc@codeaurora.org>
2020-12-11 02:51:38 -08:00
E V Ravi
2fc041ee15 msm: ais: Fill diagnostic information from CSIphy and IFE
Completed implementation of IFE and CSIphy device diagnostic APIs

Change-Id: I7815af881c9986feade4150e0d64dd235bbea7c1
Signed-off-by: E V Ravi <evenka@codeaurora.org>
2020-12-03 20:21:58 +05:30
Terence Ho
d06cd28525 msm: ais: add support for nested smmu
Add support for nested camera smmu for content protected streams.

Acked-by: Abderahmane Allalou <aallalou@qti.qualcomm.com>.

Change-Id: I84535d826e6b4657277fb6b48326d7d28a3ab93b
Signed-off-by: Terence Ho <terenceh@codeaurora.org>
2020-08-06 11:56:43 -04:00
qctecmdr
d954d9a568 Merge "Add S2R and S2D support in KMD" 2020-06-17 20:19:03 -07:00
E V Ravi
e8c8ce5e4e Add S2R and S2D support in KMD
S2R: Implement .suspend() and .resume()
S2D: Implement .thaw() and .restore().

Change-Id: Idef319f8f67895fcadb838fb72f03187799401c8
Signed-off-by: E V Ravi <evenka@codeaurora.org>
2020-06-01 15:38:57 +05:30
Terence Ho
eee28504be msm: ais: add AIS IFE Drivers
Add new AIS IFE driver as a lightweight variant for RDI only usecases
based on msm-4.14 cam_isp as of commit 698ee3d927
("msm: ais: isp: validate in_port before accessing").

The API definition is in ais_isp.h and ais_isp_hw.h.

Change-Id: I04927f0f184045985f52bb7cb6c8c42a47ec6476
Signed-off-by: Terence Ho <terenceh@codeaurora.org>
2020-05-28 14:29:56 -04:00
YUE CHEN
2819c774a2 msm: ais:implement cci sync API
Add cci sync API to support multiple i2c slaves,
also allows multiple clients to work on the same cci
device.

Change-Id: I1f5cf6a78bd7bc9c93a7f305743100c85631ae59
Signed-off-by: YUE CHEN <yueche@codeaurora.org>
2020-03-10 18:33:47 -07:00
Meera Gande
9c2fbb1741 mm-camera2:isp2: Notify dual cam drop
In case of drop due to sw sync logic in
dual camera, need to update the isp page
with the number of frames that are dropped.

Change-Id: I18c4bbf781a5f1f2bf2f48518464b2e459ac7892
Signed-off-by: Meera Gande <mgande@codeaurora.org>
2020-02-03 15:14:01 +05:30
Vasantha Balla
2a252c7256 msm: vidc_3x: Add snapshot of video driver
Migration of 4.9(vidc_3x) driver to kernel 4.14.

This is snapshot of the video driver as of msm-4.9(vidc_3x)
commit 79457f1020bc4ee (" update the condition for load check").

Change-Id: I7ca104c341c2b4661479a72286663fe2eb3139e5
Signed-off-by: Vasantha Balla <vballa@codeaurora.org>
2019-12-25 21:34:45 -08:00
qctecmdr
75382b9508 Merge "msm: ais: implement bridge error report" 2019-12-07 00:45:24 -08:00
qctecmdr
33e65f699b Merge "msm: ais: add cci debugger interface" 2019-12-04 20:31:45 -08:00
YUE CHEN
6ee6a6aa5f msm: ais: implement bridge error report
Configure the gpios as irq mode, send the event
to ais when error detected.

Change-Id: I6aaa6e002fbcea4013e2e80c34052f62ad8b604e
Signed-off-by: YUE CHEN <yueche@codeaurora.org>
2019-12-02 22:13:15 -08:00
Terence Ho
01fdc3e98e msm: ais: add cci debugger interface
Expose CCI nodes and add CCI interface for debugging.

Change-Id: I890a2cf03360e524b9ce401dbd599ab2afa79c5b
Signed-off-by: Terence Ho <terenceh@codeaurora.org>
2019-12-02 18:54:19 -05:00
qctecmdr
8eb0281957 Merge "msm:ais: add sync multiclient create and reset extension" 2019-11-25 08:50:37 -08:00
Terence Ho
21227d5583 msm:ais: add sync multiclient create and reset extension
Add sync extension to create object with client id param that will
be offset of v4l2 event used. Also add reset API to enable reuse
of signalled sync objects.

Change-Id: I0d2297a57367b1cc81e48848de640df860078e70
Signed-off-by: Terence Ho <terenceh@codeaurora.org>
2019-11-22 11:58:42 -05:00
Sridhar Gujje
3cc51ab3b2 Merge remote-tracking branch 'dev/msm-4.14-camx' into msm-4.14 10/23
* commit 'a11f39a8256f0f0520846a9861731cc22646f580':
  msm: camera:icp: Fix deadlock during ICP pagefault handling
  msm: camera: isp: Reset sof counter before enable the CSID path
  msm: camera: isp: Disable tasklet once
  msm: camera: isp: Mask unused rdi interrupts
  msm: camera: isp: CSID error propagation
  msm: camera: isp: Skip reapply of DMI config on bubble recovery
  ARM: dts: msm: Add svsl1 level for CSID clock in atoll

Change-Id: I75fdc6a46780a4828ba8798d43d7750bec7d35ae
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
2019-10-30 20:50:49 +05:30
Gaurav Jindal
a22ed54d19 msm: camera: isp: CSID error propagation
Notify the CSID errors to user space.
User space can then chose to take appropriate action based on
the error.

Change-Id: Ic7d8848d7bf8a91d1629365ac4ce0bccb87e7a3c
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2019-10-14 16:06:28 +05:30
Sridhar Gujje
23d6ec258e Merge remote-tracking branch 'dev/msm-4.14-camx' into msm-4.14 09/17
* commit '08173d1ffb1a9ad8121c7f704726240d2afb83ee':
  msm: camera: isp: Fix Page fault dump for first request
  msm: camera: cpas: Add Urgency Low register value
  ARM: dts: qcom: Correct max voltage of Regulator L4
  msm: camera: isp: Adding cpas hw version for SCM call in atoll
  msm: camera: csiphy: update csiphy data rate settings for sm8150
  msm: camera: csiphy: Update csiphy settings for sm8150
  msm: camera: csiphy: reset phy lane configs on shutdown
  msm: camera: reqmgr: return if sync_slot_idx is not found
  msm: camera: LDAR Debug info dump framework implementation
  msm: camera: lrme: Handle release lock when returning from error case

Change-Id: If48867128616f0da0d854850bd84619faa437c1c
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
2019-09-17 23:54:29 +05:30
Sridhar Gujje
8e669c428d Merge remote-tracking branch 'dev/msm-4.14-camx' into msm-4.14 08/12
* commit '5ec74675604e1a4129213d032fff0e49d3567112':
  msm: camera: cam_isp: Change default fps value
  ARM: dts: msm: Add camera sensor nodes for atoll
  ARM: dts: qcom: Enable phy regulators for atoll
  ARM: dts: qcom: Add csiphy, cci for atoll
  msm: camera: cpas: Add cpas support for camera v150_110 platform
  ARM: dts: msm: Add AHB-IB voting bandwidth to bring up v150_110 camera
  msm: camera: eeprom: Release the mutex even though got error
  ARM: dts: msm: Add PPI clock sources to bring up v150_110 camera
  msm: camera: isp: Added PPI driver functionality
  ARM: dts: msm: Add dtsi support for v150_110 camera
  msm: camera: Add csiphy version for atoll
  msm: camera: isp: Log information during IFE acquire failure
  msm: camera: cam_isp: Recovery after IRQ delayed
  msm: camera: isp: Add fps Blob support
  msm: camera: isp: Enable pixel_format_measurement in CSID
  msm: camera: isp: Handle wait and active list during flush all
  msm: camera: isp: Add irq status prints to CAM_ERR

Change-Id: I7caa2253ad5dfcc5275ee5945ff8b118e7de225a
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
2019-08-20 23:39:01 +05:30
Gaurav Jindal
30d56c2920 msm: camera: LDAR Debug info dump framework implementation
When user space detects an error for a request or does
not receive the expected response. it sends dump request
to kernel space.
User space passes the culprit issue request id
and the buffer where the info can be dumped.
Kernel space traverse across the drivers and find the culprit hw
and dumps the relevant information in the buffer.
This data is written to a file by user space for offline
processing.
This commit implements the framework for the traversal
across the RT and NRT devices.

Change-Id: I0b14206f1b740089677160eecf84025c6babf59d
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2019-08-09 09:39:59 +05:30
Chandan Kumar Jha
5def64ce74 msm: camera: isp: Add fps Blob support
Add fps blob to get the fps value from user space. Epoch interrupt
configuration will be depend on the fps value. Configure epoch
interrupt to half of the frame if fps value is 60, in rest all cases
configure epoch interrupt to 2/3 of the frame.

Change-Id: I2544a5e18895a983155c2f01e49920c9e1ec59b9
Signed-off-by: Chandan Kumar Jha <cjha@codeaurora.org>
2019-07-25 14:25:31 +05:30
Mounika Reddy Tangirala
463b3b0e53 msm: camera: Add new sof event to include nanosecond timestamp
Thirdparty EIS need sof timestamp to be in nanoseconds and
this change will send new event sof_nanosec to get
nanosec timestamp.

Change-Id: Ia9884a2612cc3aa1153b4677521fce7ddfb8d1ba
Signed-off-by: Mounika Reddy Tangirala <mtangi@codeaurora.org>
2019-07-23 11:51:30 +05:30
Rishabh Jain
7a75626bf3 msm: camera: isp: Enable pixel_format_measurement in CSID
Enabling format measure helps to find mismatch between
the expected sensor width and height with actual sensor width
and height.
In case of mismatch CSID will give CSID_PATH_ERROR_PIX_COUNT
and CSID_PATH_ERROR_LINE_COUNT.

Change-Id: I11aefe7d073ec47810564442109981d0e46f9844
Signed-off-by: Rishabh Jain <risjai@codeaurora.org>
2019-07-23 09:44:38 +05:30
Sridhar Gujje
f6a7409d31 Merge remote-tracking branch 'dev/msm-4.14-camx' into msm-4.14 06/12
* commit 'b34e6d91a150d108f345cf292218e42bccdca4bb':
  msm: camera: sensor: Increase the eeprom map buffer count
  msm: camera: reqmgr: Reset previous skipped slot if valid request
  msm: camera: crm: Increasing the device handles to 128
  msm: camera: Adding device type to track device handles
  msm: camera: isp: Add support for initial frame drop
  ARM: dts: msm: Increasing shared mem region size for SM6150 and sdmmagpie
  msm: camera: icp: Prevent out of bound access in acquire
  msm: camera: mem: Mutex before cpu_begin_access & cpu_end_access
  msm: camera: cpas: Check the HW state before accessing register
  msm: camera: cci: Add rd_done to handle read done operation
  msm: camera: crm: Increase the device handles to 128
  ARM: dts: msm: Increase camnoc bw margin for sdmmagpie
  msm: camera: fd: Remove duplicate "qcom,fd501" property
  msm: camera: reqmgr: Fix CRM shift one req issue
  msm: camera: icp: Mapping fw error numbers with error names
  msm: camera: isp: Prevent out of bounds read
  msm: camera: csiphy: correct DPHY bring up sequence
  msm: camera: Fix cpas axi clk rate overflow
  msm: camera: reqmgr: Skip reset if no request from UMD

Change-Id: I786e2bcd1241196b7a683948a3323f5669c6644c
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
2019-06-20 20:23:21 +05:30
Om Parkash
6a6b145092 msm: camera: Add IR-LED and IR-cut filter driver
Add driver for PWM based IR-LED and IR-CUT filter
in camera to be used to capture very low light scenario.
It takes IR mode and IRLED Intensity from UMD configures
IRLED and IR CUT filter accordingly.

Change-Id: I97328b14c177a05f9f48a37d3198193e2204acd8
Signed-off-by: Om Parkash <oparkash@codeaurora.org>
2019-06-18 00:22:06 -07:00
Sumalatha Malothu
b1beed57e7 msm: camera: Send topology and stream status to TZ
In secure camera mode, publish topology and stream
start and stop events to TZ for it to reset the
modules, which adds to the security of the data.

Change-Id: If7f4b85199e628846a1a416530f43ad4afa786ac
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
Signed-off-by: Shadul Shaikh <sshadu@codeaurora.org>
Signed-off-by: Sumalatha Malothu <smalot@codeaurora.org>
2019-06-03 23:28:21 -07:00
Ravikishore Pampana
3b0c9e07ac msm: camera: isp: Add support for initial frame drop
Initial frame drop is required for some sensors. User space
provide the number of  frames need to drop through blob
command buffer.
If initial frame drop is provided, CSID driver enable the SOF irq
at csid path start. For every SOF IRQ, count will be incremented
and if it reaches the init frame drop number then configure path
control registers to start the path at frame boundary.

For dual ife usecase, first RDI frame need to drop as pix frame
will be dropped for csid synchronization.

Change-Id: I615c9f03a7387329214fa6d2fc12e8578a665593
Signed-off-by: Ravikishore Pampana <rpampana@codeaurora.org>
2019-06-04 08:56:47 +05:30
Mangalaram ARCHANA
2cf1b502bb msm: camera: crm: Increase the device handles to 128
Increasing the device handles to 128 to support more pipelines.

Change-Id: Id0322cba095091e6168d8541d432628d8422a641
Signed-off-by: Mangalaram ARCHANA <mangar@codeaurora.org>
2019-05-24 10:59:49 +05:30
Sridhar Gujje
fc6a6ce6d7 Merge remote-tracking branch 'dev/msm-4.14-camx' into msm-4.14 05/17
* commit '2e671e75f49d4f8eded037526b39dc7bc7995f19':
  msm: camera: Add uapi changes for axi bw voting v2
  msm: camera: sync: Dump fence info in case of fence exhaust
  msm: camera: isp: Handle Dual VFE incase of event mismatch
  msm: camera: icp: Get GDSC control prior to IPE/BPS reset

Change-Id: Icbea57ef83ebfe916630f79eae19cff8b97c1210
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
2019-05-17 13:10:08 +05:30
Mukund Madhusudan Atre
cb79ed061d msm: camera: Add uapi changes for axi bw voting v2
Adding uapi definitions for providing granular bw vote info
for camnoc, mnoc ab/ib and ddr paths.

Change-Id: I24a729dc3e76e1e3973131a73d0e07f52e464b1e
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2019-05-14 12:42:28 -07:00
Uma Mehta
5909974e3a msm: vidc: add support to enable Enc DTS metadata
Add support to enable Enc DTS extra data.

Change-Id: Iff08371b12860e40c7b2a45def75bfdb25c7595b
Signed-off-by: Uma Mehta <umamehta@codeaurora.org>
2019-04-17 03:55:20 -07:00
qctecmdr
544ab406e6 Merge "msm: camera_v2: dualvfesync support for analysis stream" 2019-04-06 23:59:42 -07:00
Ramesh V
8cc97bf1d6 msm: camera_v2: enable dual_vfe_sync for trinket
register dual vfe irq, and handle the events accordingly

Change-Id: Ie33b10ba4792af77e3b80b76a3d06998304ff123
Signed-off-by: Ramesh V <ramev@codeaurora.org>
2019-04-04 11:07:25 +05:30
Sridhar Gujje
c9760d512d Merge remote-tracking branch 'dev/msm-4.14-camx' into msm-4.14 03/28
* commit 'cc19ad28282a9db6269397fc357234b4c62fd77f':
  msm: camera: Add bounds checking for output resources
  ARM: dts: msm: Add new nodes for tele and ultra wide camera for sm6150
  ARM: dts: msm: Mclk3 support for sm6150
  msm: cam: cpas: Handling AB BW passed by UMD along with IB
  msm: camera: smmu: Move the error message at correct place
  msm: camera: sensor: Subtract offset before validating cmd desc

Change-Id: I7128ee8b093e215b8cc43e4f3125060a23387f18
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
2019-04-02 15:59:20 +05:30
Alok Pandey
c2a08c51d1 msm: cam: cpas: Handling AB BW passed by UMD along with IB
Currently CPAS only handles IB voted by each client.
Added support to handle AB along with IB to be voted on
external bus.

Change-Id: Iff5b28f3980a1293adb81e389915d08ff84728bc
Signed-off-by: Alok Pandey <akumarpa@codeaurora.org>
2019-03-14 15:51:13 +05:30
Mounika Reddy Tangirala
d9c8fa2e53 msm: camera: Add RAW12 support for meta data
Adding support to decode 12 bit raw metadata
at CSID.

Change-Id: I89bb9f69f3f004df29b1498761e9a54fb88cdef0
Signed-off-by: Mounika Reddy Tangirala <mtangi@codeaurora.org>
2019-03-11 19:26:39 +05:30
Shadul Shaikh
e78313c20c msm: camera: CSID virtualization
This mechanism allows to take control over camera data path
in order to limit access to the camera frame streams. If
enabled the CSID address space is exclusively available to TEE.
TEE is responsible to actually read/write the CSID registers
according to the information relayed from the HLOS driver.

Change-Id: Ifae30241b704d8d9bc265ebff96a35c6266f2911
Signed-off-by: Shadul Shaikh <sshadu@codeaurora.org>
2019-03-08 15:20:27 +05:30
Meera Gande
58637e2f33 msm: camera: isp: Handle frame drop due to delay
In few scenarios, the request frame may get
delayed and current and request frame id may
become same. To handle such scenarios, made
changes to inform user to delay a frame and
process the request.

Change-Id: I31fa04c386922c48a043c511a163c76316e21987
Signed-off-by: Meera Gande <mgande@codeaurora.org>
Signed-off-by: Abhishek Jain <abhij@codeaurora.org>
2019-02-14 15:26:05 +05:30
qctecmdr Service
c2af610106 Merge "UPSTREAM commit '4593b60130a84ec26b8afced5b7732d7854787ae' on 12/21" 2018-12-30 13:36:44 -08:00
qctecmdr Service
1b6f386af6 Merge "msm: camera: hyp: Support for Resource manager interface" 2018-12-25 10:54:55 -08:00
Karthik Anantha Ram
97f759c9ea UPSTREAM commit '4593b60130a84ec26b8afced5b7732d7854787ae' on 12/21
* commit '4593b60130a84ec26b8afced5b7732d7854787ae':
  msm: camera: Correct driver removal operations for sensor modules
  msm: camera: Change reset sequence for CSID
  msm: camera: icp: KW work issue in ICP
  msm: camera: sensor: Add check for overflow for sensor util
  msm: camera: lrme: Check the HW state before access register
  msm: camera: ife: Adds bound checking for output resources
  msm: camera: Add cpas stop in case of notify secure mode failure
  msm: camera: reqmgr: Validate num links in link control
  msm: camera: crm: Notify UMD on Error to preform recovery
  msm: camera: reqmgr: Remove kfree calls on link struct
  ARM: dts: msm: Flag for dynamic ib bw update for SM8150/sdmmagpie
  msm: camera: Add flag to dynamically update axi ib bw
  msm: camera: flash: Moving flash off operation in stop dev ioctl

Change-Id: I55fa590a691958be6b05a5aa447d8c64654e5527
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2018-12-21 10:51:00 -08:00
Alok Pandey
38e26ab520 msm: camera: hyp: Support for Resource manager interface
This driver provides interface to resource manager to get secure handle.
The handle is used by secure camera interface.

Change-Id: I8cf479a8680180aa2436ffb54c6b93839200ff90
Signed-off-by: Alok Pandey <akumarpa@codeaurora.org>
2018-12-21 02:34:11 -08:00
Meera Gande
6ba8b099cb msm: camera: isp: Support dual vfe sync
Made changes to support dual vfe sync

Change-Id: I066473ac39ea264e8ba8b1e4d1a9abd695e30d0d
Signed-off-by: Meera Gande <mgande@codeaurora.org>
2018-12-20 21:32:12 -08:00