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