diff options
author | Jerome Glisse <jglisse@redhat.com> | 2009-10-01 12:02:12 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-10-01 19:33:52 -0400 |
commit | 81cc35bfc19ebe4b823396fe4fef67a923360916 (patch) | |
tree | da9cbddd170b1c93067f9c8e6411cbe02860f3e2 /drivers/gpu/drm/radeon/radeon.h | |
parent | 62a8ea3f7bb61e5f92db0a648b7cc566852c36ec (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index 902791d2275d..8d9dd03a9cda 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h | |||
@@ -1082,8 +1082,9 @@ extern int r600_pcie_gart_init(struct radeon_device *rdev); | |||
1082 | extern void r600_pcie_gart_tlb_flush(struct radeon_device *rdev); | 1082 | extern void r600_pcie_gart_tlb_flush(struct radeon_device *rdev); |
1083 | extern int r600_ib_test(struct radeon_device *rdev); | 1083 | extern int r600_ib_test(struct radeon_device *rdev); |
1084 | extern int r600_ring_test(struct radeon_device *rdev); | 1084 | extern int r600_ring_test(struct radeon_device *rdev); |
1085 | extern int r600_wb_init(struct radeon_device *rdev); | ||
1086 | extern void r600_wb_fini(struct radeon_device *rdev); | 1085 | extern void r600_wb_fini(struct radeon_device *rdev); |
1086 | extern int r600_wb_enable(struct radeon_device *rdev); | ||
1087 | extern void r600_wb_disable(struct radeon_device *rdev); | ||
1087 | extern void r600_scratch_init(struct radeon_device *rdev); | 1088 | extern void r600_scratch_init(struct radeon_device *rdev); |
1088 | extern int r600_blit_init(struct radeon_device *rdev); | 1089 | extern int r600_blit_init(struct radeon_device *rdev); |
1089 | extern void r600_blit_fini(struct radeon_device *rdev); | 1090 | extern void r600_blit_fini(struct radeon_device *rdev); |