[PATCH 6/6] drm/amd/display: REFERENCE for srm interface patches
Bhawanpreet Lakha
Bhawanpreet.Lakha at amd.com
Wed Jan 22 21:05:48 UTC 2020
This is just a reference for the patches. not to be merged
Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha at amd.com>
---
REFERENCE | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
create mode 100644 REFERENCE
diff --git a/REFERENCE b/REFERENCE
new file mode 100644
index 000000000000..2e53f9cc82ff
--- /dev/null
+++ b/REFERENCE
@@ -0,0 +1,49 @@
+SRM interface Reference Usermode scripts for ubuntu.
+These are just reference sciprts to facilitate the SRM interface for amdgpu.
+
++-----------------------------------------------------------------------------------------------------+
+| Main script, this is called on boot/shutdown/suspend/resume , it calls the sysfs to get/set the SRM |
+| FILE: /home/amdgpu_hdcp_srm_script.sh |
++-----------------------------------------------------------------------------------------------------+
+#!/bin/bash
+
+SRMFILE="/home/SRM"
+sudo cat "$SRMFILE" > /sys/class/drm/card0/device/hdcp_srm
+sudo cat /sys/class/drm/card0/device/hdcp_srm > "$SRMFILE"
+
+
+
+
+
++-----------------------------------------------------------------------------------------------------+
+| .service file, This is placed into /etc/systemd/system/ so it runs the main script on boot/shutdown |
+| FILE: /etc/systemd/system/amdgpu_hdc_srm_boot_shutdown.service |
++-----------------------------------------------------------------------------------------------------+
+[Unit]
+Description=HDCP SRM boot and shutdown save/load
+
+[Service]
+Type=simple
+ExecStart=/home/amdgpu_hdcp_srm_script.sh
+ExecStop=/home/amdgpu_hdcp_srm_script.sh
+
+[Install]
+WantedBy=multi-user.target
+
+
+
++-----------------------------------------------------------------------------------------------------+
+| To run the script on boot/start run |
++-----------------------------------------------------------------------------------------------------+
+sudo systemctl start amdgpu_hdc_srm_boot_shutdown
+sudo systemctl enable amdgpu_hdc_srm_boot_shutdown
+
+
+
++-----------------------------------------------------------------------------------------------------+
+| To symlnk the files (adding to these directory will run the script on suspend/resume |
++-----------------------------------------------------------------------------------------------------+
+sudo ln -s $SCRIPTFILE /lib/systemd/system-sleep/amdgpu_hdcp_srm
+sudo ln -s $SCRIPTFILE /usr/lib/pm-utils/sleep.d/95amdgpu_hdcp_srm
+
+
--
2.17.1
More information about the amd-gfx
mailing list