]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/radeon/kms/pm: bail early if nothing's changing
authorAlex Deucher <alexdeucher@gmail.com>
Fri, 13 Aug 2010 14:53:35 +0000 (10:53 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Aug 2010 23:46:20 +0000 (16:46 -0700)
commit0e485a9e6662219a4458f08c0dce6ff1a7222d8a
treec90855fad92a237fa4438de004d5b6df50b7b056
parenteeba6084bb7f45c3fdedbce67cffd6bcef834ef8
drm/radeon/kms/pm: bail early if nothing's changing

commit 4e186b2d6c878793587c35d7f06c94565d76e9b8 upstream.

If we aren't changing the power state, no need to take
locks and schedule fences, etc.

There seem to be lock ordering issues in the CP and
fence code in some cases; see bug 29140 below.

Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=29140
Possibly also:
https://bugzilla.kernel.org/show_bug.cgi?id=16581

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/radeon/radeon_pm.c