]> git.baikalelectronics.ru Git - kernel.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)
committerDave Airlie <airlied@redhat.com>
Thu, 19 Aug 2010 22:46:13 +0000 (08:46 +1000)
commit8b8ca4077f00634e406a3569f9caba5ccb67f83d
treed3f5bca149d1603ec0c4aabdc3e42a566da76bfe
parentf9ff7c90a104a1f7107a8d24340b164cf2a49aa7
drm/radeon/kms/pm: bail early if nothing's changing

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>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_pm.c