]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pp: enable power limit increase in OD mode
authorJoseph Greathouse <Joseph.Greathouse@amd.com>
Thu, 18 Oct 2018 19:57:45 +0000 (14:57 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Oct 2018 19:41:51 +0000 (14:41 -0500)
commit646fcce2548056e8ec092de29261755b0f363394
tree9ef1fcddad682cc5b4915a734b0a61434a9f061f
parent6b35e126bcf919976f7fdb984be896d3e4cec9a4
drm/amd/pp: enable power limit increase in OD mode

OverDrive mode allows users to increase the maximum SCLK and MCLK
frequencies beyond the default on the GPU. However, this may not
results in large performance gains if the GPU then runs into its TDP
power limit. This patch adds the capability to increase the power
limit of a GPU above its default maximum.

This is only allowed when overdrive is enabled in the ppfeaturemask,
since this is an overdrive feature. The TDPODLimit value from the
VBIOS describes how how much higher the TDP should be allowed to go
over its default, in percentage.

v2: Moved dereference of hwmgr to after its validity check

Signed-off-by: Joseph Greathouse <Joseph.Greathouse@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amd_powerplay.c