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>
* 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
Deprecate force panel dead from connector structure. This is
already available as software simulated esd failure in display
structure.
Deprecated node:
/<debugfs-root>/dri/0/<connector>/force_panel_dead
Replacement node:
/<debugfs-root>/<active display>/esd_check_mode
Usage:
"echo esd_sw_sim_success> /d/<active display>/esd_check_mode"
Change-Id: Id72d529ed4f6fc8be6065c25239acd9aedf6c2a2
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
Add ability to simulate software success and failure of
esd status on panel.
Change-Id: I6ccd1a9673250774bfa5dced1f4cd6323f330ab0
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
This change adds the ops at sde_hw_ctl module to perform
peripheral flush that is required for updating controller
flush logic.
Change-Id: I673f5a13531967b18813a5d2b70579154d4731fd
Signed-off-by: Govinda Rajulu Chenna <gchenna@codeaurora.org>
Add implementation to extract compression ratio and widebus config
data from connector module and configure sde interface module
accordignly to avoid the fixed compression ratio configuration.
Change-Id: Ica1bf21dba43f9a0017e06870b4e5882fa74ebd9
Signed-off-by: Govinda Rajulu Chenna <gchenna@codeaurora.org>
Avoid the possibility of accessing invalid sde_fence_context
object after sde_connector object is released. Decouple the
sde_fence_context object from sde_connector and allocate
run-time memory for fence object and deallocate once all the
fence operations are complete and kref for fence is zero.
Change-Id: I4f8a4d6f5df3443ecf4578abaedb6697f375dc11
Signed-off-by: Govinda Rajulu Chenna <gchenna@codeaurora.org>
When ESD recovery is pending, DSI PHY link will be in
an unresponsive state. Thus, any attempts to enter ulps
will fail.
Change-Id: Icebe7fa294f8d75ce854d82bc71f48a78a26fa79
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
Fix the error in programming timeslots when total slots are
more than 32.
CRs-Fixed: 2280286
Change-Id: I247f160c5e900fc3bc9cf44ed4310507edbe1a82
Signed-off-by: Govinda Rajulu Chenna <gchenna@codeaurora.org>
Add changes to SDE driver to dump fence related information
via debugfs node.
Command to dump the information:
cat /d/dri/0/crtc*/fence_status
This provides CRTC ID: with fence status, associated connector
fence, and all staged plane fence status.
Change-Id: I3528bb5d864eb045c0c8611cc40e50739f602523
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
This change checks if input handler is already registered during
dynamic mode switch time. Encoder is not disabled in dynamic mode
switch resulting into input handler regsirtation called twice leading
to error.
Change-Id: Ica21d6be6c874b631f356c689b03ca6465717b81
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
Limit max length of buffer while read misr configuration
from sysfs node.
Change-Id: I9adfd51da7ae77201cf6c0cf6e9af68785c7a063
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
Use correct indexing when using the contianer_of operation to
get the DSI clock manager handle to avoid potential out of
bounds memory accesses.
Change-Id: I8804c5ff2bb602527f84749116e1408513e22759
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
When ESD recovery is underway, then DSI host might be in
a bad state and can not transmit DCS commands. So this
change avoids sending any DCS commands when recovery is
pending.
Change-Id: I85272b6debcca8a2e40a97e1c39d9d8aeb8e31b4
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
Control the AVR_SUPPORT_ENABLE bit in the VIDEO_MODE_CTRL register
when qsync video mode is enabled/disabled.
Change-Id: I451cceec30397b9a75791edb450b6f992da6d746
Signed-off-by: Steve Cohen <cohens@codeaurora.org>
Allocate memory for array using number of bytes rather than number of
elements to avoid out of bounds access to the array while
writing to it.
Change-Id: I5872d180b60f172201a0a0b77b55d518a4464f1f
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
Memory allocation using kzalloc can return a valid pointer
when a zero size memory is requested. Therefore it is
important to use IS_ZERO_OR_NULL macro instead of just
checking for a null pointer prior to any use of the allocated
memory.
CRs-Fixed: 2279573
Change-Id: I3a9526347669d77bd5642195ab2681ef96ce580a
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
Avoid the possibility of invalid connector access from sde_crtc_state
by reconstructing the connector information into sde_crtc_state for
each atomic_check phase.
Change-Id: I5f151e91bc0383c297b91b0b1ff752889d4dcfcc
Signed-off-by: Govinda Rajulu Chenna <gchenna@codeaurora.org>
Avoid the static channel allocation by implementing the
correct channel allocation based on the display mode for
streams in simulator panel mode.
CRs-Fixed: 2280286
Change-Id: Ie60a07a4f25fc45592ae5e8ec2b56de0ea9eb368
Signed-off-by: Govinda Rajulu Chenna <gchenna@codeaurora.org>
Check and log the UWBC error status of all the planes
in the frame event callback before queuing it to the
worker thread. This will ensure that the clks are enabled
at this point as this happens from the vsync/pp-done
interrupt context.
Change-Id: I826da30e1b1ffe3e5c7cd076460a762495fc643d
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>