From 3095bcbd3d530e5123a6bf051553f38fc3a388bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Tigeot?= Date: Tue, 10 Jan 2017 22:46:52 +0100 Subject: [PATCH] drm/i1915: Disable stolen memory support Some initialization code paths are not yet enabled, making it crash-prone on some hardware --- sys/dev/drm/i915/i915_gem_stolen.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/drm/i915/i915_gem_stolen.c b/sys/dev/drm/i915/i915_gem_stolen.c index 0c7cd77dc5..b21adc3fb3 100644 --- a/sys/dev/drm/i915/i915_gem_stolen.c +++ b/sys/dev/drm/i915/i915_gem_stolen.c @@ -396,6 +396,10 @@ int i915_gem_init_stolen(struct drm_device *dev) unsigned long stolen_top; lockinit(&dev_priv->mm.stolen_lock, "i915msl", 0, LK_CANRECURSE); +#ifdef __DragonFly__ + /* Stolen memory support is still incomplete */ + return 0; +#endif #ifdef CONFIG_INTEL_IOMMU if (intel_iommu_gfx_mapped && INTEL_INFO(dev)->gen < 8) { -- 2.11.4.GIT