Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f365f911 authored by Michel Thierry's avatar Michel Thierry Committed by Daniel Vetter
Browse files

drm/i915: Use complete virtual address range on 32-bit platforms



With the offset length being taken care of in ("drm/i915/gtt: Allow >=
4GB offsets in X86_32"), the code should be finally safe in 32-bit
kernels.

This reverts commit 501fd70f
Author: Michel Thierry <michel.thierry@intel.com>
Date:   Fri May 29 14:15:05 2015 +0100

    drm/i915: limit PPGTT size to 2GB in 32-bit platforms

Signed-off-by: default avatarMichel Thierry <michel.thierry@intel.com>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 088e0df4
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -1480,14 +1480,6 @@ static int gen8_ppgtt_init(struct i915_hw_ppgtt *ppgtt)
			goto free_scratch;

		ppgtt->base.total = 1ULL << 32;
		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).
			 */
			ppgtt->base.total = to_i915(ppgtt->base.dev)->gtt.base.total;

		ppgtt->switch_mm = gen8_legacy_mm_switch;
		trace_i915_page_directory_pointer_entry_alloc(&ppgtt->base,
							      0, 0,