drm/radeon/kms: Fix R600 write back buffer
authorJerome Glisse <jglisse@redhat.com>
Thu, 1 Oct 2009 16:02:12 +0000 (18:02 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 1 Oct 2009 23:33:52 +0000 (09:33 +1000)
commit81cc35bfc19ebe4b823396fe4fef67a923360916
treeda9cbddd170b1c93067f9c8e6411cbe02860f3e2
parent62a8ea3f7bb61e5f92db0a648b7cc566852c36ec
drm/radeon/kms: Fix R600 write back buffer

This split write back buffer handling into 3 functions,
wb_fini for cleanup, wb_enable/wb_disable for enabling/disabling
write back used for suspend/resume. This should fix
potential issue of letting the write back active before
suspending. We need to allocate memory in wb_enable because
we can only allocate once GART is running.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/rv770.c