Presently we read a length of 80 character to dump subsystem
crash reason in case of err fatal on subsystem. Making it 130
character to dump additional info provided by subsystem.
CRs-Fixed: 1083000
Change-Id: Icaf4c27862984148c7125332ef7531b2a61f4ea2
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
This patch addresses the scheduling conflicts of
control channel removal work by listening
to peripheral events.
CRs-Fixed: 1081265
Change-Id: Ib9f2448e564c4800535bd80d13c9bda5cc283c3c
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
In certain cases, an RCG might be prone to being enabled even
though the overlying software thinks that it disabled the RCG.
In order to avoid letting the RCG go into an invalid state, support
parking it at a safe frequency during clk_disable() and deferring
all the RCG configuration updates to be done during clk_enable(),
if a scaling request comes in whilst the clock is disabled.
Change-Id: I55f1d1d346182a2b480127c57d6659fc9a63331b
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
Add support for P010 ubwc format in media buffer size
calculation API.
Change-Id: I3e99bb37ff3353b77dc1aa892ca017a7af28ec00
Signed-off-by: Rohit Kulkarni <rkulkarn@codeaurora.org>
Update the code name from msmtriton/apqtriton to sdm630/sda630.
As part of this, update the filename containing "triton" and
files content containing "triton".
Change-Id: Ia558be75041e41e83d304d5fb4091c2a098e87c0
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Update the code name from msmfalcon/apqfalcon to sdm660/sda660.
As part of this, update the filename containing "falcon" and
files content containing "falcon".
Change-Id: Iec85862251b9e1b4dcc8bdce8b214ce87c0049bc
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
During reset sequence it is seen that device is generating an
interrupt eventhough interrupts are masked at device level.
Add workaround to disable the interrupts from host side during
reset and clear any pending interrupts before re-enabling
the interrupt.
CRs-Fixed: 1105834
Change-Id: Iea5b8a047908ed722a03c7838cd373718828bcc4
Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
Allow to read debug regs set by SPSS kernel or SPSS app.
This is a very basic and minimal debug info.
Change-Id: Id27886390caab5ff308a8423f3e65eb93fd1175d
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
Currently, cwb buffers are allocated and mapped during
commit but not unmapped, leaving the kernel refcounts
intact which would eventually cause memory issues. Fix it
by adding the buffer to a cleanup queue after mapping and
unmap/free the buffer in the work queue after cwb intr done.
Change-Id: I2bb41a4fadc58ecedb1fafacf6821ce6376b1b4d
Signed-off-by: Prabhanjan Kandula <pkandula@codeaurora.org>
Print the command instead of the printing ioctl ptr to avoid
information disclosure
CRs-Fixed: 1105663
Change-Id: I862a0a502c60519a864cfe12aacf7840ae094c1c
Signed-off-by: Krishnankutty Kolathappilly <kkolatha@codeaurora.org>
On 32 bit architecture xpu violations are happening because of mappings
in PK map regions. Flush the PKMAP and fixmap mappings to make sure that
there are no duplicate mappings for any pil mdt region. On 64 bit
architecture these functions are empty.
Change-Id: Ie69fcf9044a89328e91ff8969044835f2a487a10
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
Suspend is set on Q6 pipes in PRE_SHUTDOWN phase of SSR. It was seen that
sometimes the suspend is being removed and is no longer present during the
POST_SHUTDOWN phase. Therefore, set suspend in POST_SHUTDOWN phase again.
Change-Id: Iebbef315a838b40eec939f368e63c4329723d906
CRs-Fixed: 1094908
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Currently the XPU lock on memory allocated for memshare clients may not be
unlocked by MBA during SUBSYS_RAMDUMP_NOTIFICATION event and can result in
XPU violation while collecting ramdump.
This patch collects the ramdump on listening to SUBSYS_BEFORE_POWERUP
event.
CRs-Fixed: 1099029
Change-Id: I51732d5adc60ad106a44ba554818c18947e2e803
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
This patch adds syfs parameter which controls clearing
of the peripheral masks upon USB disconnect and stopping
ODL.
This patch takes proper care for handling buffers
while clearing masks.
CRs-Fixed: 1081142
Change-Id: Ibe070661618258513d683bfec13ff10f23bee5d6
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
Option added not to bypass SMMU and use
fastmap DMA APIs for 11ad use-cases.
SMMU address range is changed to have the
max possible.
Change-Id: I073ab59cc4ef1b71545a9e77b76d94f09d659aac
CRs-Fixed: 1105323
Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
The spi_qsd driver allows peeking/poking registers via debugfs.
Currently a static variable is used as the user data to get to the spi
controller data structure. Unfortunately this means that the last device
to probe is always obtained.
Fix this to use a member of the spi controller data structure instead.
Change-Id: I711354941b4168f3f6ffe2d29185597bdad4da89
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
This patch prevents the arise of dangling pointer after
kfree operation on pointer.
CRs-Fixed: 1083444
Change-Id: Ie2702223379b9c77ce4fe30376d446c63223dbc8
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
Specify the number of strings and full scale current in WLED property
according to the hardware design of QRD8998 SKUK.
CRs-Fixed: 1104977
Change-Id: I575aecb616a56974ec2680e5888190adb40c969a
Signed-off-by: cyizhao <cyizhao@codeaurora.org>
QRD SKUK and VR1 has fixed battery design and the batteries have defect
of the NTC design which is very easy to hit soft hot threshold when
charging at 1C while the battery cell is actually stay much cooler.
Disable soft hot jeita threshold according to the battery vendor's and
hardware team's suggestion to make sure the battery could sustain at 1C
charging current longer.
CRs-Fixed: 1104853
Change-Id: If624bf14e8588e50fa6a97d29b528d7d02ef64dc
Signed-off-by: cyizhao <cyizhao@codeaurora.org>
The code in wmi_call uses the wil->wmi_call completion
structure to wait for a reply.
In some scenarios, complete was called twice on the
completion structure. This happened mainly with a disconnect
event which can arrive both unsolicited and as a reply to
a disconnect request. In this case the completion structure
was left marked as "done" and the next wmi_call returned
immediately with a corrupted reply buffer. This caused
unexpected results including crashes.
Fix this by adding the missing call to reinit_completion.
CRs-Fixed: 1105246
Change-Id: I4de26881620dde4230d0a907bd0fd39bebe2bb3d
Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
OSM cpu clock node is required by cpufreq client to be able to scale cpu
frequency. Add tables of various speed bins supported and keep the status
of the clock node disabled for now.
Change-Id: I0aca021e51ef9ae59dedce855430a63937eb98c6
Signed-off-by: Taniya Das <tdas@codeaurora.org>
This change enables vdd and vdd-io power supply for sdhc2
in msm8998 v2.1 interposer msmfalcon QRD dts file.
CRs-Fixed: 1099484
Change-Id: I58c30a50c7834e7897daa2849b9885b3e797cf07
Signed-off-by: Liangliang Lu <luliang@codeaurora.org>
Some clocks are critical for system booting and should
not be gated until a driver that knows best claims
those clocks. Add CLK_ENABLE_HAND_OFF flag for system
critical clocks.
Also add FORCE_ENABLE_RCGR flag to force enable/disable
RCG and fix camss_jpeg0 voter clock.
Change-Id: I482bbf480d4129cdc6a1dfe08f37a1ec56c3131e
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
get_ice_device_from_storage_type can return error pointer which is
not NULL in case of error, this was not checked, changes fixes this.
Change-Id: I7dd8a068454a7bd250189ff9467c685af449f81b
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
MSM8996 requires the voter & voter branch clocks to be
available for clients to be able to enable/disable and
set rate on these clocks.
Also add support for keeping active set vote on mmssnoc
and pnoc voter clocks.
Change-Id: Ie596ddee60aac3e6fc996f9a3e8dc988b0f4aa88
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
Burst length is only a 2 bit register, which can take max value
of 3 which corresponds to burst length of 16
commit ec486b025d ("msm: camera: isp: Update burst length for msmfalcon")
Change-Id: I37d5ef9d9ecb510a8af04db986dd341fbadaba04
Signed-off-by: Srikanth Uyyala <suyyala@codeaurora.org>
Global Clock Controller(GCC) needs to vote for volatge level on
rail for the clock frequencies, so add voltage voting in GCC.
Also clean up clock flags and parent info for few clocks.
Change-Id: Ib4cc69afb32a7654bbdd98f2efff901729c4d3da
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>