]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/xe/vf: Use only assigned GGTT region
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 27 May 2024 11:20:15 +0000 (13:20 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 27 May 2024 16:46:27 +0000 (18:46 +0200)
commitd79e8cab32371b0f08ae0ed6f1b2b9bd8b7a2873
treeea4ae02e6e1e44dbf7249480375cdc40c1de6790
parentea797cf4b7f8470f1b23cd084096cb93fb93e6c3
drm/xe/vf: Use only assigned GGTT region

Each VF is assigned a limited range of the GGTT address space.
To ensure that the VF driver does not use GGTT allocations outside
of the assigned region, explicitly reserve GGTT space below and
above this region when initializing GGTT.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240527112015.1020-1-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_device_types.h
drivers/gpu/drm/xe/xe_ggtt.c
drivers/gpu/drm/xe/xe_gt_sriov_vf.c
drivers/gpu/drm/xe/xe_gt_sriov_vf.h