linux-stable/drivers
Michael Tretter c950715855 drm/rockchip: vop2: disable planes when disabling the crtc
[ Upstream commit 447fb14bf0 ]

The vop2 driver needs to explicitly disable the planes if the crtc is
disabled. Unless the planes are explicitly disabled, the address of the
last framebuffer is kept in the registers of the VOP2. When re-enabling
the encoder after it has been disabled by the driver, the VOP2 will
start and read the framebuffer that has been freed but is still pointed
to by the register. The iommu will catch these read accesses and print
errors.

Explicitly disable the planes when the crtc is disabled to reset the
registers.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20221028095206.2136601-3-m.tretter@pengutronix.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-26 09:27:18 +01:00
..
accessibility
acpi ACPI: x86: Add another system to quirk list for forcing StorageD3Enable 2022-11-26 09:27:18 +01:00
amba
android
ata ata: libata-scsi: fix SYNCHRONIZE CACHE (16) command failure 2022-11-16 10:04:06 +01:00
atm
auxdisplay
base PM: domains: Fix handling of unavailable/disabled idle states 2022-11-04 00:00:32 +09:00
bcma
block ublk_drv: return flag of UBLK_F_URING_CMD_COMP_IN_TASK in case of module 2022-11-10 18:17:29 +01:00
bluetooth Bluetooth: virtio_bt: Use skb_put to set length 2022-11-10 18:17:21 +01:00
bus
cdrom
char hwrng: bcm2835 - use hwrng_msleep() instead of cpu_relax() 2022-11-10 18:17:24 +01:00
clk clk: renesas: r8a779g0: Add SASYNCPER clocks 2022-11-10 18:17:30 +01:00
clocksource clocksource/drivers/timer-gxp: Add missing error handling in gxp_timer_probe 2022-10-21 12:39:00 +02:00
comedi
connector
counter counter: 104-quad-8: Fix race getting function mode and direction 2022-11-04 00:00:23 +09:00
cpufreq cpufreq: intel_pstate: hybrid: Use known scaling factor for P-cores 2022-11-04 00:00:20 +09:00
cpuidle cpuidle: riscv-sbi: Fix CPU_PM_CPU_IDLE_ENTER_xyz() macro usage 2022-10-21 12:38:56 +02:00
crypto crypto: cavium - prevent integer overflow loading firmware 2022-10-21 12:39:01 +02:00
cxl cxl/mbox: Add a check on input payload size 2022-11-26 09:27:17 +01:00
dax
dca
devfreq
dio
dma dmaengine: at_hdmac: Check return code of dma_async_device_register 2022-11-16 10:04:14 +01:00
dma-buf udmabuf: Set ubuf->sg = NULL if the creation of sg table fails 2022-10-21 12:39:13 +02:00
edac
eisa
extcon
firewire
firmware efi: efivars: Fix variable writes with unsupported query_variable_store() 2022-11-10 18:17:34 +01:00
fpga fpga: prevent integer overflow in dfl_feature_ioctl_set_irq() 2022-10-21 12:38:42 +02:00
fsi fsi: master-ast-cf: Fix missing of_node_put in fsi_master_acf_probe 2022-10-21 12:39:26 +02:00
gnss
gpio
gpu drm/rockchip: vop2: disable planes when disabling the crtc 2022-11-26 09:27:18 +01:00
greybus
hid HID: hyperv: fix possible memory leak in mousevsc_probe() 2022-11-16 10:03:52 +01:00
hsi HSI: ssi_protocol: fix potential resource leak in ssip_pn_open() 2022-10-21 12:39:23 +02:00
hte
hv
hwmon hwmon/coretemp: Handle large core ID value 2022-10-29 10:08:30 +02:00
hwspinlock hwspinlock: qcom: correct MMIO max register for newer SoCs 2022-11-16 10:03:50 +01:00
hwtracing coresight: cti: Fix hang in cti_disable_hw() 2022-11-04 00:00:22 +09:00
i2c i2c: piix4: Fix adapter not be removed in piix4_remove() 2022-11-10 18:17:30 +01:00
i3c
idle
iio iio: adc: stm32-adc: fix channel sampling time init 2022-11-10 18:17:22 +01:00
infiniband RDMA/efa: Add EFA 0xefa2 PCI ID 2022-11-26 09:27:18 +01:00
input
interconnect
iommu iommu/vt-d: Clean up si_domain in the init_dmars() error path 2022-10-29 10:08:35 +02:00
ipack
irqchip
isdn isdn: mISDN: netjet: fix wrong check of device registration 2022-11-10 18:17:20 +01:00
leds
macintosh
mailbox mailbox: bcm-ferxrm-mailbox: Fix error check for dma_map_sg 2022-10-21 12:38:55 +02:00
mcb
md dm: remove unnecessary assignment statement in alloc_dev() 2022-10-29 10:08:34 +02:00
media media: platform: cros-ec: Add Kuldax to the match table 2022-11-10 18:17:23 +01:00
memory memory: of: Fix refcount leak bug in of_lpddr3_get_ddr_timings() 2022-10-21 12:38:31 +02:00
memstick
message
mfd mfd: da9061: Fix Failed to set Two-Wire Bus Mode. 2022-10-21 12:38:52 +02:00
misc misc: ocxl: fix possible refcount leak in afu_ioctl() 2022-10-21 12:38:42 +02:00
mmc mms: sdhci-esdhc-imx: Fix SDHCI_RESET_ALL for CQHCI 2022-11-16 10:04:09 +01:00
most
mtd mtd: rawnand: qcom: handle ret from parse with codeword_fixup 2022-11-26 09:27:13 +01:00
mux
net can: dev: fix skb drop check 2022-11-16 10:04:12 +01:00
nfc nfc: nfcmrvl: Fix potential memory leak in nfcmrvl_i2c_nci_send() 2022-11-10 18:17:17 +01:00
ntb
nubus
nvdimm
nvme nvme-pci: disable write zeroes on various Kingston SSD 2022-11-10 18:17:26 +01:00
nvmem
of
opp
parisc parisc: Export iosapic_serial_irq() symbol for serial port driver 2022-11-10 18:17:35 +01:00
parport
pci PCI: hv: Fix the definition of vector in hv_compose_msi_msg() 2022-11-16 10:03:52 +01:00
pcmcia
peci
perf
phy phy: qcom-qmp-combo: fix NULL-deref on runtime resume 2022-11-16 10:04:09 +01:00
pinctrl pinctrl: ocelot: Fix incorrect trigger of the interrupt. 2022-11-04 00:00:28 +09:00
platform platform/x86/intel: pmc/core: Add Raptor Lake support to pmc core driver 2022-11-26 09:27:17 +01:00
pnp
power power: supply: adp5061: fix out-of-bounds read in adp5061_get_chg_type() 2022-10-21 12:39:22 +02:00
powercap powercap: intel_rapl: fix UBSAN shift-out-of-bounds issue 2022-10-21 12:39:04 +02:00
pps
ps3
ptp
pwm
rapidio
ras
regulator regulator: core: Prevent integer underflow 2022-10-21 12:39:08 +02:00
remoteproc remoteproc: Harden rproc_handle_vdev() against integer overflow 2022-10-21 12:38:45 +02:00
reset
rpmsg
rtc
s390 s390/cio: fix out-of-bounds access on cio_ignore free 2022-11-04 00:00:24 +09:00
sbus
scsi scsi: core: Restrict legal sdev_state transitions via sysfs 2022-11-10 18:17:25 +01:00
sh
siox
slimbus slimbus: qcom-ngd: Add error handling in of_qcom_slim_ngd_register 2022-10-21 12:38:49 +02:00
soc soc/tegra: fuse: Drop Kconfig dependency on TEGRA20_APB_DMA 2022-10-21 12:38:34 +02:00
soundwire soundwire: qcom: check for outanding writes before doing a read 2022-11-16 10:03:50 +01:00
spi spi: intel: Fix the offset to get the 64K erase opcode 2022-11-26 09:27:15 +01:00
spmi spmi: pmic-arb: correct duplicate APID to PPID mapping logic 2022-10-21 12:38:53 +02:00
ssb
staging media: hantro: HEVC: Fix chroma offset computation 2022-11-10 18:17:24 +01:00
target
tc
tee
thermal thermal: intel_powerclamp: Use first online CPU as control_cpu 2022-10-26 12:22:55 +02:00
thunderbolt thunderbolt: Add DP OUT resource when DP tunnel is discovered 2022-11-16 10:03:48 +01:00
tty parisc: Make 8250_gsc driver dependend on CONFIG_PARISC 2022-11-10 18:17:35 +01:00
ufs
uio
usb usb: dwc3: gadget: Don't delay End Transfer on delayed_status 2022-11-10 18:17:14 +01:00
vdpa
vfio
vhost vhost/vsock: Use kvmalloc/kvfree for larger packets. 2022-10-21 12:38:19 +02:00
video fbdev/core: Avoid uninitialized read in aperture_remove_conflicting_pci_device() 2022-11-04 00:00:24 +09:00
virt
virtio
vlynq
w1
watchdog
xen
zorro
Kconfig
Makefile