From: Evan Quan Date: Thu, 30 Aug 2018 04:38:45 +0000 (+0800) Subject: drm/amd/powerplay: correct data type to support under voltage X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9a412063f0940d23a5ef393c2607ca9ae9f8f0b7;p=openwrt%2Fstaging%2Fblogic.git drm/amd/powerplay: correct data type to support under voltage For under voltage, negative value will be applied to voltage offset. Update the data type to cover this case. Signed-off-by: Evan Quan Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h b/drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h index 0a39a4c564d2..59e621ef33ac 100644 --- a/drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h +++ b/drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h @@ -569,11 +569,11 @@ typedef struct { uint16_t GfxclkFmin; uint16_t GfxclkFmax; uint16_t GfxclkFreq1; - uint16_t GfxclkOffsetVolt1; + int16_t GfxclkOffsetVolt1; uint16_t GfxclkFreq2; - uint16_t GfxclkOffsetVolt2; + int16_t GfxclkOffsetVolt2; uint16_t GfxclkFreq3; - uint16_t GfxclkOffsetVolt3; + int16_t GfxclkOffsetVolt3; uint16_t UclkFmax; int16_t OverDrivePct; uint16_t FanMaximumRpm;