Commit grafiek

21 Commits

Auteur SHA1 Bericht Datum
Karthik Jayakumar
e3ac8bfd1b msm: camera: cpas: Disable ICP QoS registers for kalama
Disable cpas writing to ICP QoS registers, since they are in
ICP clock domain, which has not been enabled by the time cpas
probes to configure the registers.

CRs-Fixed: 3048249
Change-Id: Iaada5194a06408ecee69cb724eb94c6ffb7bfb95
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-11-02 15:24:29 -07:00
Karthik Anantha Ram
708d55f188 msm: camera: cpas: Invoke llcc putd on deinit soc resources
Invoke llcc_slice_putd during soc deinit.

CRs-Fixed: 2841729
Change-Id: If9479a60cbf917c0701f10bf36e6856978e8100b
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-08-02 16:59:17 -07:00
Pavan Kumar Chilamkurthi
88987924f2 msm: camera: cpas: Add support for SmartQoS feature
This feature dynamically calculates priority lut low
values for real time write NIUs whenever there is a
change in real time bw vote on any of these NIUs and
write the registers.

CRs-Fixed: 2976535
Change-Id: I5a1433436da87915b20584d3002648699c985998
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
2021-07-08 00:52:52 -07:00
Karthik Anantha Ram
c369310c4a msm: camera: isp: Add support for SFE sys cache config
Add support for using system cache for SFE WMs and RMs
in case of sHDR use-cases for power saving. Also add
debugfs capability to control this feature.

CRs-Fixed: 2841729
Change-Id: Ic4dad50e8c396705b33bb0bc8330d25e51ca79a2
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
2021-04-30 12:14:24 -07:00
Mukund Madhusudan Atre
fc8edb0fa1 msm: camera: cpas: Fix camnoc bw calculation flag parsing
The camnoc max needed flag is stored for each tree node and
parsed once per level. Fix parsing of camnoc max needed flag.
Improve cpas logging. Part of this change fixes issue introduced
in: commit d099238a67 ("msm: camera: cpas: Update bus node
level parsing logic").

CRs-Fixed: 2841729
Change-Id: I55ff2265ee1491535f3e39e16920129e8dffc15a
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-04-12 11:42:47 -07:00
Mukund Madhusudan Atre
d099238a67 msm: camera: cpas: Update bus node level parsing logic
Currently, the order in which we read the camera bus nodes
is dependent of the order camera device tree is laid out,
which causes issues if the arragement is changed. Update DT
parsing logic to read node levels independent of arrangement.

CRs-Fixed: 2841729
Change-Id: I73f2aa27a71d6521fe4e1fc9af95293411bd75c2
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-03-23 12:36:03 -07:00
Mukund Madhusudan Atre
b75713d051 msm: camera: cpas: Fix CPAS DT parsing probe issue
While searchig node by name, it is walking outside of
parent node looking for the given node name. Call
of_get_child_by_name instead, so that it looks within the
parent node.

CRs-Fixed: 2841729
Change-Id: I7d358c8990fc931c908675af2be7852c38bff82c
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2021-02-08 17:25:16 -08:00
Haritha Chintalapati
9d4ea638ef Merge "msm: camera: cpas: Update cpas dt parsing" into camera-kernel.lnx.5.0 2021-01-25 14:13:35 -08:00
Karthik Jayakumar
8b54992c6f msm: camera: cpas: Update cpas dt parsing
cpas dt parser updates to reduce maximum acceptable node ids.

CRs-Fixed: 2835738
Change-Id: I8e88a0cba0a1bc9367cbfd1ae81f4ac1e9f916a8
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-01-20 10:48:53 -08:00
Karthik Jayakumar
c69ede622c msm: camera: common: Migrate dt-bindings to techpack
To support external module compilation on Waipio, camera dt-bindings header
files need to be moved out of kernel SI and into the camera-kernel vendor SI.
This is to maintain seperation between the two SI's.

CRs-Fixed: 2835738
Change-Id: I8d63b48b6d406ed7b4a07f3bd4f1721ecd2dd0b0
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
2021-01-11 10:11:37 -08:00
Tejas Prajapati
4574450a12 msm: camera: common: Merge camera-kernel.3.1 changes in camera-kernel.4.0
msm: camera: cdm: Fix dangling pointer issue
msm: camera: cdm: change work record to atomic variable
msm: camera: utils: Adding device type to track device handles
msm: camera: tfe: Reduce stack footprint during bw vote
msm: camera: req_mgr: Thread switch delay detection mechanisms
msm: camera: cdm: Avoid submitting BL if FIFO is full
msm: camera: tfe: check cdm hang in the tfe config timeout
msm: camera: req_mgr: Delay detection mechanism
msm: camera: cdm: Debug info in case of cdm page fault
msm: camera: isp: Max context reduction for TFE in isp driver
msm: camera: ope: Maintain current clock value during acquire
msm: camera: req_mgr: Limit CAM_ERR log in case of no empty task
msm: camera: cdm: Decrement write-count only after Bl commit
msm: camera: isp: Added CSID recovery mechanism.

CRs-Fixed: 2792394
Change-Id: I1c7a903ae15b572acf3f6318cda7394cb6549c8d
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
2020-10-13 12:08:01 +05:30
Wyes Karny
c37f48cfc5 msm: camera: cpas: Add fuse MP limit support
If MP limit fuse feature is enabled in DTSI then
read the fuse register to get information about maximum
allowed resolution. According to that restrict CSID acquire.
Also if only DTSI based max_width is enabled then restrict acquire
with maximum allowed width.

CRs-Fixed: 2785460
Depends-on: 3349044
Change-Id: If861289aebe2921183276780a086dfa1b1d5f372
Signed-off-by: Wyes Karny <wkarny@codeaurora.org>
2020-09-30 23:27:34 -07:00
Pavan Kumar Chilamkurthi
f4ec43b748 msm: camera: cpas: Add more debug information in cpas dump
Enhance cpas state dump to get more information about
bandwidth and clock status. This additional state dump
can be enabled using debugfs.

adb shell "echo 1 > /sys/kernel/debug/camera_cpas/full_state_dump"

Traverse through all bw tree nodes and print info in each node.
Print current clk frequencies of all clocks that cpas enables.
Read rpmh bcm status registers to understand mmnoc clk freq.
Add cpas monitor to save important info whenever clients
notify with an event. This monitor info is printed in cpas
state dump.

CRs-Fixed: 2754299
Change-Id: Ib9007091f7e34127f1ca92498e2537b2a06887cb
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
2020-08-25 02:29:26 -07:00
Vikram Sharma
55944b0201 msm: camera: cpas: read and pass fuse information to user space
This change extract the fuse info from DTSI and reads the fuse
value then communicate the same to user space using query_cpas_v2
ioctl.

CRs-Fixed: 2749665
Change-Id: Ie161dc58a7eab3e7b74a5c406ab696af0e7b546e
Signed-off-by: Vikram Sharma <vikramsa@codeaurora.org>
2020-08-17 09:50:13 +05:30
Mukund Madhusudan Atre
3009b33966 msm: camera: cpas: Add missing axi port name info
During apply vote axi port name is coming as null. Add
missing axi port name info in cpas layer also for more
descriptive log during apply.

CRs-Fixed: 2584631
Change-Id: Ibf99b542101a39c415157797e36b5605962873cb
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2020-03-18 17:57:07 -07:00
Gaurav Jindal
1ed310412a msm: camera: cpas: Add support for camnoc based voting
For some targets, it is needed to vote for camnoc clock
as there is no CAMNOC AXI clock source in camera domain.
Voting is done with the bus drivers and it calcultates
the clock rate.
This change adds support for camnoc based voting.

CRs-Fixed: 2571273
Change-Id: I38a4fa8d40892b6dfe7e925b6368eb259132615d
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
2020-02-05 14:24:01 -08:00
Mukund Madhusudan Atre
ebbfb4d5db msm: camera: cpas: Fix parsing of static bw values for ICC
The static values for AHB bw do not exceed u32, and using u64
parsing function to read it requires unnecessary device tree
changes. Changing parsing function for bw values from 64-bit
to 32-bit version.

CRs-Fixed: 2584631
Change-Id: Ie7c685fd40a0ee390f997fbe6cf3610c2209e3f1
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2019-12-16 11:49:59 -08:00
Jigarkumar Zala
8a40a542fd msm: camera: common: Add support for icc and switching bus scaling
Add support for disabling bus scaling by moving bus driver
references from cpas to cam utils. The references can be
switched based on compile time flags in defconfig. Also, add
interconnect support which has bw voting based on source and
destination bus IDs.

CRs-Fixed: 2525881
Change-Id: I2a78523c0cad41503fe32aeb7bf4c794a26b16b6
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-12-04 13:31:29 -08:00
Jigarkumar Zala
f458d1d231 msm: camera: isp: Add support for QCFA CSID binning
Add support to configure CSID binning for QCFA.

Change-Id: I9e2673d89f521a4b4fddc41ad1217ffe229d8b01
Signed-off-by: Tejas Prajapati <tpraja@codeaurora.org>
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-08-06 12:21:54 -07:00
Mukund Madhusudan Atre
396a4cc576 msm: camera: Add LCR in axi bw vote and checks for memory free
Adding LCR resource id in isp bw voting for axi bw voting v1 path
and v2 path. Also, adding checks for unwanted memory free during
cpas probe.

Change-Id: Ib3dca34727b640326893fb227b160a42dab457fc
Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
2019-07-09 10:33:26 -07:00
Jigarkumar Zala
05349feaa2 Camera: Bring over camera driver changes
Bring over camera driver changes as of msm-4.19
commit  5a5551a7 (Merge "msm: camera: reqmgr: Fix CRM
shift one req issue").

Change-Id: Ic0c2b2d74d1b3470c1c51d98228e312fb13c501a
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
2019-07-08 10:24:55 -07:00