[PATCH i-g-t v2 06/66] lib/xe_eudebug: Add attention events support

Piatkowski, Dominik Karol dominik.karol.piatkowski at intel.com
Thu Aug 1 11:20:50 UTC 2024


Reviewed-by: Dominik Karol Piątkowski <dominik.karol.piatkowski at intel.com>

> -----Original Message-----
> From: Manszewski, Christoph <christoph.manszewski at intel.com>
> Sent: Tuesday, July 30, 2024 1:44 PM
> To: igt-dev at lists.freedesktop.org
> Cc: Kempczynski, Zbigniew <zbigniew.kempczynski at intel.com>; Kamil
> Konieczny <kamil.konieczny at linux.intel.com>; Grzegorzek, Dominik
> <dominik.grzegorzek at intel.com>; Patelczyk, Maciej
> <maciej.patelczyk at intel.com>; Piatkowski, Dominik Karol
> <dominik.karol.piatkowski at intel.com>; Sikora, Pawel
> <pawel.sikora at intel.com>; Hajda, Andrzej <andrzej.hajda at intel.com>;
> Kolanupaka Naveena <kolanupaka.naveena at intel.com>; Kuoppala, Mika
> <mika.kuoppala at intel.com>; Mun, Gwan-gyeong <gwan-
> gyeong.mun at intel.com>
> Subject: [PATCH i-g-t v2 06/66] lib/xe_eudebug: Add attention events support
> 
> From: Dominik Grzegorzek <dominik.grzegorzek at intel.com>
> 
> Respect attention events in eu debugger library.
> 
> Signed-off-by: Dominik Grzegorzek <dominik.grzegorzek at intel.com>
> Cc: Christoph Manszewski <christoph.manszewski at intel.com>
> ---
>  lib/xe/xe_eudebug.c | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/lib/xe/xe_eudebug.c b/lib/xe/xe_eudebug.c index
> c84c9d9b7..8a57aaae3 100644
> --- a/lib/xe/xe_eudebug.c
> +++ b/lib/xe/xe_eudebug.c
> @@ -54,6 +54,8 @@ static const char *type_to_str(unsigned int type)
>  		return "vm";
>  	case DRM_XE_EUDEBUG_EVENT_EXEC_QUEUE:
>  		return "exec_queue";
> +	case DRM_XE_EUDEBUG_EVENT_EU_ATTENTION:
> +		return "attention";
>  	}
> 
>  	return "UNKNOWN";
> @@ -105,6 +107,15 @@ static const char *event_members_to_str(struct
> drm_xe_eudebug_event *e, char *b)
>  			ee->exec_queue_handle, ee->engine_class, ee-
> >width);
>  		break;
>  	}
> +	case DRM_XE_EUDEBUG_EVENT_EU_ATTENTION: {
> +		struct drm_xe_eudebug_event_eu_attention *ea = (void *)e;
> +
> +		sprintf(b, "client_handle=%llu, exec_queue_handle=%llu, "
> +			   "lrc_handle=%llu, bitmask_size=%d",
> +			ea->client_handle, ea->exec_queue_handle,
> +			ea->lrc_handle, ea->bitmask_size);
> +		break;
> +	}
>  	default:
>  		strcpy(b, "<...>");
>  	}
> --
> 2.34.1



More information about the igt-dev mailing list