Index: sys/external/bsd/drm/dist/shared-core/i915_dma.c =================================================================== RCS file: /cvsroot/src/sys/external/bsd/drm/dist/shared-core/i915_dma.c,v retrieving revision 1.3 diff -p -u -r1.3 i915_dma.c --- sys/external/bsd/drm/dist/shared-core/i915_dma.c 12 Sep 2009 17:16:41 -0000 1.3 +++ sys/external/bsd/drm/dist/shared-core/i915_dma.c 17 Jul 2014 15:43:16 -0000 @@ -861,8 +861,10 @@ int i915_driver_load(struct drm_device * /* Add register map (needed for suspend/resume) */ base = drm_get_resource_start(dev, mmio_bar); size = drm_get_resource_len(dev, mmio_bar); + if (size < 512*1024) + DRM_ERROR("Gakk! Your registers are too small, Mr Graphics!"); - ret = drm_addmap(dev, base, size, _DRM_REGISTERS, + ret = drm_addmap(dev, base, 512*1024, _DRM_REGISTERS, _DRM_KERNEL | _DRM_DRIVER, &dev_priv->mmio_map); if (IS_GM45(dev))