[PATCH] drm/xe: Only probe stolen memory when display support is enabled.

Matthew Auld matthew.auld at intel.com
Thu Feb 27 15:05:33 UTC 2025


On 27/02/2025 14:55, Maarten Lankhorst wrote:
> Without display, there is no need for display stolen memory.
> 
> Signed-off-by: Maarten Lankhorst <dev at lankhorst.se>

There is also xe_gsc_init_post_hwconfig() which looks to use stolen, and 
I don't think that is dependent on display. But maybe that gsc stuff 
doesn't have to use stolen? Daniele, any idea here?

> ---
>   drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c b/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
> index d9c9d2547aadf..2e60d5346ec43 100644
> --- a/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
> +++ b/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
> @@ -218,7 +218,7 @@ int xe_ttm_stolen_mgr_init(struct xe_device *xe)
>   	if (!mgr)
>   		return -ENOMEM;
>   
> -	if (IS_SRIOV_VF(xe))
> +	if (!xe->info.probe_display)
>   		stolen_size = 0;
>   	else if (IS_DGFX(xe))
>   		stolen_size = detect_bar2_dgfx(xe, mgr);



More information about the Intel-xe mailing list