]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/kms: restore surface registers on resume.
authorDave Airlie <airlied@redhat.com>
Wed, 9 Dec 2009 04:15:38 +0000 (14:15 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 10 Dec 2009 05:25:45 +0000 (15:25 +1000)
commit550e2d9270e2f0a10c3b063899f70e4cca25fe72
tree46878bc39515eae9ee1485ce046e16e8e47fda90
parent779720a3209849be202ac36a811e934865c50971
drm/radeon/kms: restore surface registers on resume.

On resume on my rv530 laptop surface cntl was left disabled, so
wierd stuff would happen with rendering to a tiled front buffer.

This checks if the surface regs are assigned to bos and reprograms
the surface registers on resume using the same path that clears
them all on init.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/r300.c
drivers/gpu/drm/radeon/r420.c
drivers/gpu/drm/radeon/r520.c
drivers/gpu/drm/radeon/radeon_device.c
drivers/gpu/drm/radeon/radeon_object.c
drivers/gpu/drm/radeon/radeon_object.h
drivers/gpu/drm/radeon/rs400.c
drivers/gpu/drm/radeon/rs600.c
drivers/gpu/drm/radeon/rs690.c
drivers/gpu/drm/radeon/rv515.c