]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/pf: Use migration-friendly VRAM auto-provisioning
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 18 Feb 2026 20:55:47 +0000 (21:55 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 20 Feb 2026 14:50:03 +0000 (15:50 +0100)
commit81d417d56a23f94b288587af59111f20aaf83c03
tree0280dcd280535c42b797f57734961df1a6dfa12d
parentb1d2746aa5af17d1c901c36564e52da5c6bedae5
drm/xe/pf: Use migration-friendly VRAM auto-provisioning

Instead of trying very hard to find the largest fair VRAM (aka LMEM)
size that could be allocated for VFs on the current tile, pick some
smaller rounded down to power-of-two value that is more likely to be
provisioned in the same manner by the other PF instances.

In some cases, the outcome of above calculation might not be optimal,
but it's expected that admin will do fine-tuning using sysfs files.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Link: https://patch.msgid.link/20260218205553.3561-6-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c