[Intel-xe] [PATCH] CI: Print some GuC info on driver load failure
Matthew Brost
matthew.brost at intel.com
Mon Apr 3 04:37:13 UTC 2023
---
drivers/gpu/drm/xe/xe_uc.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_uc.c b/drivers/gpu/drm/xe/xe_uc.c
index 70eabf567156..65663f24e12e 100644
--- a/drivers/gpu/drm/xe/xe_uc.c
+++ b/drivers/gpu/drm/xe/xe_uc.c
@@ -8,6 +8,7 @@
#include "xe_device.h"
#include "xe_gt.h"
#include "xe_guc.h"
+#include "xe_guc_log.h"
#include "xe_guc_pc.h"
#include "xe_guc_submit.h"
#include "xe_huc.h"
@@ -149,8 +150,12 @@ int xe_uc_init_hw(struct xe_uc *uc)
return ret;
ret = xe_gt_record_default_lrcs(uc_to_gt(uc));
- if (ret)
+ if (ret) {
+ struct drm_printer p = drm_info_printer(uc_to_xe(uc)->drm.dev);
+
+ xe_guc_print_info(&uc->guc, &p);
return ret;
+ }
ret = xe_guc_post_load_init(&uc->guc);
if (ret)
--
2.34.1
More information about the Intel-xe
mailing list