summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-02-15 22:42:21 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-02-15 22:42:21 +0000
commit2def48d58a73e90423abe351eeb3c2faa4e4281c (patch)
tree10d454920cab65a3977bd08b85f57a2e57146c2d /sys/dev/pci
parent81f3c3ffaf72ed3a258bbec71df67d688240281e (diff)
the body of radeon_do_cp_flush() has been if 0ed out forever. so remove
it and just remove it from the only place it was called.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/drm/radeon_cp.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/sys/dev/pci/drm/radeon_cp.c b/sys/dev/pci/drm/radeon_cp.c
index f6c085fb5b5..9812bacd0e1 100644
--- a/sys/dev/pci/drm/radeon_cp.c
+++ b/sys/dev/pci/drm/radeon_cp.c
@@ -42,7 +42,6 @@ int radeon_do_cleanup_cp(struct drm_device *);
void radeon_do_cp_start(drm_radeon_private_t *);
void radeon_do_cp_reset(drm_radeon_private_t *);
void radeon_do_cp_stop(drm_radeon_private_t *);
-void radeon_do_cp_flush(drm_radeon_private_t * dev_priv);
int radeon_do_engine_reset(struct drm_device *);
void radeon_cp_init_ring_buffer(struct drm_device *, drm_radeon_private_t *);
int radeon_do_init_cp(struct drm_device *, drm_radeon_init_t *);
@@ -439,22 +438,6 @@ radeon_cp_load_microcode(drm_radeon_private_t *dev_priv)
}
}
-/* Flush any pending commands to the CP. This should only be used just
- * prior to a wait for idle, as it informs the engine that the command
- * stream is ending.
- */
-void
-radeon_do_cp_flush(drm_radeon_private_t *dev_priv)
-{
- DRM_DEBUG("\n");
-#if 0
- u32 tmp;
-
- tmp = RADEON_READ(RADEON_CP_RB_WPTR) | (1 << 31);
- RADEON_WRITE(RADEON_CP_RB_WPTR, tmp);
-#endif
-}
-
/* Wait for the CP to go idle.
*/
int
@@ -1431,13 +1414,6 @@ radeon_cp_stop(struct drm_device *dev, void *data, struct drm_file *file_priv)
if (!dev_priv->cp_running)
return 0;
- /* Flush any pending CP commands. This ensures any outstanding
- * commands are exectuted by the engine before we turn it off.
- */
- if (stop->flush) {
- radeon_do_cp_flush(dev_priv);
- }
-
/* If we fail to make the engine go idle, we return an error
* code so that the DRM ioctl wrapper can try again.
*/