linux_dsm_epyc7002/drivers/gpu/drm/rockchip
Jonas Karlman e9abc611a9 drm/rockchip: vop: reset scale mode when win is disabled
NV12 framebuffers produced by the VPU shows distorted on RK3288
after win has been disabled when scaling is active.

This issue can be reproduced using a 1080p modeset by:
- Scale a 1280x720 NV12 framebuffer to 1920x1080 on win0
- Disable win0
- Display a 1920x1080 NV12 framebuffer without scaling on win0
- Output will now show the framebuffer distorted

And by:
- Scale a 1280x720 NV12 framebuffer to 1920x1080
- Change to a 720p modeset (win gets disabled and scaling reset to none)
- Output will now show the framebuffer distorted

Fix this by setting scale mode to none when win is disabled.

Fixes: 4c156c21c7 ("drm/rockchip: vop: support plane scale")
Cc: stable@vger.kernel.org
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/AM3PR03MB0966DE3E19BACE07328CD637AC7D0@AM3PR03MB0966.eurprd03.prod.outlook.com
2019-03-18 18:58:12 +01:00
..
analogix_dp-rockchip.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
cdn-dp-core.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
cdn-dp-core.h drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
cdn-dp-reg.c drm/rockchip: fix for mailbox read validation. 2019-01-28 11:10:44 +01:00
cdn-dp-reg.h
dw_hdmi-rockchip.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
dw-mipi-dsi-rockchip.c drm: bridge: Constify mode arguments to bridge .mode_set() operation 2019-01-14 03:51:14 +02:00
inno_hdmi.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
inno_hdmi.h
Kconfig
Makefile
rockchip_drm_drv.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
rockchip_drm_drv.h
rockchip_drm_fb.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
rockchip_drm_fb.h
rockchip_drm_fbdev.c drm/<drivers>: Don't set FBINFO_(FLAG_)DEFAULT 2019-01-29 10:56:42 +01:00
rockchip_drm_fbdev.h
rockchip_drm_gem.c
rockchip_drm_gem.h
rockchip_drm_psr.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
rockchip_drm_psr.h
rockchip_drm_vop.c drm/rockchip: vop: reset scale mode when win is disabled 2019-03-18 18:58:12 +01:00
rockchip_drm_vop.h
rockchip_lvds.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
rockchip_lvds.h
rockchip_rgb.c Linux 5.0-rc7 2019-02-18 13:27:15 +10:00
rockchip_rgb.h drm/rockchip: rgb: update SPDX license identifier 2019-01-25 14:50:07 +01:00
rockchip_vop_reg.c
rockchip_vop_reg.h