Stats buffer done was not coming after device reset because the
sequence for turning on stats was not right. Follow the same
sequence which is followed on start stream for stats during
recovery. Also, for vfe 46 version fix the write master offset.
CRs-Fixed: 1089758
Change-Id: I47849097022817dc411c31e3aadf037f6cae9a72
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
If user requests the camif to be stopped immediately then do so.
Only user driver will know if input has already streamed off in
which case camif shopuld be stopped immediately as per the
user driver request.
CRs-Fixed: 1089754
Change-Id: I47df74cb72e41b3c00fcebaab9d709818820ed47
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
If buffer is not available during stream start then do not treat
that as an error.
CRs-Fixed: 1087368
Change-Id: I8f56bbf621313676282e06449431d1961d4819eb
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
Rdi and pix interfaces can operate on different camera and they
can start/stop independently. If once camera uses entire ub then
another camera will not get any ub resulting in overflow. Fix
this problem by reserving space for rdi interface in ub.
CRs-Fixed: 1087367
Change-Id: I66f03cec28d7e3ecda42c06f01eb18fd869c913b
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
Add ioctl to swicth dual camera mode from sync to
unsync mode and vise versa. Also, change the logic
of frame id sync to support unsync mode.
CRs-Fixed: 1070296
Change-Id: I58e27c9ea66f1788d640bf523e7c6569cde162f7
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
Signed-off-by: Junzhe Zou <jnzhezou@codeaurora.org>
The stats active counter was not being incremented, fix it.
CRs-Fixed: 1084238
Change-Id: I07b3c000836955eab9cf2273ce535c4317b3f166
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
In case of dual vfe overflow recovery was failing because
the dual streams were not reset on both vfe. Fix the issue
with this change.
CRs-Fxied: 1076758
Change-Id: Iee81103263d95d93947a3967b1a3dbb568f76cf1
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
Check MMU type for below operations to make NOMMU functional:
- adreno_iommu_set_pt_ctx() tries to set pagetable during context
switch without really checking on type of MMU.
- skip tracking of gpuaddr in case of NoMMU during
kgsl_mem_entry_track_gpuaddr().
- In case of nommu the function kgsl_allocate_global() should
always allocate contiguous memory from CMA.
Change-Id: I8cb59e1475376167c7a8a60c54df0939597f5083
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
Add changes to get the cal_block on the basis of meta key
and set the license in core with the obtained cal_block
CRs-Fixed: 1093003
Change-Id: I7c931ca0ad4eed4da9252a05ee426d2ef4bd10b1
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
The clients of each GDSC would take care of any memory requirement of the
associated clocks, so remove them from GDSC.
Change-Id: Ic2df5ba83d1e7166aadc954aa137ec65ffa79133
Signed-off-by: Taniya Das <tdas@codeaurora.org>
For clients using msm-clk-provider.h and msm-clk.h
header files, no override is expected for COMMON_CLK
framework so fixing the same by conditionally compiling
the clock header files.
Change-Id: I5f7393f3f486a884bfa881a93c01623c3cd2664d
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Patch adds RGB565, RGBA 10-bit and P010 10-bit ubwc
compressed formats support to media API planes calculation.
Also fix in align macro when alignment is not a power of 2.
CRs-Fixed: 1096408
Change-Id: I4afcf7d5b22395eeda2e77131bd45592abaeb561
Signed-off-by: abeykun <abeykun@codeaurora.org>
Signed-off-by: Umesh Pandey <umeshp@codeaurora.org>
Allow subsys_generic_handler() to check for err_ready interrupt before
returning, so that subsystem_powerup() can complete successfully during
ssr.
CRs-Fixed: 1094829
Change-Id: I3e91bd2a2189508968f4c5cc62933a13986c6afa
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
Remove HLOS and TZ communication mechanism which is
using SCM APIs. New hardware supports programming in
HLOS itself. Also, communication is now handled by
qseecom APIs. This makes SCM code obsolete and redundant.
Remove any such code which is not being used in current
hardware.
Change-Id: I9b120b88f92be517d1734697625038b28b32feb1
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
As per the recent battery characterization, update the profile
data for ascent battery used with pmi8998 FG.
Change-Id: I405cb68749f63f6f779e4f3c2b47065b02ec07de
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
On 8998 v2 there is a hard requirement that "clk_set_rate"
must be set before "clk_enable". In the case of vmem, bus driver
can do this only if the order of vmem slave & vmem cfg bw vote
is enforced. These usecases will be used for ensuring bw voting order.
Change-Id: Ic7d17b7aa33f394db83dfa9cec440c9d8951c2c0
CRs-Fixed: 1091417
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
At present, sched_set_group_id() dynamically allocates structure for
colocation group to assign the given task to the group. However
this can cause deadlock as memory allocator can wakeup a task which
also tries to acquire related_thread_group_lock.
Avoid such deadlock by pre-allocating colocation structures. This
limits maximum colocation groups to static number but it's fine as it's
never expected to be a lot.
Change-Id: Ifc32ab4ead63c382ae390358ed86f7cc5b6eb2dc
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Add support of setting WLAN MAC address from platform driver.
The MAC address will be passed to WLAN driver when WLAN is
turned on.
CRs-Fixed: 1096286
Change-Id: I249222b419dd130241cbc84f4d41709b408941e0
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
During multiple partial update, each pipe is checked against
the two ROIs and the pipe's src and dst rect are cropped and
adjusted with respect to first_roi or second_roi, based on its
position. If the pipe is used with the same configs in the next
kickoff, restore the pipe's actual src/dst before continuing with
the kickoff.
Change-Id: I1db579626d96302e07fef1a755fb39944d3eaca8
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
Add TX app type support in compress driver to support different
post processing modules per COPP in the TX path
CRs-fixed: 1072067
Change-Id: I8e84577b5aff5e932632c4612a88808615d764ae
Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
Add timestamp support for compress driver.
Modify ASM driver to read the buffer from predefined offset.
CRs-fixed: 1072067
Change-Id: I1c46befc223285495b3c0650e6c3eaae81f58771
Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
Add cpu cache nodes to represent the cache hierarchy and
to specify the dump size of each cache.
While at it also add the cache dump nodes which will enable
reserving the memory for cache dumps.
Change-Id: I06eead417b77c74a6e12e6f6b5251c0c7e62c96b
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
During composition switch, android driver stops data transfers first
and removes configuration before disabling the pullup. With this sequence
there is a possibility for a race where usb_remove_config is in progress
during which pullup is active and sending the setup request for strings
with zero configuration value. Hence fix the issue by adding spinlock
protection for get_sring descriptor.
Change-Id: I13c601f0e48d847b322a2761cd52268963cacf01
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
These are the panel settings for s6e3ha3 amoled panel.
As QVR8998 will use this panel for display, so add a new file for it.
Snapshot of hw-panel-samsung-s6e3ha3x01-5p7-1440p-dual0-cmd.dtsi as of
a805a3e1e791ec0fb931d1f44bd70f3307532ec5 to enable display for QVR8998.
Rename the file to dsi-panel-s6e3ha3-amoled-dualmipi-wqhd-cmd.dtsi and
modify these panel settings in this file for QVR8998 display.
Squash commit messages:
commit a805a3e1e791 ("arm64/dts: angler: Don't blank screen when leaving low persistence mode")
commit 0e4484ea2ceb ("dts: Reduce low-persistence brightness to 50%")
commit 651c6dd35a1f ("dts: msm: Sets the low-persist pulse to be at cycle start")
commit 2fc4b8aa55dd ("Add ioctl for low persistence display mode to MDSS driver.")
commit 1b0565b24e19 ("Revert "ARM64: dts: angler: Enable AMOLED ACL function."")
commit 3200385cb224 ("ARM64: dts: angler: Reduce delay time in Amoled initial code to save the screen on time.")
commit de8be2535af7 ("ARM64: dts: angler: Enable qcom,dynamic-dsi-timing-enable for amoled command mode panel")
commit 0cce00b5a108 ("Angler: LCD: enable EOT packet transmission")
commit 16cd03800bba ("angler: LCD: enable partial update in dtsi")
commit f1f63dfc50c9 ("ARM64: dts: angler: Enable AMOLED ACL function.")
commit 900833cdd0c9 ("angler: LCD: send display on commands one time")
commit 4afd0a7929f1 ("anlger: LCD: enable lcd esd effect recovery function")
commit 7ae89bce8295 ("angler: LCD: amend LCD physical width and height dimension")
commit 5eff7f8c1c41 ("angler: LCD: fix tearing at the top part of the screen")
commit cb8d1be44bcc ("angler: fix flickers when low battery finally")
commit 41e4849b13c7 ("angler-kernel: fix bugs of dts before angler-v4")
commit 1bd832f295f5 ("ARM64: dts: angler: add dts configuration for v4 device.")
Git-commit: a805a3e1e791ec0fb931d1f44bd70f3307532ec5
Git-repo: https://source.codeaurora.org/quic/la/kernel/msm-3.10/
Change-Id: I91a6cfcc3b78159cea505e388749e1610dadeae6
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
Currently we are using the argument passed to
the function to fill the array values as is
without checking for the sanity. This commit
will add a sanity check on function argument
to avoid array index out of bound access.
Change-Id: I5f23f036441a67a3f3828cc432ea57c1c06bc8ae
CRs-Fixed: 1096134
Signed-off-by: Deepak Kushwah <dkushwah@codeaurora.org>
Add APIs to allocate and instanciate f_rmnet function
driver using configFS.
Change-Id: Iad76a7e317dd9caf846dbe870baee63a8c5ce6c1
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
size_t is an unsigned integer. Change format specifier
to resolve compilation issues for 32 bit.
Change-Id: I4309335c7ad0c695081d446a3f90e84edbcf1e32
CRs-Fixed: 1096066
Signed-off-by: Deepak Kushwah <dkushwah@codeaurora.org>
Upon any CQ error, the driver tries to halt the CQE first and
if it fails to halt, then CQE is disabled. The error handling
work function mmc_blk_cmdq_err() also tries to HALT the CQE
at couple of places and takes some action based on the HALT
success/error status. But since CQE is disabled, we should not
treat any errors of CQE halt/unhalt as critical and in fact,
we should not even attempt to halt/unhalt.
Change-Id: I6bef9f2c033f78ad0959954acc5d7627e8a92139
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>