linux-stable/drivers/gpu/drm/rockchip
Michael Tretter 447fb14bf0 drm/rockchip: vop2: disable planes when disabling the crtc
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
2022-10-29 14:41:29 +02:00
..
analogix_dp-rockchip.c drm/rockchip: Fix an error handling path rockchip_dp_probe() 2022-07-02 13:03:12 +02:00
cdn-dp-core.c drm/rockchip: Fix return type of cdn_dp_connector_mode_valid 2022-09-14 10:42:41 +02:00
cdn-dp-core.h drm/rockchip: Embed drm_encoder into rockchip_decoder 2022-05-03 11:23:47 +02:00
cdn-dp-reg.c
cdn-dp-reg.h
dw-mipi-dsi-rockchip.c drm/rockchip: dsi: Fix VOP selection on SoCs that support it 2022-10-29 14:41:06 +02:00
dw_hdmi-rockchip.c drm/rockchip: dw_hdmi: filter regulator -EPROBE_DEFER error messages 2022-10-29 14:40:10 +02:00
inno_hdmi.c drm/rockchip: Embed drm_encoder into rockchip_decoder 2022-05-03 11:23:47 +02:00
inno_hdmi.h
Kconfig drm/gem: rename GEM CMA helpers to GEM DMA helpers 2022-08-03 18:31:49 +02:00
Makefile drm/rockchip: Add VOP2 driver 2022-05-04 14:05:47 +02:00
rk3066_hdmi.c drm: Drop drm_edid.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
rk3066_hdmi.h
rockchip_drm_drv.c drm-misc-next for v6.1: 2022-09-06 10:56:04 +02:00
rockchip_drm_drv.h drm/rockchip: Add VOP2 driver 2022-05-04 14:05:47 +02:00
rockchip_drm_fb.c drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
rockchip_drm_fb.h
rockchip_drm_gem.c drm/rockchip: fix fbdev on non-IOMMU devices 2022-10-29 14:40:53 +02:00
rockchip_drm_gem.h
rockchip_drm_vop.c drm/rockchip: remove vop_writel from vop1 driver 2022-09-15 15:35:43 +02:00
rockchip_drm_vop.h drm/rockchip: define gamma registers for RK3399 2022-09-15 15:09:10 +02:00
rockchip_drm_vop2.c drm/rockchip: vop2: disable planes when disabling the crtc 2022-10-29 14:41:29 +02:00
rockchip_drm_vop2.h drm/rockchip: Add VOP2 driver 2022-05-04 14:05:47 +02:00
rockchip_lvds.c drm/rockchip: Embed drm_encoder into rockchip_decoder 2022-05-03 11:23:47 +02:00
rockchip_lvds.h
rockchip_rgb.c drm: Remove linux/media-bus-format.h from drm_crtc.h 2022-07-05 21:15:13 +03:00
rockchip_rgb.h
rockchip_vop2_reg.c drm/rockchip: Add VOP2 driver 2022-05-04 14:05:47 +02:00
rockchip_vop_reg.c drm/rockchip: define gamma registers for RK3399 2022-09-15 15:09:10 +02:00
rockchip_vop_reg.h drm/rockchip: define gamma registers for RK3399 2022-09-15 15:09:10 +02:00