OSDN Git Service

drm/i915/gtt: reduce overzealous alignment constraints for GGTT
authorMatthew Auld <matthew.auld@intel.com>
Thu, 3 Mar 2022 10:02:29 +0000 (10:02 +0000)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Wed, 9 Mar 2022 06:34:55 +0000 (08:34 +0200)
commit5e7f44b5c2c035fe2e5458193c2bbee56db6a090
tree4eed5b6c48e035b565a38bb400c47e2ece2a336d
parent4546281e8ab215b2beaba8e79975c99859a84a56
drm/i915/gtt: reduce overzealous alignment constraints for GGTT

Currently this will enforce both 2M alignment and padding for any LMEM
pages inserted into the GGTT. However, this was only meant to be applied
to the compact-pt layout with the ppGTT. For the GGTT we can reduce the
alignment and padding to 64K.

Bspec: 45015
Fixes: 87bd701ee268 ("drm/i915: enforce min GTT alignment for discrete cards")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Robert Beckett <bob.beckett@collabora.com>
Cc: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220303100229.839282-1-matthew.auld@intel.com
(cherry picked from commit c64fa77dd4609cb8cd53fbb73b02434ae8212c7a)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/gt/intel_gtt.c