[PATCH 04/11] drm/xe: Defer irq init until after xe_display_init_noaccel

Levi, Ilia ilia.levi at intel.com
Tue Dec 10 18:06:30 UTC 2024


On 10/12/2024 10:31, Maarten Lankhorst wrote:
> We want to merge xe_display_init_noirq and xe_display_init_noaccel,
> by not enabling interrupts in between, this should be safe to do.
>
> Signed-off-by: Maarten Lankhorst <dev at lankhorst.se>
> ---
>  drivers/gpu/drm/xe/xe_device.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
Reviewed-by: Ilia Levi <ilia.levi at intel.com>
> diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
> index c1b4601a14779..fbec176ee64ad 100644
> --- a/drivers/gpu/drm/xe/xe_device.c
> +++ b/drivers/gpu/drm/xe/xe_device.c
> @@ -701,10 +701,6 @@ int xe_device_probe(struct xe_device *xe)
>  	if (err)
>  		return err;
>  
> -	err = xe_irq_install(xe);
> -	if (err)
> -		goto err;
> -
>  	err = probe_has_flat_ccs(xe);
>  	if (err)
>  		goto err;
> @@ -738,6 +734,10 @@ int xe_device_probe(struct xe_device *xe)
>  			goto err;
>  	}
>  
> +	err = xe_irq_install(xe);
> +	if (err)
> +		goto err;
> +
>  	for_each_gt(gt, xe, id) {
>  		last_gt = id;
>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-xe/attachments/20241210/5823f737/attachment-0001.htm>


More information about the Intel-xe mailing list