drm/xe: Allow to exclude part of GGTT from allocations
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 11 Jan 2024 18:25:59 +0000 (19:25 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 12 Jan 2024 10:49:16 +0000 (11:49 +0100)
commit33ff1f21bd2fb69620d5ffc7afccf74cbc403097
tree8590c025d27a46f518ad871e0e2d6caacc7ffbe0
parentd4978a67ae97a2b875c8e8b6684866ee1d35fa80
drm/xe: Allow to exclude part of GGTT from allocations

Soon we will be required to exclude some of the GGTT addresses
from the allocations, since on some platforms running the SR-IOV VF
mode, we will be able to use only selected range of the GGTT space.

Add helper functions to manage such GGTT range exclusions, and
follow the naming from the similar concept used by GVT-g.

Reviewed-by: Piotr PiĆ³rkowski <piotr.piorkowski@intel.com>
Link: https://lore.kernel.org/r/20240111182559.629-1-michal.wajdeczko@intel.com
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
drivers/gpu/drm/xe/xe_ggtt.c
drivers/gpu/drm/xe/xe_ggtt.h