[PATCH v2 5/6] drm/xe: Move HuC init before GuC init
Matthew Brost
matthew.brost at intel.com
Tue Aug 20 17:29:57 UTC 2024
The GuC fini, also fini the HuC so move HuC init first.
Signed-off-by: Matthew Brost <matthew.brost at intel.com>
---
drivers/gpu/drm/xe/xe_uc.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_uc.c b/drivers/gpu/drm/xe/xe_uc.c
index 0d073a9987c2..5b7d6f44a7de 100644
--- a/drivers/gpu/drm/xe/xe_uc.c
+++ b/drivers/gpu/drm/xe/xe_uc.c
@@ -36,6 +36,10 @@ int xe_uc_init(struct xe_uc *uc)
{
int ret;
+ ret = xe_huc_init(&uc->huc);
+ if (ret)
+ goto err;
+
/*
* We call the GuC/HuC/GSC init functions even if GuC submission is off
* to correctly move our tracking of the FW state to "disabled".
@@ -44,10 +48,6 @@ int xe_uc_init(struct xe_uc *uc)
if (ret)
goto err;
- ret = xe_huc_init(&uc->huc);
- if (ret)
- goto err;
-
ret = xe_gsc_init(&uc->gsc);
if (ret)
goto err;
--
2.34.1
More information about the Intel-xe
mailing list