[Intel-xe] [PATCH] drm/xe: Dump CTB during TLB timeout

Matthew Brost matthew.brost at intel.com
Thu Oct 26 21:43:55 UTC 2023


On Fri, Oct 27, 2023 at 12:18:52AM +0530, Pallavi Mishra wrote:
> Print CTB info during TLB invalidation
> timeout event.
> 
> Signed-off-by: Pallavi Mishra <pallavi.mishra at intel.com>

Reviewed-by: Matthew Brost <matthew.brost at intel.com>

> ---
>  drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
> index bd6005b9d498..b5c39c55e1fa 100644
> --- a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
> +++ b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
> @@ -319,6 +319,7 @@ int xe_gt_tlb_invalidation_wait(struct xe_gt *gt, int seqno)
>  {
>  	struct xe_device *xe = gt_to_xe(gt);
>  	struct xe_guc *guc = &gt->uc.guc;
> +	struct drm_printer p = drm_err_printer(__func__);
>  	int ret;
>  
>  	/*
> @@ -331,6 +332,7 @@ int xe_gt_tlb_invalidation_wait(struct xe_gt *gt, int seqno)
>  	if (!ret) {
>  		drm_err(&xe->drm, "gt%d: TLB invalidation time'd out, seqno=%d, recv=%d\n",
>  			gt->info.id, seqno, gt->tlb_invalidation.seqno_recv);
> +		xe_guc_ct_print(&guc->ct, &p, true);
>  		return -ETIME;
>  	}
>  
> -- 
> 2.25.1
> 


More information about the Intel-xe mailing list