]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: enforce min page size for scratch
authorMatthew Auld <matthew.auld@intel.com>
Wed, 8 Dec 2021 14:16:13 +0000 (19:46 +0530)
committerRamalingam C <ramalingam.c@intel.com>
Thu, 9 Dec 2021 16:39:30 +0000 (22:09 +0530)
commit70f4e8f6c8f3cd36e226dfb45ee2b6ff7b89abed
treeb69e59dd7cb68558537c2ee9cbabcf85f8531a8a
parent0e609e59f1d2759be2b1d3db10e5e0f935faf8d9
drm/i915: enforce min page size for scratch

If the device needs 64K minimum GTT pages for device local-memory,
like on XEHPSDV, then we need to fail the allocation if we can't
meet it, instead of falling back to 4K pages, otherwise we can't
safely support the insertion of device local-memory pages for
this vm, since the HW expects the correct physical alignment and
size for every PTE, if we mark the page-table as 64K GTT mode.

v2: s/userpsace/userspace [Thomas]

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211208141613.7251-5-ramalingam.c@intel.com
drivers/gpu/drm/i915/gt/intel_gtt.c