projects
/
profile
/
ivi
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5e0f8b
)
Make sure busmastering gets disabled on module unload.
author
Adam Jackson
<ajax@theobromine.nwnk.net>
Wed, 19 Jul 2006 19:35:31 +0000
(15:35 -0400)
committer
Adam Jackson
<ajax@theobromine.nwnk.net>
Wed, 19 Jul 2006 19:35:31 +0000
(15:35 -0400)
shared-core/radeon_cp.c
patch
|
blob
|
history
diff --git
a/shared-core/radeon_cp.c
b/shared-core/radeon_cp.c
index
695b5ec
..
299ec6a
100644
(file)
--- a/
shared-core/radeon_cp.c
+++ b/
shared-core/radeon_cp.c
@@
-1719,6
+1719,11
@@
static int radeon_do_cleanup_cp(drm_device_t * dev)
dev_priv->gart_info.addr = 0;
}
}
+
+ /* Disable busmastering */
+ RADEON_WRITE(RADEON_BUS_CNTL, RADEON_READ(RADEON_BUS_CNTL) |
+ RADEON_BUS_MASTER_DIS);
+
/* only clear to the start of flags */
memset(dev_priv, 0, offsetof(drm_radeon_private_t, flags));