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)
commita31b059b0385dae98e95d6074950c5d47de34661
tree8c1c203a1f99c8adcd9481bdff33daee59297888
parent9f21e9ee7f2ffc64a2f0f1f821fb22ded9d18761
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