drm: start hdcp work when the "Content Protection" was set thought atomic [1/1]
authorlingjie li <lingjie.li@amlogic.com>
Fri, 5 Jul 2019 09:27:04 +0000 (17:27 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Mon, 29 Jul 2019 12:02:18 +0000 (05:02 -0700)
commitdd96e660ee83e1b7a65ceb1ee75ddb26d2252ee1
tree84f93a416e87ea6564e4e0dc0bbcf1dc50a72c85
parentdd999cbaf895913372f8a3ff320ba4004fce539a
drm: start hdcp work when the "Content Protection" was set thought atomic [1/1]

PD#SWPL-4866

Problem:
1. The old implement not support atomic. (the atomic check on am_meson
hdmi.c will disable CP,The set property function will not reached when
use atomic set CP)
2. The hdcp work kthread start and terminal not match cause coredump.

Problem:
need add hdcp function.

Solution:
Start hdcp work when the encoder enabled.stop when encoder disabled.
modified hdcp work state machine.

Verify:
On u212 drm backend, use drm-helper-client to set CP property.
need enable atomic on wayland.based on below CL
http://scgit.amlogic.com:8080/#/c/78810/1
http://scgit.amlogic.com:8080/#/c/78804/2
http://scgit.amlogic.com:8080/#/c/78811/1

Change-Id: If213b7def89ff1f1ec63b866a21a3323e098786f
Signed-off-by: lingjie li <lingjie.li@amlogic.com>
arch/arm64/boot/dts/amlogic/g12a_s905x2_u212_drm_buildroot.dts
arch/arm64/boot/dts/amlogic/g12b_a311d_w400_drm_buildroot.dts
drivers/amlogic/drm/drm-v0/am_meson_hdcp.c
drivers/amlogic/drm/drm-v0/am_meson_hdcp.h
drivers/amlogic/drm/drm-v0/am_meson_hdmi.c
drivers/amlogic/drm/meson_hdcp.c
drivers/amlogic/drm/meson_hdcp.h
drivers/amlogic/drm/meson_hdmi.c