• Darren Powell's avatar
    amdgpu/pm: clean up smu_get_power_limit function signature · a40a020d
    Darren Powell authored
     add two new powerplay enums (limit_level, type)
     add enums to smu_get_power_limit signature
     remove input bitfield stuffing of output variable limit
     update calls to smu_get_power_limit
    
    * Test
     AMDGPU_PCI_ADDR=`lspci -nn | grep "VGA\|Display" | cut -d " " -f 1`
     AMDGPU_HWMON=`ls -la /sys/class/hwmon | grep $AMDGPU_PCI_ADDR | cut -d " " -f 11`
     HWMON_DIR=/sys/class/hwmon/${AMDGPU_HWMON}
    
     lspci -nn | grep "VGA\|Display" ; \
     echo "=== power1 cap ===" ; cat $HWMON_DIR/power1_cap ;           \
     echo "=== power1 cap max ===" ; cat $HWMON_DIR/power1_cap_max ;   \
     echo "=== power1 cap def ===" ; cat $HWMON_DIR/power1_cap_default
    Signed-off-by: default avatarDarren Powell <darren.powell@amd.com>
    Reviewed-by: default avatarLijo Lazar <lijo.lazar@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    a40a020d
amdgpu_smu.c 72.8 KB