커밋 그래프

1804 커밋

작성자 SHA1 메시지 날짜
Savita Patted
ee8e3d066b Merge "msm: camera: csid: Enhance the CSID logging" into camera-kernel.lnx.5.0 2021-07-07 09:55:03 -07:00
Savita Patted
2d20272f38 Merge "msm: camera: isp: Change error irq subscription for SFE top" into camera-kernel.lnx.5.0 2021-07-07 09:54:43 -07:00
Savita Patted
dba6c5e0f0 Merge "msm: camera: common: Change shutdown sequence for subdevices" into camera-kernel.lnx.5.0 2021-07-07 09:54:21 -07:00
Savita Patted
2946eb9c57 Merge "msm: camera: common: Detach pinctrl state operation" into camera-kernel.lnx.5.0 2021-07-07 09:54:00 -07:00
Savita Patted
75dd79a2dc Merge "msm: camera: sensor: Move cci master index to dt-bindings" into camera-kernel.lnx.5.0 2021-07-07 09:53:40 -07:00
Jigarkumar Zala
f9512d306a msm: camera: csiphy: Handle the aon/non_aon configuration
Combo mode with AON/Main camera operation is corrupted if AON
image sensor probe later than non AON operation sensor mode. This
sequence will put csiphy access to AON FW, and at the time of
Non AON image sensor can not able to stream. To address this issue
add csiphy hw an knowledge of AON capability to acquire the resources
in such usecase. This can assure any of the combo mode sensor will
have access of csiphy hw before start streaming.

CRs-Fixed: 2926885
Change-Id: Id9e0fad6b7f305ca9b3688629bf7692340f73d8e
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2021-07-06 14:16:08 -07:00
Gaurav Jindal
efc119be53 msm: camera: isp: Remove reprogramming of CSID registers
CAMIF and IRQ Subsample registers are being programmed from user space
as a part of init packet. These registers need not be programmed in
kernel.

CRs-Fixed: 2974852
Change-Id: I2d1fe8445f98b9226fbe4a271390dea0b5b8df6f
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-07-06 11:33:07 -07:00
Savita Patted
39cb012e64 Merge "msm: camera: icp: Protect a5 init/deinit calls" into camera-kernel.lnx.5.0 2021-07-06 08:58:21 -07:00
Savita Patted
5000fbf826 Merge "msm: camera: isp: Reset sync object if signaled" into camera-kernel.lnx.5.0 2021-07-06 08:57:21 -07:00
Savita Patted
12bfa5491f Merge "msm: camera: isp: Fix trigger for SFE overflow information print" into camera-kernel.lnx.5.0 2021-07-06 08:56:50 -07:00
Vikram Sharma
cfef3e1e73 msm: camera: tfe: Updated bus acquire logic for new ports added in Mimas 2.0
Updated wm packer config for new ports i.e. AI and stats.
Added number of write master per composite group in tfe as target
specific data.
Updated correct offsets for bus registers under tfe.

CRs-Fixed: 2982472
Change-Id: If1385ffe869de08ba5cd22de03e3a56fbae064c1
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2021-07-06 05:12:59 -07:00
Rishabh Jain
e2c7402dfd msm: camera: memmgr: Add support for non pix secure buffers
Add support to allocate such buffers which need to accessed
by non-pix VM.

CRs-Fixed: 2981372
Change-Id: Iac965a479e05d638c6323bfacd7c6a4d89f2a223
Signed-off-by: Rishabh Jain <risjai@codeaurora.org>
2021-07-06 11:31:00 +05:30
Ayush Kumar
f510695ed6 msm: camera: req_mgr: Increase in_q rdx index in workqueue
This change is to correct in_q rdx index logic. If rdx index is
increased in tasklet, then it is possible that due to delay in
workqueue scheduling crm send apply request for same request.
Also, it prevent concurrent access of in_q rdx index.

CRs-Fixed: 2980811
Change-Id: Iba7d3c0faf6abe845745acbcd810ca52a43e4d01
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2021-07-05 17:56:46 +05:30
gqiaorui
2ed447d4db msm: camera: sensor: Optimize OIS qtimer values
Update Qtimer read logic to read qtimer before
CCI read operation to accomodate CCI delays.

CRs-Fixed: 2976423
Change-Id: I33cc84011a3aed89ee0e95386db3d7604edb16fa
Signed-off-by: Sureshnaidu Laveti <lsuresh@codeaurora.org>
Signed-off-by: Qiaorui Ge <gqiaorui@codeaurora.org>
2021-07-05 10:54:51 +08:00
Savita Patted
6f5f2e82dd Merge "msm: camera: isp: Optimize number of buf done callbacks" into camera-kernel.lnx.5.0 2021-07-01 15:29:31 -07:00
Savita Patted
9e5e021304 Merge "msm: camera: sensor: Add tpg driver support" into camera-kernel.lnx.5.0 2021-07-01 15:29:06 -07:00
Savita Patted
08a7db059e Merge "msm: camera: isp: Add tpg 3 support" into camera-kernel.lnx.5.0 2021-07-01 15:28:16 -07:00
Savita Patted
04222f7d6e Merge "msm: camera: ife: pagefault_ops access protected with mutex_lock" into camera-kernel.lnx.5.0 2021-07-01 15:27:38 -07:00
Savita Patted
080f409f4e Merge "msm: camera: isp: Remove TPG code from hw manager" into camera-kernel.lnx.5.0 2021-07-01 15:26:45 -07:00
Jigar Agrawal
f542121954 msm: camera: csid: Enhance the CSID logging
Add more details to the csid logging in bottom
half for ver2 csid driver.

CRs-Fixed: 2948573
Change-Id: Ia98f51ab5674485397a99d8d3a3e46a7c2682d30
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-07-01 11:30:30 -07:00
Shravya Samala
7c9aa9be33 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-07-01 00:58:42 -07:00
Shravya Samala
4874f370b3 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-07-01 00:58:04 -07:00
Karthik Anantha Ram
d785949196 msm: camera: common: Change shutdown sequence for subdevices
In subdev close call if CRM is still active wait for shutdown
from CRM [media device]. Remove subdevice check for active
handles, shutdown to happen irrespective of any active context.

If CRM is not active, subdevice shutdown should ensure there is
no access to kernel allocated buffers since at this point
memmgr is de-initialized.

As part of ICP close, remove usage of HFI queues, trigger PIL
to transfer FW memory ownership back to HLOS and power off ICP.

CRs-Fixed: 2976107
Change-Id: Ib05b3fbdcc33f4072da7ef77cf0118a807860e8c
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-06-30 17:04:11 -07:00
Jigarkumar Zala
78f6e5bd2d msm: camera: common: Detach pinctrl state operation
Currently pinctrl state update operation is integrated
with platform resource operation. This can create unwanted
transition of pinctrl which can stay in suspend state.
This change detach and separate out the pinctrl entries
with index passed from devicetree. Pinctrl select
state operation is detach from platform enable/disable
operation to operate from device directly only for better
control with respect to operation.

CRs-Fixed: 2907475, 2954556
Change-Id: I918568f96e8888df6882f165458f5c4ab32d6348
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2021-06-30 11:37:46 -07:00
Jigarkumar Zala
849491a0f2 msm: camera: sensor: Move cci master index to dt-bindings
Master specific index is moved to dt bindings to share across
dtsi and driver for the same referencing. This will help
to align indexing and controlling of pinctrl with master specific
slaves.

CRs-Fixed: 2907475, 2954556
Change-Id: Ic5b5537b44af583cb7623ef38a19e67ffe95e95d
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2021-06-30 11:36:58 -07:00
Karthik Anantha Ram
84bbf0b9af msm: camera: isp: Change error irq subscription for SFE top
Subscribe to error IRQs once in SFE top as opposed to per path
since the error IRQs are common to all paths. The change also
adds handling of SFE violation in HW mgr.

CRs-Fixed: 2841729
Change-Id: Id805b7365f81254cdacad618bffdfd5f4028dcfc
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-06-30 11:35:03 -07:00
Karthik Anantha Ram
1c49642a1f msm: camera: icp: Protect a5 init/deinit calls
Protect a5 init/deinit calls to avoid wrong power up/power down
operations.

CRs-Fixed: 2841729
Change-Id: Ie574bd8b500969704b6dd6834f44625b4effbad3
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-06-30 09:14:19 -07:00
Savita Patted
5602b6385c Merge "msm: camera: common: add support to override cdm version in presil" into camera-kernel.lnx.5.0 2021-06-29 18:16:58 -07:00
Savita Patted
a3d67f1cc6 Merge "msm: camera: csiphy: Enable dynamic clock voting level" into camera-kernel.lnx.5.0 2021-06-29 18:16:14 -07:00
Savita Patted
03edefc56c Merge "msm: camera: isp: Consolidate common code into a single API" into camera-kernel.lnx.5.0 2021-06-29 18:15:27 -07:00
Savita Patted
d1bb5b4eef Merge "msm: camera: isp: Modify check to avoid NULL dereference" into camera-kernel.lnx.5.0 2021-06-29 18:14:39 -07:00
Karthik Anantha Ram
3f4b6558c1 msm: camera: isp: Reset sync object if signaled
Reset sync obj in isp request structure to -1 if signaled.

CRs-Fixed: 2967520
Change-Id: Ie8e163785a88e9cd88f8423f2e7dad5c6f72c4de
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-06-29 16:22:50 -07:00
Anand Ravi
8d3152c0e5 msm: camera: isp: Fix trigger for SFE overflow information print
CSID currently reports input core select value to IFE HW manager instead
of hw-index of SFE core upon overflow. IFE HW manager also erroneously
checks for matching hw-index between reporting CSID and SFE, which might
not always be true. As a consequence, no SFE overflow information is
printed.

This commit changes CSID to report SFE hw-index and changes IFE HW
manager to match this hw-index against acquired SFE hw-index.

CRs-Fixed: 2977145
Change-Id: I2d062a7cd6de17f90200c8173d6895ec16c97d56
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
2021-06-29 13:27:30 -07:00
Karthik Jayakumar
0d00f4feee msm: camera: core: v780 enhanced memory addresses
Added support for v780 enhanced memory address handling

CRs-Fixed: 2948659
Change-Id: I46ed16ad70103553a18cc69d762c6d93fc9fd8d9
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-06-29 11:08:03 -07:00
Anand Ravi
0364ef7135 msm: camera: isp: Optimize number of buf done callbacks
ISP context supports handling one composite group per IRQ callback. Use
this capability to reduce number of callbacks per IRQ.

CRs-Fixed: 2977031
Change-Id: I514e3e8f8f4b5998b98f2c2c6131e322231dacad
Signed-off-by: Anand Ravi <ananravi@codeaurora.org>
2021-06-29 09:03:50 -07:00
Ayush Kumar
e8e814eda9 msm: camera: req_mgr: CRM Code refactoring
Due to major changes in CRM code, refactoring CRM
kernel driver code. Fix apply threshold calculation logic.

CRs-Fixed: 2783209
Change-Id: I08ba6c89b0d4f0e982c017bab4226a569327f861
Signed-off-by: Ayush Kumar <ayushkr@codeaurora.org>
2021-06-29 18:18:35 +05:30
Tony Lijo Jose
caa6b2a1a4 msm: camera: sensor: Add tpg driver support
Add new tpg subdev driver. This change exposes the tpg hw as a new
subdev similar to that of a sensor driver.

CRs-Fixed: 2973850
Change-Id: I6fdb4457d8cc829546896f26bdde8765a4258e7c
Signed-off-by: Tony Lijo Jose <tjose@codeaurora.org>
2021-06-29 00:44:14 -07:00
Tony Lijo Jose
96b8731558 msm: camera: isp: Add tpg 3 support
This change enables CSID to receive data from TPG resource 3.

CRs-Fixed: 2973850
Change-Id: Ie7a48370c5b3551e037a47dc677dfcdc6ded101e
Signed-off-by: Tony Lijo Jose <tjose@codeaurora.org>
2021-06-29 00:43:14 -07:00
Gaurav Jindal
52ac0ccc9f msm: camera: isp: Remove TPG code from hw manager
In upcoming targets, TPG will be supported as a separate node.
This commit removes the tpg code from ife/tfe hw manager.

CRs-Fixed: 2973850
Change-Id: I031302756d85e004fc3a07f9864daf2c16dd837b
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2021-06-29 12:30:22 +05:30
Camera Software Integration
c6903209f2 Merge "msm: camera: common: Fix dma_attr_t types" into camera-kernel.lnx.5.0 2021-06-28 17:27:09 -07:00
Camera Software Integration
8a032188a5 Merge "msm: camera: common: memory api for presil hw access" into camera-kernel.lnx.5.0 2021-06-28 17:26:28 -07:00
Camera Software Integration
1e71c72eb7 Merge "msm: camera: common: presil hw access headers" into camera-kernel.lnx.5.0 2021-06-28 17:25:54 -07:00
Jigar Agrawal
a20b1d303e msm: camera: csiphy: Add support for runtime update of csiphy register
Add support to program upto 50 csiphy registers on the fly. The registers
get programmed on the csiphy stream on. Delay in micro seconds can also be
provided for each register write. Use the following commands to use
this functionality:
adb shell "echo Offset0,Val0,usdelay0,..>
  /sys/module/camera/parameters/csiphy_onthego_regs".

CRs-fixed: 2968273
Change-Id: Id15906aa9ab59159d356a76e280408e9a35e0449
Signed-off-by: Jigar Agrawal <jigar@codeaurora.org>
2021-06-28 13:00:38 -07:00
Jigarkumar Zala
484fab1671 msm: camera: csiphy: Enable dynamic clock voting level
CSIPHY hardware is having multiple clock voting level per datarate.
Enabling to calculate the correct function to calculate and apply
to clock vote level per datarate provided by sensor.

CRs-Fixed: 2968149
Change-Id: Ifb1be2d3bce7fff5ff34ea5d62960d40d55c2071
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2021-06-25 18:29:58 -07:00
Savita Patted
9592da1c25 Merge "msm: camera: cpas: Increase cpas max clients, tree nodes" into camera-kernel.lnx.5.0 2021-06-25 16:20:35 -07:00
Savita Patted
c1f9fda184 Merge "msm: camera: cpas: Enable icp QoS setting through camnoc for v780" into camera-kernel.lnx.5.0 2021-06-25 16:20:03 -07:00
Savita Patted
5a1e961891 Merge "msm: camera: cpas: Add cpas support for camera v780 platform" into camera-kernel.lnx.5.0 2021-06-25 16:19:32 -07:00
Savita Patted
a76411e25d Merge "msm: camera: isp: Change epoch line computation" into camera-kernel.lnx.5.0 2021-06-25 16:18:46 -07:00
Savita Patted
e5bfd410d0 Merge "msm: camera: csiphy: Add Support for datarate specific settings" into camera-kernel.lnx.5.0 2021-06-25 16:18:10 -07:00
Savita Patted
04d8edef9b Merge "msm: camera: isp: Update hw mgr if sys cache is not enabled" into camera-kernel.lnx.5.0 2021-06-25 16:17:38 -07:00