drm/i915: support 2M pages for the 48b PPGTT
authorMatthew Auld <[email protected]>
Fri, 6 Oct 2017 22:18:24 +0000 (23:18 +0100)
committerChris Wilson <[email protected]>
Sat, 7 Oct 2017 09:11:55 +0000 (10:11 +0100)
commit0a03852e049af91da9ae70326c44bb5d9b0d377a
treec4f082c4233500edde92e9a53c0d30995d764941
parent8cb0983678e05939457d867e09bddb6883db5268
drm/i915: support 2M pages for the 48b PPGTT

Support inserting 2M gtt pages into the 48b PPGTT.

v2: sanity check sg->length against page_size

v3: don't recalculate rem on each loop
    whitespace breakup

Signed-off-by: Matthew Auld <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Chris Wilson <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h