drm/amd/powerplay: dynamically disable ds and ulv for compute
authorKenneth Feng <kenneth.feng@amd.com>
Fri, 8 Nov 2019 05:20:30 +0000 (13:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 8 Nov 2019 17:30:17 +0000 (12:30 -0500)
commit558491dda004b8fc60fef0fcf2329f5bf0e53b08
tree7a15582b0166ad13ca638748401c10ebbb2de042
parent875dc7c4ff224afd4e3c61a7b4e06d4600dd8c0a
drm/amd/powerplay: dynamically disable ds and ulv for compute

This is to improve the performance in the compute mode
for vega10. For example, the original performance for a rocm
bandwidth test: 2G internal GPU copy, is about 99GB/s.
With the idle power features disabled dynamically, the porformance
is promoted to about 215GB/s.

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amd_powerplay.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h