From 67a3604b06203486f617d8aa16dfe01fb1f29730 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Tigeot?= Date: Thu, 9 Jun 2016 10:23:27 +0200 Subject: [PATCH] drm/i915: Fix hangs on some broadwell machines This driver failed to correctly initialize on some Broadwell systems, symptoms being a black screen and an always spinning cpu fan. --- sys/dev/drm/i915/i915_gem_gtt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/drm/i915/i915_gem_gtt.c b/sys/dev/drm/i915/i915_gem_gtt.c index f6cf3beccf..e8948c2441 100644 --- a/sys/dev/drm/i915/i915_gem_gtt.c +++ b/sys/dev/drm/i915/i915_gem_gtt.c @@ -1071,14 +1071,15 @@ static int gen8_ppgtt_init(struct i915_hw_ppgtt *ppgtt) return ret; ppgtt->base.start = 0; +#ifndef __DragonFly__ ppgtt->base.total = 1ULL << 32; -#define CONFIG_X86_32 0 if (IS_ENABLED(CONFIG_X86_32)) /* While we have a proliferation of size_t variables * we cannot represent the full ppgtt size on 32bit, * so limit it to the same size as the GGTT (currently * 2GiB). */ +#endif ppgtt->base.total = to_i915(ppgtt->base.dev)->gtt.base.total; ppgtt->base.cleanup = gen8_ppgtt_cleanup; ppgtt->base.allocate_va_range = gen8_alloc_va_range; -- 2.11.4.GIT