[PATCH 0/3] Replace usage of sprintf with sysfs_emit in swsmu powerplay
Darren Powell
darren.powell at amd.com
Tue Jul 13 04:03:17 UTC 2021
=== Description ===
Replace usage of sprintf with sysfs_emit in swsmu powerplay
=== Test System ===
* DESKTOP(AMD FX-8350 + NAVI10(731F/ca), BIOS: F2)
+ ISO(Ubuntu 20.04.1 LTS)
+ Kernel(5.11.0-custom-fdoagd5f)
=== Patch Summary ===
linux: (git at gitlab.freedesktop.org:agd5f) origin/amd-staging-drm-next @ 41f5f65dd1e2
+ 8f658084973a amdgpu/pm: Replace navi10 usage of sprintf with sysfs_emit
+ 9bb408150cd4 amdgpu/pm: Replace smu11 usage of sprintf with sysfs_emit
+ 534d0b145b9c amdgpu/pm: Replace smu12/13 usage of sprintf with sysfs_emit
=== General Test for each platform ===
AMDGPU_PCI_ADDR=`lspci -nn | grep "VGA\|Display" | cut -d " " -f 1`
AMDGPU_HWMON=`ls -la /sys/class/hwmon | grep $AMDGPU_PCI_ADDR | awk '{print $9}'`
HWMON_DIR=/sys/class/hwmon/${AMDGPU_HWMON}
LOGFILE=pp_printf.test.log
lspci -nn | grep "VGA\|Display" > $LOGFILE
FILES="pp_dpm_sclk
pp_sclk_od
pp_mclk_od
pp_dpm_pcie
pp_od_clk_voltage
pp_power_profile_mode "
for f in $FILES
do
echo === $f === >> $LOGFILE
cat $HWMON_DIR/device/$f >> $LOGFILE
done
cat $LOGFILE
Darren Powell (3):
amdgpu/pm: Replace navi10 usage of sprintf with sysfs_emit
amdgpu/pm: Replace smu11 usage of sprintf with sysfs_emit
amdgpu/pm: Replace smu12/13 usage of sprintf with sysfs_emit
.../gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c | 26 ++++----
.../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 61 ++++++++++---------
.../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 34 +++++------
.../gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 46 +++++++-------
.../gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c | 20 +++---
.../drm/amd/pm/swsmu/smu13/aldebaran_ppt.c | 21 +++----
.../drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c | 14 ++---
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 6 +-
8 files changed, 115 insertions(+), 113 deletions(-)
base-commit: 41f5f65dd1e2f660989ee7fa1a5fc6c3490f08f1
--
2.32.0
More information about the amd-gfx
mailing list