linux-stable/drivers/gpu/drm/rockchip
Damian Kos fa68d4f847 drm/rockchip: fix for mailbox read size
Some of the functions (like cdn_dp_dpcd_read, cdn_dp_get_edid_block)
allow to read 64KiB, but the cdn_dp_mailbox_read_receive, that is
used by them, can read only up to 255 bytes at once. Normally, it's
not a big issue as DPCD or EDID reads won't (hopefully) exceed that
value.
The real issue here is the revocation list read during the HDCP
authentication process. (problematic use case:
https://chromium.googlesource.com/chromiumos/third_party/kernel/+/chromeos-4.4/drivers/gpu/drm/rockchip/cdn-dp-reg.c#1152)
The list can reach 127*5+4 bytes (num devs * 5 bytes per ID/Bksv +
4 bytes of an additional info).
In other words - CTSes with HDCP Repeater won't pass without this
fix. Oh, and the driver will most likely stop working (best case
scenario).

Signed-off-by: Damian Kos <dkos@cadence.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/1541518625-25984-1-git-send-email-dkos@cadence.com
2018-11-19 14:59:50 +01:00
..
analogix_dp-rockchip.c drm/rockchip: psr: Sanitize semantics of allow/inhibit API 2018-04-24 08:34:52 +02:00
cdn-dp-core.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
cdn-dp-core.h
cdn-dp-reg.c drm/rockchip: fix for mailbox read size 2018-11-19 14:59:50 +01:00
cdn-dp-reg.h
dw-mipi-dsi-rockchip.c drm/rockchip: dsi: add dual mipi support 2018-10-30 14:06:31 +01:00
dw_hdmi-rockchip.c drm/rockchip: dw_hdmi: add dw-hdmi support for the rk3328 2018-09-28 12:33:05 +02:00
inno_hdmi.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
inno_hdmi.h
Kconfig drm/rockchip: dsi: migrate to use dw-mipi-dsi bridge driver 2018-10-30 14:06:15 +01:00
Makefile drm/rockchip: dsi: migrate to use dw-mipi-dsi bridge driver 2018-10-30 14:06:15 +01:00
rockchip_drm_drv.c drm/rockchip: dsi: migrate to use dw-mipi-dsi bridge driver 2018-10-30 14:06:15 +01:00
rockchip_drm_drv.h drm/rockchip: dsi: add dual mipi support 2018-10-30 14:06:31 +01:00
rockchip_drm_fb.c drm/rockchip: rockchip_drm_fb -> drm_framebuffer 2018-05-18 16:02:05 +01:00
rockchip_drm_fb.h drm/rockchip: rockchip_drm_fb -> drm_framebuffer 2018-05-18 16:02:05 +01:00
rockchip_drm_fbdev.c
rockchip_drm_fbdev.h
rockchip_drm_gem.c drm/rockchip: fixup comment for gem_free_object_unlocked 2018-03-28 17:07:36 +02:00
rockchip_drm_gem.h
rockchip_drm_psr.c drm/rockchip: psr: do not dereference encoder before it is null checked. 2018-10-16 14:57:06 +02:00
rockchip_drm_psr.h drm/rockchip: psr: Remove flush by CRTC 2018-04-24 08:34:54 +02:00
rockchip_drm_vop.c drm/rockchip: dsi: add dual mipi support 2018-10-30 14:06:31 +01:00
rockchip_drm_vop.h drm/rockchip: dsi: add dual mipi support 2018-10-30 14:06:31 +01:00
rockchip_lvds.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
rockchip_lvds.h
rockchip_rgb.c drm/rockchip: Add support for Rockchip Soc RGB output interface 2018-09-05 12:24:36 +02:00
rockchip_rgb.h drm/rockchip: rgb: add stub functions when rgb encoder is disabled 2018-09-05 15:43:14 -04:00
rockchip_vop_reg.c drm/rockchip: dsi: add dual mipi support 2018-10-30 14:06:31 +01:00
rockchip_vop_reg.h drm/rockchip: vop: add rk3188 vop definitions 2018-09-05 12:25:48 +02:00