From 81b5c762d6b7140fe3850768aa161c2108ed01a1 Mon Sep 17 00:00:00 2001 From: Josh Lay Date: Sun, 24 Mar 2024 19:17:05 -0500 Subject: [PATCH] add ansible_managed comment/header --- .../templates/amdgpu-profile-default.sh.j2 | 12 ++---------- .../templates/amdgpu-profile-overclock.sh.j2 | 12 ++---------- .../tuned_amdgpu/templates/amdgpu-profile-peak.sh.j2 | 12 ++---------- .../profile-common.sh.j2} | 0 4 files changed, 6 insertions(+), 30 deletions(-) rename roles/tuned_amdgpu/{files/profile-common.sh => templates/profile-common.sh.j2} (100%) diff --git a/roles/tuned_amdgpu/templates/amdgpu-profile-default.sh.j2 b/roles/tuned_amdgpu/templates/amdgpu-profile-default.sh.j2 index 4bd1282..338c704 100644 --- a/roles/tuned_amdgpu/templates/amdgpu-profile-default.sh.j2 +++ b/roles/tuned_amdgpu/templates/amdgpu-profile-default.sh.j2 @@ -1,14 +1,6 @@ #!/bin/bash -# script for tuned AMDGPU clock control -# configures GPU power/clock characteristics -# clocks/power in 3D are dynamic based on need/usage -# -# for 'amdgpu-default' tuned profiles, this will reset the characteristics to default -# for others this will apply overclocking settings -- leaving clock choices to the associated power profile (eg: VR) -# -# rendered by Ansible with environment-appropriate values: -# card #, eg: card0 -# path to discovered sysfs device files (power/clock/voltage control) +{{ ansible_managed | comment }} +# This is the 'default' script; resetting amdgpu clock/power/voltage tunables # # AMDGPU driver/sysfs references: # https://01.org/linuxgraphics/gfx-docs/drm/gpu/amdgpu.html diff --git a/roles/tuned_amdgpu/templates/amdgpu-profile-overclock.sh.j2 b/roles/tuned_amdgpu/templates/amdgpu-profile-overclock.sh.j2 index 1f0aa3a..1a1982e 100644 --- a/roles/tuned_amdgpu/templates/amdgpu-profile-overclock.sh.j2 +++ b/roles/tuned_amdgpu/templates/amdgpu-profile-overclock.sh.j2 @@ -1,14 +1,6 @@ #!/bin/bash -# script for tuned AMDGPU clock control -# configures GPU power/clock characteristics -# clocks/power in 3D are dynamic based on need/usage -# -# for 'amdgpu-default' tuned profiles, this will reset the characteristics to default -# for others this will apply overclocking settings -- leaving clock choices to the associated power profile (eg: VR) -# -# rendered by Ansible with environment-appropriate values: -# card #, eg: card0 -# path to discovered sysfs device files (power/clock/voltage control) +{{ ansible_managed | comment }} +# This is the 'overclock' script; applies amdgpu clock/power/voltage tunables # # AMDGPU driver/sysfs references: # https://01.org/linuxgraphics/gfx-docs/drm/gpu/amdgpu.html diff --git a/roles/tuned_amdgpu/templates/amdgpu-profile-peak.sh.j2 b/roles/tuned_amdgpu/templates/amdgpu-profile-peak.sh.j2 index 14105a8..3165f7e 100644 --- a/roles/tuned_amdgpu/templates/amdgpu-profile-peak.sh.j2 +++ b/roles/tuned_amdgpu/templates/amdgpu-profile-peak.sh.j2 @@ -1,14 +1,6 @@ #!/bin/bash -# script for tuned AMDGPU clock control -# configures GPU power/clock characteristics -# clocks/power in 3D are dynamic based on need/usage -# -# for 'amdgpu-default' tuned profiles, this will reset the characteristics to default -# for others this will apply overclocking settings -- leaving clock choices to the associated power profile (eg: VR) -# -# rendered by Ansible with environment-appropriate values: -# card #, eg: card0 -# path to discovered sysfs device files (power/clock/voltage control) +{{ ansible_managed | comment }} +# This is the 'peak' script; applies most-aggressive amdgpu clock/power/voltage tunables # # AMDGPU driver/sysfs references: # https://01.org/linuxgraphics/gfx-docs/drm/gpu/amdgpu.html diff --git a/roles/tuned_amdgpu/files/profile-common.sh b/roles/tuned_amdgpu/templates/profile-common.sh.j2 similarity index 100% rename from roles/tuned_amdgpu/files/profile-common.sh rename to roles/tuned_amdgpu/templates/profile-common.sh.j2