]> Gentwo Git Trees - linux/.git/commit
drm/xe: Assert that VF will never use fixed placement of BOs
authorTomasz Lis <tomasz.lis@intel.com>
Tue, 21 Oct 2025 22:48:16 +0000 (00:48 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 22 Oct 2025 14:00:49 +0000 (16:00 +0200)
commit9a940bb52dcb359f639536bed977d837e323a593
treeb0af46e3222f32122b7e5e7633d1a9371b50533c
parentc88634339757736b86ed45c08bae74b4f47ed9d9
drm/xe: Assert that VF will never use fixed placement of BOs

Most BOs do not care at which offset they will be accessed within
GGTT or PPGTT. The few which do care, should be only created
on PF, and mapped within GGTT. On VFs, mapping at fixed offset
is prohibited, as each VF is granted access to a range of
GGTT address space.

Since fixed addresses of GGTT mapping can only be used on PF,
add an assert which makes sure no attempt of fixed placement
will happen for a driver probed on a VF.

Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Tomasz Lis <tomasz.lis@intel.com>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://lore.kernel.org/r/20251021224817.1593817-4-tomasz.lis@intel.com
drivers/gpu/drm/xe/xe_bo.c