i'm running arch linux and trying to enable amdgpu support for my gpu r9 270x pitcairn architecture. i'm trying to enable core clock control through pp_od_clk_voltage. someone pointed out to me that apparently amdgpu driver does not create the file in the system if this condition is not met in amdgpu_pm.c
if ((is_support_sw_smu(adev) && adev->smu.od_enabled) ||
(!is_support_sw_smu(adev) && hwmgr->od_enabled)) {
ret = device_create_file(adev->dev,
&dev_attr_pp_od_clk_voltage);
if (ret) {
DRM_ERROR("failed to create device file "
"pp_od_clk_voltage\n");
return ret;
}
}
is it possible for me to fix this as i'm trying to find a way to control gpu core clock.
if
statement checks for the availability of the feature. If it's not supported by your GPU, enabling it is probably a very bad idea.amdgpu.ppfeaturemask=0xffffffff
to your kernel boot parameters? That would enable all features, including this one if supported.