mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-25 04:56:34 +00:00
v2
add check for SMU_DEFAULT_PPT_LIMIT
v1
modify (pptable_funcs)->set_power_limit signature
modify smu11 set_power_limit signature (arcturus, navi10, sienna_cichlid)
modify smu13 set_power_limit signature (aldabaran)
modify vangogh_set_power_limit signature (vangogh)
=== Test ===
sudo bash
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_show_power_cap.log
cp $LOGFILE{,.old}
lspci -nn | grep "VGA\|Display" > $LOGFILE
FILES="
power1_cap
power2_cap"
for f in $FILES
do
if test -f "$HWMON_DIR/$f"; then
echo === $f === >> $LOGFILE
cat $HWMON_DIR/$f >> $LOGFILE
RESTORE_VALUE=`cat $HWMON_DIR/$f` 2>&1 >> $LOGFILE
echo RESTORE_VALUE $RESTORE_VALUE >> $LOGFILE
echo 120000000 > $HWMON_DIR/$f
sleep 3
cat $HWMON_DIR/$f >> $LOGFILE
echo $RESTORE_VALUE > $HWMON_DIR/$f
sleep 3
cat $HWMON_DIR/$f >> $LOGFILE
else
echo === $f === >> $LOGFILE
echo File Not Found >> $LOGFILE
fi
done
cat $LOGFILE
Signed-off-by: Darren Powell <darren.powell@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
|
||
|---|---|---|
| .. | ||
| vega12 | ||
| aldebaran_ppsmc.h | ||
| amd_powerplay.h | ||
| amdgpu_dpm.h | ||
| amdgpu_pm.h | ||
| amdgpu_smu.h | ||
| arcturus_ppsmc.h | ||
| cz_ppsmc.h | ||
| fiji_ppsmc.h | ||
| hardwaremanager.h | ||
| hwmgr.h | ||
| polaris10_pwrvirus.h | ||
| power_state.h | ||
| pp_debug.h | ||
| pp_endian.h | ||
| pp_thermal.h | ||
| ppinterrupt.h | ||
| rv_ppsmc.h | ||
| smu7_common.h | ||
| smu7_discrete.h | ||
| smu7_fusion.h | ||
| smu7_ppsmc.h | ||
| smu7.h | ||
| smu8_fusion.h | ||
| smu8.h | ||
| smu9_driver_if.h | ||
| smu9.h | ||
| smu10_driver_if.h | ||
| smu10.h | ||
| smu11_driver_if_arcturus.h | ||
| smu11_driver_if_cyan_skillfish.h | ||
| smu11_driver_if_navi10.h | ||
| smu11_driver_if_sienna_cichlid.h | ||
| smu11_driver_if_vangogh.h | ||
| smu11_driver_if.h | ||
| smu12_driver_if.h | ||
| smu13_driver_if_aldebaran.h | ||
| smu13_driver_if_yellow_carp.h | ||
| smu71_discrete.h | ||
| smu71.h | ||
| smu72_discrete.h | ||
| smu72.h | ||
| smu73_discrete.h | ||
| smu73.h | ||
| smu74_discrete.h | ||
| smu74.h | ||
| smu75_discrete.h | ||
| smu75.h | ||
| smu_11_0_cdr_table.h | ||
| smu_types.h | ||
| smu_ucode_xfer_cz.h | ||
| smu_ucode_xfer_vi.h | ||
| smu_v11_0_7_ppsmc.h | ||
| smu_v11_0_7_pptable.h | ||
| smu_v11_0_ppsmc.h | ||
| smu_v11_0_pptable.h | ||
| smu_v11_0.h | ||
| smu_v11_5_pmfw.h | ||
| smu_v11_5_ppsmc.h | ||
| smu_v11_8_pmfw.h | ||
| smu_v11_8_ppsmc.h | ||
| smu_v12_0_ppsmc.h | ||
| smu_v12_0.h | ||
| smu_v13_0_1_pmfw.h | ||
| smu_v13_0_1_ppsmc.h | ||
| smu_v13_0_pptable.h | ||
| smu_v13_0.h | ||
| smumgr.h | ||
| tonga_ppsmc.h | ||
| vega10_ppsmc.h | ||
| vega12_ppsmc.h | ||
| vega20_ppsmc.h | ||