speed258

AMD ADL some functions does not work

Discussion created by speed258 on Jan 24, 2019
Latest reply on Jan 31, 2019 by speed258

Hello I used with amd ADL 10.0(maybe this is issue due to outdated for almost ~1 year), but my reset functions which reset gpu core,memory and fan speeds to default does not work at all, tried to debug but function return ADL_OK and no errors seems to be, but gpu is still running at my set 100% percentage

 

 

private: void SetDefaultFanSpeed(int iAdapter, int iTController)
{
//Fan Reset
ADLODNFanControl odNFanControl;
memset(&odNFanControl, 0, sizeof(ADLODNFanControl));
if (ADL_OK != ADL2_OverdriveN_FanControl_Get(context, lpAdapterInfo[iAdapter].iAdapterIndex, &odNFanControl))
{
fprintf(stderr, "Fail\n");
}
else
{
odNFanControl.iMode = ADLODNControlType::ODNControlType_Auto;
odNFanControl.iCurrentFanSpeedMode = ADLODNControlType::ODNControlType_Auto;
odNFanControl.iFanControlMode = ADLODNControlType::ODNControlType_Auto;
odNFanControl.iTargetFanSpeed = ADLODNControlType::ODNControlType_Auto;
if (ADL_OK != ADL2_OverdriveN_FanControl_Set(context, lpAdapterInfo[iAdapter].iAdapterIndex, &odNFanControl))
{
fprintf(stderr, "Fail\n");
}
else
{
fprintf(stderr, "Success: 1\n");
}
}

if (ADL_OK != ADL_Overdrive5_FanSpeedToDefault_Set(iAdapter, iTController))
{
fprintf(stderr, "Error: cannot set Fan Speed to default.\n");
}
else
{
fprintf(stderr, "Success: 2\n");
}

if (ADL_OK != ADL_Overdrive6_FanSpeed_Reset(iAdapter))
{
fprintf(stderr, "Error: cannot set Fan Speed to default.\n");
}
else
{
fprintf(stderr, "Success: 3\n");
}

if (ADL_OK != ADL2_Overdrive6_FanSpeed_Reset(context,iAdapter))
{
fprintf(stderr, "Error: cannot set Fan Speed to default.\n");
}
else
{
fprintf(stderr, "Success: 4\n");
}

if (ADL_OK != ADL2_Overdrive5_FanSpeedToDefault_Set(context, iAdapter, iTController))
{
fprintf(stderr, "Error: cannot set Fan Speed to default.\n");
}
else
{
fprintf(stderr, "Success: 5\n");
}
}

But this always returns me success both times, but gpu is still running at 100% percent, what I'm missing here?

 

EDIT: Added little improved version which contains ALL fan reset functions and now fails on 3 and 4, and still fans spinning at 100%

Outcomes