summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@yahoo.com>2004-09-20 19:23:27 +0000
committerJon Smirl <jonsmirl@yahoo.com>2004-09-20 19:23:27 +0000
commit6f31c42fe923ff3f79a55d8c859e6ccfd3bd322d (patch)
tree62f1da478d0fd541eba121e9258b0d2623848983 /linux
parent59cc1d8256fb3b6e2374e52eb24da12b046aea91 (diff)
Remove size restriction on permanent addmap
Diffstat (limited to 'linux')
-rw-r--r--linux/drm_bufs.h9
-rw-r--r--linux/drm_drv.h1
2 files changed, 7 insertions, 3 deletions
diff --git a/linux/drm_bufs.h b/linux/drm_bufs.h
index 84ca1f47..f48ef6f1 100644
--- a/linux/drm_bufs.h
+++ b/linux/drm_bufs.h
@@ -182,11 +182,14 @@ int DRM(addmap)( struct inode *inode, struct file *filp,
/* If permanent maps are implemented, maps must match */
if (permanent_maps) {
+ DRM_DEBUG( "Looking for: offset = 0x%08lx, size = 0x%08lx, type = %d\n",
+ map->offset, map->size, map->type );
list_for_each( _list, &dev->maplist->head ) {
drm_map_list_t *_entry = list_entry( _list, drm_map_list_t, head );
- if ( _entry->map && _entry->map->type == map->type &&
- _entry->map->offset == map->offset &&
- _entry->map->size >= map->size ) {
+ DRM_DEBUG( "Checking: offset = 0x%08lx, size = 0x%08lx, type = %d\n",
+ _entry->map->offset, _entry->map->size, _entry->map->type );
+ if ( _entry->map && map->type == _entry->map->type &&
+ map->offset == _entry->map->offset ) {
DRM(free)( map, sizeof(*map), DRM_MEM_MAPS );
map = _entry->map;
DRM_DEBUG( "Found existing: offset = 0x%08lx, size = 0x%08lx, type = %d\n",
diff --git a/linux/drm_drv.h b/linux/drm_drv.h
index 0e5524f4..dc3c96ef 100644
--- a/linux/drm_drv.h
+++ b/linux/drm_drv.h
@@ -979,6 +979,7 @@ int DRM(ioctl)( struct inode *inode, struct file *filp,
}
atomic_dec( &dev->ioctl_count );
+ if (retcode) DRM_DEBUG( "ret = %x\n", retcode);
return retcode;
}