From: Ben Widawsky Date: Thu, 20 Feb 2014 06:05:49 +0000 (-0800) Subject: drm/i915: Split GEN6 PPGTT initialization up X-Git-Tag: v3.15-rc1~51^2~55^2~86 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b146520ff9130bdc6c32e4a282d61576605e64a2;p=pandora-kernel.git drm/i915: Split GEN6 PPGTT initialization up Simply to match the GEN8 style of PPGTT initialization, split up the allocations and mappings. Unlike GEN8, we skip a separate dma_addr_t allocation function, as it is much simpler pre-gen8. With this code it would be easy to make a more general PPGTT initialization function with per GEN alloc/map/etc. or use a common helper, similar to the ringbuffer code. I don't see a benefit to doing this just yet, but who knows... Reviewed-by: Chris Wilson Signed-off-by: Ben Widawsky Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed