]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: fix checking gfxoff status for rn
authorAaron Liu <aaron.liu@amd.com>
Fri, 26 Jul 2019 02:51:32 +0000 (10:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Aug 2019 22:37:42 +0000 (17:37 -0500)
commit9d3ce92c6541fa8020c730ca9d1cf9d7d0c9ed3e
tree8c1c203a1f99c8adcd9481bdff33daee59297888
parentc13c24b7465b2016e9419dd1d30dd20926e6de9f
drm/amd/powerplay: fix checking gfxoff status for rn

For renoir, it should use mmSMUIO_GFX_MISC_CNTL to check
gfxoff status. For the first time to enter gfxoff status,
it maybe takes about one second more. So just set the max
timeout to 5s.

GFXOFF_STATUS(bits 2:1)'s description is below:
0=GFXOFF(default).
1=Transition out of GFX State.
2=Not in GFXOFF.
3=Transition into GFXOFF.

Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Aaron Liu <aaron.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smu_v12_0.c