diff mbox series

[v1,2/2] platform/x86/amd/pmf: Remove update system state document

Message ID 20240702080626.2902171-2-Shyam-sundar.S-k@amd.com (mailing list archive)
State New
Headers show
Series [v1,1/2] platform/x86/amd/pmf: Use existing input event codes to update system states | expand

Commit Message

Shyam Sundar S K July 2, 2024, 8:06 a.m. UTC
This commit removes the "pmf.rst" document, which was associated with
the PMF driver that enabled system state updates based on TA output
actions.

The driver now uses existing input events (KEY_SCREENLOCK, KEY_SLEEP,
and KEY_SUSPEND) instead of defining new udev rules in the
"/etc/udev/rules.d/" directory. Consequently, the pmf.rst document is no
longer necessary. Therefore, the pmf.rst documentation is being removed.

Co-developed-by: Patil Rajesh Reddy <Patil.Reddy@amd.com>
Signed-off-by: Patil Rajesh Reddy <Patil.Reddy@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
---
 Documentation/admin-guide/pmf.rst | 24 ------------------------
 1 file changed, 24 deletions(-)
 delete mode 100644 Documentation/admin-guide/pmf.rst

Comments

Mario Limonciello July 2, 2024, 1:14 p.m. UTC | #1
On 7/2/2024 3:06, Shyam Sundar S K wrote:
> This commit removes the "pmf.rst" document, which was associated with
> the PMF driver that enabled system state updates based on TA output
> actions.
> 
> The driver now uses existing input events (KEY_SCREENLOCK, KEY_SLEEP,
> and KEY_SUSPEND) instead of defining new udev rules in the
> "/etc/udev/rules.d/" directory. Consequently, the pmf.rst document is no
> longer necessary. Therefore, the pmf.rst documentation is being removed.
> 
> Co-developed-by: Patil Rajesh Reddy <Patil.Reddy@amd.com>
> Signed-off-by: Patil Rajesh Reddy <Patil.Reddy@amd.com>
> Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
> ---
>   Documentation/admin-guide/pmf.rst | 24 ------------------------
>   1 file changed, 24 deletions(-)
>   delete mode 100644 Documentation/admin-guide/pmf.rst
> 
> diff --git a/Documentation/admin-guide/pmf.rst b/Documentation/admin-guide/pmf.rst
> deleted file mode 100644
> index 9ee729ffc19b..000000000000
> --- a/Documentation/admin-guide/pmf.rst
> +++ /dev/null
> @@ -1,24 +0,0 @@
> -.. SPDX-License-Identifier: GPL-2.0
> -
> -Set udev rules for PMF Smart PC Builder
> ----------------------------------------
> -
> -AMD PMF(Platform Management Framework) Smart PC Solution builder has to set the system states
> -like S0i3, Screen lock, hibernate etc, based on the output actions provided by the PMF
> -TA (Trusted Application).
> -
> -In order for this to work the PMF driver generates a uevent for userspace to react to. Below are
> -sample udev rules that can facilitate this experience when a machine has PMF Smart PC solution builder
> -enabled.
> -
> -Please add the following line(s) to
> -``/etc/udev/rules.d/99-local.rules``::
> -
> -        DRIVERS=="amd-pmf", ACTION=="change", ENV{EVENT_ID}=="0", RUN+="/usr/bin/systemctl suspend"
> -        DRIVERS=="amd-pmf", ACTION=="change", ENV{EVENT_ID}=="1", RUN+="/usr/bin/systemctl hibernate"
> -        DRIVERS=="amd-pmf", ACTION=="change", ENV{EVENT_ID}=="2", RUN+="/bin/loginctl lock-sessions"
> -
> -EVENT_ID values:
> -0= Put the system to S0i3/S2Idle
> -1= Put the system to hibernate
> -2= Lock the screen
diff mbox series

Patch

diff --git a/Documentation/admin-guide/pmf.rst b/Documentation/admin-guide/pmf.rst
deleted file mode 100644
index 9ee729ffc19b..000000000000
--- a/Documentation/admin-guide/pmf.rst
+++ /dev/null
@@ -1,24 +0,0 @@ 
-.. SPDX-License-Identifier: GPL-2.0
-
-Set udev rules for PMF Smart PC Builder
----------------------------------------
-
-AMD PMF(Platform Management Framework) Smart PC Solution builder has to set the system states
-like S0i3, Screen lock, hibernate etc, based on the output actions provided by the PMF
-TA (Trusted Application).
-
-In order for this to work the PMF driver generates a uevent for userspace to react to. Below are
-sample udev rules that can facilitate this experience when a machine has PMF Smart PC solution builder
-enabled.
-
-Please add the following line(s) to
-``/etc/udev/rules.d/99-local.rules``::
-
-        DRIVERS=="amd-pmf", ACTION=="change", ENV{EVENT_ID}=="0", RUN+="/usr/bin/systemctl suspend"
-        DRIVERS=="amd-pmf", ACTION=="change", ENV{EVENT_ID}=="1", RUN+="/usr/bin/systemctl hibernate"
-        DRIVERS=="amd-pmf", ACTION=="change", ENV{EVENT_ID}=="2", RUN+="/bin/loginctl lock-sessions"
-
-EVENT_ID values:
-0= Put the system to S0i3/S2Idle
-1= Put the system to hibernate
-2= Lock the screen