[PATCH] drm/xe/pf: Drop 2GiB limit of fair LMEM allocation
K V P, Satyanarayana
satyanarayana.k.v.p at intel.com
Fri Nov 22 03:24:16 UTC 2024
> -----Original Message-----
> From: Wajdeczko, Michal <Michal.Wajdeczko at intel.com>
> Sent: Thursday, November 21, 2024 11:28 PM
> To: intel-xe at lists.freedesktop.org
> Cc: Wajdeczko, Michal <Michal.Wajdeczko at intel.com>; K V P, Satyanarayana
> <satyanarayana.k.v.p at intel.com>
> Subject: [PATCH] drm/xe/pf: Drop 2GiB limit of fair LMEM allocation
>
> Since commit 678ccbf98796 ("drm/xe/vram: drop 2G block
> restriction") we are able to provision VFs with more than 2GiB.
> Drop our temporary limit of maximum fair LMEM size that was added
> just to avoid hitting -EINVAL from auto-provisioning.
>
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
> Cc: Satyanarayana K V P <satyanarayana.k.v.p at intel.com>
> ---
Reviewed-by: Satyanarayana K V P <satyanarayana.k.v.p at intel.com>
LGTM.
> drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
> b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
> index 8d84d2a9ab1e..65082f12f1a8 100644
> --- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
> +++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
> @@ -1545,8 +1545,6 @@ static u64 pf_query_max_lmem(struct xe_gt *gt)
>
> #ifdef CONFIG_DRM_XE_DEBUG_SRIOV
> #define MAX_FAIR_LMEM SZ_128M /* XXX: make it small for the
> driver bringup */
> -#else
> -#define MAX_FAIR_LMEM SZ_2G /* XXX: known issue with allocating
> BO over 2GiB */
> #endif
>
> static u64 pf_estimate_fair_lmem(struct xe_gt *gt, unsigned int num_vfs)
> --
> 2.43.0
More information about the Intel-xe
mailing list