drm/amd/powerplay: update OD support flag for SKU with no OD capabilities
authorEvan Quan <evan.quan@amd.com>
Mon, 7 Jan 2019 10:38:30 +0000 (18:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:04:25 +0000 (15:04 -0500)
For those ASICs with no overdrive capabilities, the OD support flag
will be reset.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c

index 264ce8fe545f5c782bdfa8753f4244ac8f0d9c92..8f6097c6a02b329f03f9a184aa3464ed88dfcf61 100644 (file)
@@ -980,6 +980,9 @@ static int vega20_od8_set_feature_capabilities(
            pp_table->FanZeroRpmEnable)
                od_settings->overdrive8_capabilities |= OD8_FAN_ZERO_RPM_CONTROL;
 
+       if (!od_settings->overdrive8_capabilities)
+               hwmgr->od_enabled = false;
+
        return 0;
 }