This change adds device tree property to select the display smmu mapping
range based on the HW revision. If property present, display will select
the full range 4GB, whereas if property not present, mapping will be
limited to the upper 2GB space only.
Change-Id: I3c8173e56a97ab16fcad47b9e706f69f8b45e2ce
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
In case of aux read/write failures during hdcp message exchange
between source and sink, return with error so that hdcp state
machine can take corrective action.
CRs-Fixed: 2292768
Change-Id: I5df7a8d77796784b48c09436004aa7ec93a51283
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Currently TE/Vsync source information is provided by SDE driver.
As TE comes from panel, it should be provided by the panel to
avoid any mismatch.
CRs-Fixed: 2254681
Change-Id: Ib906cd85cfa954cec211b4cc36fb6f524a78af02
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
PM_suspend/resume functionality needs atomic state to be saved during
suspend and needs to be reapplied at resume time. But the state saved
during suspend is partially invalid, so we need to fix it before commit.
Use helper function fom the framework to take care of this.
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
Change-Id: I83471c95114c5852d252c866fc4c21aaf4044893
Add checks to fail secure-camera/secure-ui updates on
other displays. Fail updates on primary with
secure-camera/secure-ui layers when other display
session is in-progress. This would avoid all the
concurrency during secure updates.
Change-Id: I7cba4d41e3a0c719e18e27689e48d58c16336fa9
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
There is a potential memory leak in ESD debugfs implementation,
in case if panel ESD trigger fails. This change fixes the same.
Change-Id: I6a136aad71aa5561709d539afc13d6591bc50d1f
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
while crtc_commit is in progress last_close can be triggered
which accquires mode config locks, hence avoid using lock while
dumping the fence status on connector when lock is already taken.
Change-Id: I4e2032a65b3483dd276a2c82f339016fc2f3a93f
Signed-off-by: Kalyan Thota <kalyant@codeaurora.org>
Signed-off-by: Shubhashree Dhar <dhar@codeaurora.org>
When continuous splash screen feature is enabled, the display panel
is left on from the bootloader. As part of the transition to kernel,
the backlight level also needs to be handed off. Otherwise, it is
possible that the kernel can inadvertently set the backlight level
to zero and result in what appears like a black screen during
the transition from splash screen to boot animation. Add this support to
read the current backlight level for WLED backlight type and set it
during handoff. For other backlight types, set it to a default
value.
CRs-Fixed: 2248169
Change-Id: Ic003a1432eefbf8b9a34457440f995bbe29f5c9b
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
In case sink issues a link failure or re-authentication request,
tear down the session and re-authenticate to avoid going into
dormant state.
CRs-Fixed: 2292768
Change-Id: I2400188d55ddebcf4dc628412d5832290cfb82c8
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
During secure transition, failure in _sde_plane_set_scanout at
atomic commit stage can lead to unsecure buffer address being
programmed to secure pipe and lead to stage 2 smmu faults.
These failure cases are taken care by inducing solid fill color
on such planes.
Change-Id: I3ba19b040b5a71b7d7f3629de650037f6027b656
Signed-off-by: Raviteja Tamatam <travitej@codeaurora.org>
Fix 32 bit compilation issues in display DRM driver.
1) Fix issues of casting integer to pointer of incompatible type.
(Used uintptr_t and u64_to_userptr)
2) Fix stack frame overflow in DP driver.
(Reduce size of variables allocated on stack)
3) Fix Incorrect type used for printing size_t and unsigned long
4) Fix issues with mult_frac and roundup macro due to u64 division.
5) Rework histogram data in PP driver to fix stack frame overflow
Change-Id: Id28f8025f0d2ac49ef3ce3f4a9ba11dff03da0ea
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
Signed-off-by: Ch Ganesh Kumar <chganesh@codeaurora.org>
Signed-off-by: Shubhashree Dhar <dhar@codeaurora.org>
Print command requested for transfer to panel from
debugfs node.
Change-Id: I7f33d7554ebd725a5e735245116c4028ef551aa5
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
* commit '6f808a5':
Revert "ARM: dts: msm: enable dma-coherent attribute for UFS on SM8150"
ARM: dts: msm: Reduce cycles between ESR pulses on SM8150 MTP
power: qpnp-fg-gen4: Reduce ESR fast calibration time to 50s
net: core: neighbour: Change the print format for addresses
defconfig: sm6150: Enable clock controller drivers for SM6150
ARM: dts: msm: Add icnss node on SM6150
ARM: dts: msm: Update regulator handles for VDD_CX/VDD_MX for SM6150
ARM: dts: msm: Update the clock_dispcc node on SM6150
clk: qcom: Add display clock driver for SM6150
ARM: dts: msm: Update the clock_camcc node on SM6150
ARM: dts: msm: Add dtsi entries of USB for SM6150
power: qpnp-qg: Add handling for SYS_SOC
clk: qcom: camcc: Add support for 12MHz for mclk
msm: vidc: skip sending old resolution buffers
icnss: print return value for modem_shutdown_msg
ARM: dts: msm: enable IP HW CH by default and disable for sm8150-sdx50
soc: eud: Fix event handling for input suspend/unsuspend
msm: kgsl: Add support for PDC register subsections
net: cnss2: Add snapshot of CNSS2 driver
power: smb1355: Fix multiple I2C addr issue
phy: qcom-ufs: Update UFS PHY calibration sequence
ARM: dts: msm: limit number of fastrpc sessions on SLPI for 8150
sched/fair: fix issue with max_capacity
ARM: dts: msm: reconfigure sdx50 memory access based on AC policy
msm: adsprpc: disable bind/unbind of fastrpc driver from userspace
rpmsg: glink: spi: Fix use after free of channel refcount
rpmsg: glink: spi: Set tail pointer to 0 at end of FIFO
mhi: controller: qcom: add support for sdxprairie device
mhi: controller: qcom: add sysfs control for mhi power
wil6210: fix RX buffers release and unmap
wil6210: prevent usage of tx ring 0 for eDMA
wil6210: allocate rx reorder buffer only if rx reorder is enabled
ARM: dts: msm: Associate address with clock controller nodes for SM6150
clk: qcom: clk-cpu-qcs405: Add support for vdd_hf_pll regulator
clk: qcom: Kconfig: Add support to select GDSC flag for SM6150
ARM: dts: msm: Increase ADSP ion heap by 4 MB for qcs405
soc: qcom: dccv2: fix the Linked_List default value
ARM: dts: msm: enable ETR SG as default and DCC with LL1 on qcs405
soc: qcom: rpm-smd-debug: Fix potential memory leaks
ARM: dts: msm: add bluetooth chip device node for sa8155
power: qpnp-qg: Update GOOD_OCV after clearing the old data
power: qpnp-fg-gen4: Fix esr_delta bounding error
sdcardfs: Fix the format prints in sdcardfs
ARM: dts: update PCIe PHY base address for sm8150 v2
net: qrtr: Add non blocking option for tx_resume
net: qrtr: Send BYE message for all nodes on ept
ARM: dts: msm: Add GPU configuration for sm8150-v2
power: smb5: Set OTG mode current limit
ARM: dts: msm: Add labels for TDM nodes
pinctrl: qcom: Use correct offset for UFS_RESET_CTL register
soc: qcom: use spinlock with irq save in CDSPRM module
qcs405_defconfig: Enable the tzlog driver.
defconfig: qcs405: Enable Qseecom driver
ARM: dts: msm: Change DCC cur list for sm8150
clk: qcom: clk-cpu-osm: Add OSM clock driver support for SM6150
input: synaptics_dsx: Propagating security fixes from msm-4.9
ARM: dts: qcom: Add sdhc1/sdhc2 for sm6150 mtp/cdp
clk: qcom: Add camera clock driver for SM6150
ARM: dts: msm: Disable vibrator overdrive for pm6150
ARM: dts: msm: Add cdsp pil node for sdmmagpie
mhi: controller: qcom: add debug mode parameter for debug control
ARM: dts: msm: add mhi host support for sm8150 PCIe RC0
cnss_prealloc: Remove excessive warnings in cnss_prealloc driver
ARM: dts: msm: Move audio overlay device tree file on SM8150 target
rmnet: fix tx rmnet stats to work with UL aggregation
Revert "sched/sysctl: check for min/max values for sched_{up,down}_migrate knobs"
icnss: Change QMI timeout to 10sec
power: qpnp-qg: Update VBAT_LOW fifo_length handling
sound: usb: use er_mapped flag to indicate event ring mapped or not
lowmemorykiller: fix cma accounting
clk: qcom: Remove write update to EMAC_MISC register
ARM: dts: msm: Enable QoS programming for qcs405
defconfig: Enable kernel low memory killer for sdmsteppe
ARM: dts: msm: Add sleep clock for HS PHY on QCS405
ARM: dts: msm: add PMIC devices for sdmmagpie
defconfig: msm: Enable CXIP LM cooling device driver for SM6150
drivers: thermal: Add support for CX IPeak LM cooling device
socinfo: Add support for ADP platform
ARM: dts: msm: disable L0s for PCIe0 and PCIe1 on sm8150
rtc: Disable alarm irq if alarm time is in the past
defconfig: qcs405: Enable smp2p sleep state for qcs405
coresight: tpdm: Don't disable clk and regulator when enabled
power: qpnp-qg: Update ESR estimation parameters
power: qpnp-qg: Move GOOD_OCV irq handling to suspend/resume
drivers: net: rmnet: Power collapse UL change
iommu: ignore scm_call return if SMC_ID not supported
iommu: arm-smmu: Preallocate memory for map operation
iommu: arm-smmu: Move most memory allocations to GFP_KERNEL
dma-mapping: fix build when !CONFIG_ARM_SMMU
iommu: arm-smmu: Program TTBR1 to a zero page
iommu: arm-smmu: fix KW issues
iommu: iommu-debug: limit memory address exposure
iommu: iommu-debug: cleanup iommu debug
iommu: Remove config dependency
ARM: dts: msm: Add ADC_TM thermal nodes on SM8150
ARM: dts: msm: Enable ADC_TM on PM8150B
thermal: adc_tm: Update channel assignments for PM8150B 1.0
soc: qcom: Fix module cleanup error in dfc
iio: adc: Update reading USB_IN_V channel
power: smb5-lib: Fix low USB input current limit issue
defconfig: Enable USB configfs and function drivers
defconfig: arm64: Enable ICE based HW FBE on sa8155
net: bridge: Fix merge error
msm: gsi: gsi channel mode switch spinlock correction
msm: npu: Add firmware debug mode support
ARM: dts: msm: enable display rsc for sa8155
msm: ipa4: Update IPA_CFG registers for IPA4.5
ARM: dts: msm: Add Qseecom node and Qseecom heap for qcs405
msm: kgsl: Add a check before requesting GPU keepalive
ARM: dts: msm: Enable NTAG device node for QCS405
defconfig: Enable CONFIG_CMA_DEBUGFS for sdmsteppe
ARM: dts: msm: Optimize NPU TPDM clk config for sm8150
msm: vidc: Use data corrupt flag instead of error flag
perf: don't leave group_entry on sibling list (use-after-free)
fs: ext4: disable support for fallocate FALLOC_FL_PUNCH_HOLE
msm: adsprpc: validate remote parameters pointer
msm: adsprpc: validate dma physical address after mapping
iommu: arm-smmu: add tlbi traces
iommu: arm-smmu: modify iommu_errata_tlbi trace events
iommu: dma-mapping-fast: Add standard ftrace events
iommu: Expand ftrace events
iommu: dma-mapping-fast: Fix error code for dma_map_sg
iommu: fix smmu_secure_pool access list after free issue
iommu: arm-smmu: Add smmu init latency measurement
iommu: iommu-debug: Fix duplicate iommu_attachment entries
iommu: arm-smmu: Fix locking issue
Revert "iommu/io-pgtable-arm: Unmap and free table when overwriting with block"
ARM: dts: msm: Enable UFS support on sm6150 IDP platform
ARM: dts: msm: Add address base for swr on qcs405
ARM: dts: msm: Correct GPU iommu protection range for SM8150
clk: qcom: debugcc-qcs405: Update CPU measure node
msm: kgsl: Enable IO coherency for A640
ARM: dts: msm: add PM6150 PD PHY device
clk: qcom: Update freq plan and FMAX corners for few GCC clocks
leds: qpnp-vibrator-ldo: disable vibrator in suspend path
qseecom: check if app is blocked when unloading app
hdcp_qseecom: updating error codes
msm: vidc: extend AVC level query support upto 6.2
msm: vidc: extend AVC level support upto 6.2
ARM: dts: msm: enable smmu s1 in wlan CBs
msm: vidc: Correct buffer counts for secondary output mode
timers, sched/clock: Hook into s2idle freeze path
smp: Wake up all idle CPUs when suspending to idle
smp: Do not wake up all idle CPUs
drivers: cpuidle: lpm-levels: Support s2idle
drivers: cpuidle: lpm-levels: Remove hotplug checking
msm: ipa: fix the ipa-hw rules not clean
input: touchpanel: Add Synaptics latest version 2.7 touchpanel driver
msm: vidc: correctly calculate core workload
usb: core: Add support to handle multi config audio device
msm: kgsl: Keep a list of perfcounters per file descriptor
ARM: dts: msm: update cpu core frequencies for qcs405 target
msm: kgsl: Fix typo in a6xx snapshot
msm: kgsl: Fix reading lm_sequence in _execute_reg_sequence()
ip: limit use of gso_size to udp
ARM: dts: msm: enable dma-coherent attribute for UFS on SM8150
drivers: thermal: bcl_pmic5: Incorporate thermometer encoding
esoc: Check for modem status LOW prior to error handling
Change-Id: I86ff9d6fc5dd1dfe8e0ae29a10135f6b12034c01
Signed-off-by: Namratha Siddappa <namratha@codeaurora.org>
* changes:
drm/msm/sde: deprecate force panel dead from connector
drm/msm/dsi-staging: add software simulation of esd failure
ARM: dts: msm: enable ulps for various displays on SM8150
drm/msm/dsi-staging: avoid ulps entry while esd recovery is pending
Increase ahb bus vote on first frame after idle
pc because that will program the complete mdss
register space.
Change-Id: I360d43656f753c70acb51395a978998412354b64
Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
In corner case where crtc->planemask and atomic state->planes[]
do not match, driver clears the multirect_index/multirect_mode
in the plane->state during validate failure case. This can lead
to multirect_index/multirect_mode mismatch for next commits during
failure condition.
Change-Id: Idccaa79431469e185ca46c1e40b040427d02a96d
Signed-off-by: Raviteja Tamatam <travitej@codeaurora.org>
Sometimes updates from framework comes with slight delay after
early wake up. In such case prevent clock switch off to avoid
frame miss or jank in next update. So, increase the command
mode idle timeout sufficiently to prevent such issue.
Change-Id: I4c92f3cfca5402ee9f6ee29beaf7a32506ac92c7
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
Ensure the correct block is flushed when QSYNC settings are
updated. Depending on the HW version, the location of the
Tear Effect module, and the interface mode, either the layer
mixer or the interface must be flushed when QSYNC settings
are changed.
Change-Id: I89b654ec03cbb5df459918a1b9ab345fe5a756ea
Signed-off-by: Steve Cohen <cohens@codeaurora.org>