drm/radeon/kms: don't call suspend path before cleaning up GPU
authorJerome Glisse <jglisse@redhat.com>
Tue, 2 Feb 2010 10:51:45 +0000 (11:51 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 5 Feb 2010 01:49:52 +0000 (11:49 +1000)
commit655efd3dc92cd0d37292157178d33deb0430aeaa
tree9177003ca9a830e4cb976b93e491c53ceccb49df
parent94cf6434a1bc5958d5da3be62f1272792dada2bf
drm/radeon/kms: don't call suspend path before cleaning up GPU

In suspend path we unmap the GART table while in cleaning up
path we will unbind buffer and thus try to write to unmapped
GART leading to oops. In order to avoid this we don't call the
suspend path in cleanup path. Cleanup path is clever enough
to desactive GPU like the suspend path is doing, thus this was
redondant.

Tested on: RV370, R420, RV515, RV570, RV610, RV770 (all PCIE)

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
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/r600.c
drivers/gpu/drm/radeon/radeon.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
drivers/gpu/drm/radeon/rv770.c