• Michel Thierry's avatar
    drm/i915/gen8: Add PML4 structure · 81ba8aef
    Michel Thierry authored
    Introduces the Page Map Level 4 (PML4), ie. the new top level structure
    of the page tables.
    
    To facilitate testing, 48b mode will be available on Broadwell and
    GEN9+, when i915.enable_ppgtt = 3.
    
    v2: Remove unnecessary CONFIG_X86_64 checks, ppgtt code is already
    32/64-bit safe (Chris).
    v3: Add goto free_scratch in temp 48-bit mode init code (Akash).
    v4: kfree the pdp until the 4lvl alloc/free patch (Akash).
    v5: Postpone 48-bit code in sanitize_enable_ppgtt (Akash).
    v6: Keep _insert_pte_entries changes outside this patch (Akash).
    
    Cc: Akash Goel <akash.goel@intel.com>
    Signed-off-by: default avatarMichel Thierry <michel.thierry@intel.com>
    Reviewed-by: default avatarAkash Goel <akash.goel@intel.com>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    81ba8aef
i915_gem_gtt.c 79.4 KB