Re: [PATCH v4 27/32] drm/xe/pcode: Report 'initialization timedout' error using SIGID
Rodrigo Vivi <[email protected]>
| Newsgroups | org.freedesktop.lists.intel-xe |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Aug 12, 2026 at 09:14:43PM +0200, Michal Wajdeczko wrote: > Report 'initialization timedout' error using xe_log_err() helper. > > Signed-off-by: Michal Wajdeczko <[email protected]> > Cc: Rodrigo Vivi <[email protected]> > Cc: Riana Tauro <[email protected]> > Cc: Aravind Iddamsetty <[email protected]> > Cc: Mallesh Koujalagi <[email protected]> > Cc: Umesh Nerlige Ramappa <[email protected]> Reviewed-by: Rodrigo Vivi <[email protected]> > --- > drivers/gpu/drm/xe/xe_pcode.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/xe/xe_pcode.c b/drivers/gpu/drm/xe/xe_pcode.c > index 14b13a11d1d6..e1b8062541a9 100644 > --- a/drivers/gpu/drm/xe/xe_pcode.c > +++ b/drivers/gpu/drm/xe/xe_pcode.c > @@ -297,7 +297,7 @@ int xe_pcode_ready(struct xe_device *xe, bool locked) > { > u32 status, request = DGFX_GET_INIT_STATUS; > struct xe_tile *tile = xe_device_get_root_tile(xe); > - int timeout_us = 180000000; /* 3 min */ > + long timeout_us = 3 * 60 * USEC_PER_SEC; /* 3 min */ > int ret; > > if (xe->info.skip_pcode) > @@ -318,8 +318,8 @@ int xe_pcode_ready(struct xe_device *xe, bool locked) > mutex_unlock(&tile->pcode.lock); > > if (ret) > - drm_err(&xe->drm, > - "PCODE initialization timedout after: 3 min\n"); > + xe_log_err(tile, PCODE, ret, "initialization timedout after %ld seconds\n", > + timeout_us / USEC_PER_SEC); > > return ret; > } > -- > 2.47.1 >