When the panel is in dead state, we early return from
the commit. So, the fences wouldn't be signalled till
the next Blank call. Handling this case by signalling
the outstanding fences when panel is in dead state.
Change-Id: I48a5e04707e32de0d1cdccf0592c981e30b618fc
Signed-off-by: Krishna Chaitanya Devarakonda <kdevarak@codeaurora.org>
In existing implementation on commit failure release fence are signaled.
But retire fence is not signaled. Which block the framework from
submitting next commit. And result in UI freez.
Add logic to signal retire fence along with release fence commit fails.
Change-Id: I84774280a110339450a1c5ef50eab68168e9bd20
Signed-off-by: Sachin Bhayare <sachin.bhayare@codeaurora.org>
Serialize wait for pingpong with kickoff when autorefresh
feature is enabled.
Change-Id: Ia51889dd86561e7513b4e7123a9fefb77a26d1ea
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
This reverts commit 9fd1b000d5.
Revert this now since dependent changes are merged.
The change makes tv tuner driver as a loadable kernel module.
Change-Id: I28e3faf91cacaa40e62b0a30402e35ce28688275
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
This patch ensures device resumes successfully after
XO shutdown without any KGSL error.
Change-Id: I9eb8e281bc62793dc7521ba72aaeecf946860851
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
Remove uninitialized variable and return value 0 from
regulator_disable().
Change-Id: I920819fbce14d1c6d5f7afac577002aa25b66a05
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
make this change to avoid the clk warning logs
1. remove the repeated clks
2. change the sequence of clks , make the parent clks before children clks
3. add clock-control for early-camera
Change-Id: I1746cbdce3a7335187433ae993637d2db9cdf58e
Signed-off-by: Chunhuan Zhan <zhanc@codeaurora.org>
In function ufs_qcom_testbus_config, offset variable is
declared but not initialized. Switch case can take the
default case and use the uninitialized offset variable.
This change fixes the uninitialized use of offset.
Change-Id: I772296ef5606bc519dfcd00bfa6995b2d8646b9c
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
1. add set_clk_status user interface;
2. exit delayed tasklet without processing if clk disabled;
3. protect process_halt_irq();
Change-Id: I66c933ac9b9e2dacd4dec20b646ef297cd18920d
Signed-off-by: Andy Sun <bins@codeaurora.org>
Sometimes same irq is received even after clearing irq.
make sure irq status is rest by clearing the irq again.
Change-Id: Ib5355a4b9952fa7f02d1dea69b5fb767928e4b9f
Signed-off-by: Srikanth Uyyala <suyyala@codeaurora.org>
We read pingpong status while handling axi and stats irqs
in tasklet. Due to scheduling delays in tasklet pingpong status is
changing by the time we read. So, read ping pong status in ISR
and forward it to tasklet.
Change-Id: Ib83929cb8e15c28e34ee06275a87b5d6fbfd00e6
Signed-off-by: Srikanth Uyyala <suyyala@codeaurora.org>
After part I authentication, SW DDC is not disabled and because of
this, we observe arbitration issues during part III authentication.
Disable SW DDC before starting part III of HDCP authentication.
Fail part II of authentication with repeater if its device count is zero.
Change-Id: I72f5b1115c094d4a72ae2b324f3903cdb195e5fe
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
Extend HDCP1.4 SRM support for fb based hdmi driver as well.
Change-Id: I3d6597503d95b066d1fcfa71218cdda70965fbd0
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
Extend HDCP2.2 SRM support for fb based hdmi driver as well.
Change-Id: I39bef2a814c2a2404a0a03584f23c58c69c10909
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
Display Port driver never supported YC420 formats.
Also w.r.t to display quality, 4K30 RGB 8bit is
better than 4K60 YC420 8bit.
So, do not include edid modes(VICs) from YC420 Video
Data Block while parsing EDID.
Change-Id: I77f2c45c22beceb7f554a4c063f6e6947dc4ba8a
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
Clear PP features dirty flags only when they are programmed, based on
programming stage, i.e. clear dirty flags of features programmed in
early stage after early stage programming and clear dirty flags of
features programmed in deferred stage after their actual programming
is complete.
Clearing the flags in one go is resulting in missing programming of
features designated to be programmed in early stage, if the dirty flags
are updated in between the stages.
Change-Id: If65a5982254a7421c6f0ec32018361c651964e4e
Signed-off-by: Ch Ganesh Kumar <chganesh@codeaurora.org>
Audio event is wrongly notified during pre_panel_off event.
Modify HDMI Audio event notification sequence so that audio
events are notified as expected.
CRs-Fixed: 2131442
Change-Id: I5fb5d28cb0162f0c4bf97e29556b15d12e1ea8f1
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
Add changes to reset basic_audio_support parameter
before parsing EDID on every new cable connection.
Change-Id: I52fef059830d950d4858d5bee3f76774426e6863
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
Current Display Port driver is incorrectly parsing sink count
register (0x200) of DPCD. Made changes to parse it correctly
as per DP specification.
Change-Id: Ic858485f19f226f7b2d84f74c97170db8bebf822
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
Initialize variables that are passed by reference, so that
they can be used safely afterwards, irrespective of the
called function actions.
Change-Id: Ib52c1cbc621913b21eb9520d305327ff5fd154fe
Signed-off-by: Venkata Prahlad Valluru <vvalluru@codeaurora.org>
Set the error code to be returned in case of failure.
Change-Id: I2cd818b21decb659de74fde1ac5c667d8606420e
Signed-off-by: Venkata Prahlad Valluru <vvalluru@codeaurora.org>
In concurrency test, smmu map failure appears in a low possibility.
This is caused by virtual address conflict. Display driver calls
different smmu map APIs to do map with the same domain, while the
virtual address allocation happens separately, one in dmp-mapping.c,
and another one is in msm_gem_vam.c. This could not gurantee the
virtual addresses by different callers are different in the same
mmu domain, if they are the same, the virtual address will possibily
be mapped twice, hence conflict happens.
The change is to fix this:
1. Remove the map calling for early splash buffer from msm_smmu_map.
2. Introduce one new map API early_splash_map/unmap, dedicated for
memory mapping for early splash usercase.
CRs-Fixed: 2198827
Change-Id: I8e632f1971998a14c362b5bf0ae9a5522a5a1bff
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
Initialize local variable desc being zeroed to fix
compiler uninitialized warning.
Change-Id: I2a109e65bfd13ddc94d4b6e465d07c3a1cc0cd34
Signed-off-by: Maria Yu <aiquny@codeaurora.org>
Initialize variables that are passed by reference, so that
they can be used safely afterwards, irrespective of the
called function actions.
Change-Id: Ib95f3aa3077d6ef7aaaabcfc6c882790b6406793
Signed-off-by: Venkata Prahlad Valluru <vvalluru@codeaurora.org>
Configure all I2C instances of SDM660, MSM8996 and MSM8998 for
SW bit banging based bus recovery mechanism. HW recovery may
not work as expected when HW samples the data line and finds
it low during particular clocking period of the recovery.
Use SW bit banging instead, where SW generate clock pulses and
sniff data line until data line is released by the slave.
Signed-off-by: Shrey Vijay <shreyv@codeaurora.org>
Change-Id: Ia0ed92cd0d88df04a17a295f23970940dab3da03
Add new GPU ID and required initial settings
to support Graphics functionality on SDM636.
Change-Id: If8a801c20c7f60618797ccd440d2d739f6817708
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
Pointer should be checked after returning from function or being
passed from other function. So add checker for this to avoid NULL
pointer dereference.
Change-Id: Ie86f47230b50433e08259ee5f6bbb52bedf749b1
CRs-Fixed: 2202957
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
Local variable in function should be initialized before using it.
Change-Id: I061b10913182ed11b7a8cdb1baab900ac7e10ea6
CRs-Fixed: 2202957
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
Add checker to confirm the pointer is not NULL first, to avoid
NULL pointer dereference happens.
Change-Id: Id9060725037be235303bbc0a82d91d3d2008245c
CRs-Fixed: 2202957
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
Local variable in function should be initialized before using it.
Change-Id: I132033fa650cdacae3c8b2a98b8a593d159fe967
CRs-Fixed: 2202957
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
Add a bracket to fix the device instance for the subsystem_notif_virt
device.
Change-Id: Ib114a6d520aafbbcb0886dcf987d0509af80b636
Signed-off-by: Anant Goel <anantg@codeaurora.org>
If the CLK_SET_RATE_PARENT flag for the mmss_mdss_byte_intf_div_clk
divider is set re-calculation of dividers in DSI byte clock path takes
place which causes both the byte clock and byte interface clock to be
set to the same value.
Change-Id: Ia30c8070ec5c451a12f29e983089a7a2bbe6a8b3
Signed-off-by: Rashi Bindra <rbindra@codeaurora.org>
The SD card specification allows cards to error out a SWITCH command
where the requested function in a group is not supported. The spec
provides for a set of capabilities which indicate which functions are
supported.
In the case of the power limit, requesting an unsupported power level
via the SWITCH command fails, resulting in the power level remaining at
the power-on default of 0.72W, even though the host and card may support
higher powers levels.
This has been seen with SanDisk 8GB cards, which support the default
0.72W and 1.44W (200mA and 400mA) in combination with an iMX6 host,
supporting up to 2.88W (800mA). This currently causes us to try to set
a power limit function value of '3' (2.88W) which the card errors out
on, and thereby causes the power level to remain at 0.72W rather than
the desired 1.44W.
Arrange to limit the selected current limit by the capabilities reported
by the card to avoid the SWITCH command failing. Select the highest
current limit that the host and card combination support.
Change-Id: I7fbd035cdc606946e997fa4671ec5683acd3ed1b
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Fixes: a39ca6ae0a ("mmc: core: Simplify and fix
for SD switch processing")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Git-commit: d9812780a020bcec44565b5950b2a8b31afb5545
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
Signed-off-by: Pradeep P V K <ppvk@codeaurora.org>