]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Fix RLC safe mode test in gfx_v9_0_enter_rlc_safe_mode
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 19 Jul 2018 16:33:39 +0000 (18:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Sep 2018 07:45:33 +0000 (09:45 +0200)
commitc46a1b2622fa12f328ebb3f62072a04c4bf7100e
tree7f09720a8e55ffee998781274877889bc88bde75
parent7e1a6951ca99e78a7d8f3b3c77c6bbaef2462bf8
drm/amdgpu: Fix RLC safe mode test in gfx_v9_0_enter_rlc_safe_mode

commit 226127a67e31a9518d9516d3e4890759b379d874 upstream.

We were testing the register offset, instead of the value stored in the
register, therefore always timing out the loop.

This reduces suspend time of the system in the bug report below by ~600
ms.

Cc: stable@vger.kernel.org
Bugzilla: https://bugs.freedesktop.org/107277
Tested-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c