summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
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;
}