]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/pf: Drop rounddown_pow_of_two fair LMEM limitation
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 10 Sep 2025 22:24:39 +0000 (00:24 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 11 Sep 2025 16:20:57 +0000 (18:20 +0200)
commit95c1cfa306087142989bff34ea0e05dcd95ddc58
tree364339c75fbcdf15feb5b88869b808c81fc2d3ae
parent010629e00d8494d0ca3893fe802ee0cbec92c021
drm/xe/pf: Drop rounddown_pow_of_two fair LMEM limitation

This effectively reverts commit 4c3fe5eae46b ("drm/xe/pf: Limit
fair VF LMEM provisioning") since we don't need it any more after
non-contig VRAM allocations were fixed. This allows larger LMEM
auto-provisioning for VFs, so instead:

 [ ] GT0: PF: LMEM available(14096M) fair(1 x 8192M)
 [ ] GT0: PF: VF1 provisioned with 8589934592 (8.00 GiB) LMEM
or
 [ ] GT0: PF: LMEM available(14096M) fair(2 x 4096M)
 [ ] GT0: PF: VF1..VF2 provisioned with 4294967296 (4.00 GiB) LMEM

we may get:

 [ ] GT0: PF: LMEM available(14096M) fair(1 x 14096M)
 [ ] GT0: PF: VF1 provisioned with 14780727296 (13.8 GiB) LMEM
and
 [ ] GT0: PF: LMEM available(14096M) fair(2 x 7048M)
 [ ] GT0: PF: VF1..VF2 provisioned with 7390363648 (6.88 GiB) LMEM

Fixes: 1e32ffbc9dc8 ("drm/xe/sriov: support non-contig VRAM provisioning")
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Link: https://lore.kernel.org/r/20250910222439.32869-1-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c