drm/i915: introduce page_sizes field to dev_info
authorMatthew Auld <[email protected]>
Fri, 6 Oct 2017 22:18:16 +0000 (23:18 +0100)
committerChris Wilson <[email protected]>
Sat, 7 Oct 2017 09:11:44 +0000 (10:11 +0100)
commit2a9654b2cdd8f9ef51b91dfd4448973a47284825
tree6cfb621ca2ade1a4c39fbac1445d86ff7c337dfe
parentb901bb89324ae65573c5f5c0a126cb864096b77c
drm/i915: introduce page_sizes field to dev_info

In preparation for huge gtt pages expose page_sizes as part of the
device info, to indicate the page sizes supported by the HW.  Currently
only 4K is supported.

v2: s/page_size_mask/page_sizes/

v3: introduce I915_GTT_MAX_PAGE_SIZE

Signed-off-by: Matthew Auld <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Mika Kuoppala <[email protected]>
Cc: Chris Wilson <[email protected]>
Reviewed-by: Joonas Lahtinen <[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_drv.h
drivers/gpu/drm/i915/i915_gem_gtt.h
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/selftests/mock_gem_device.c