diff options
author | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2024-05-21 13:48:57 +0200 |
---|---|---|
committer | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2024-05-22 18:26:22 +0200 |
commit | 3ec3b42752a29af22369e72d2935f36cf4c77713 (patch) | |
tree | 2a30ef4de6b1bd55f9f7ef70e4d751aa34eef7c9 /drivers/gpu/drm/xe/xe_uc.c | |
parent | dc51c682ddb0104851c8ccbe1d644163ae38262b (diff) | |
download | lwn-3ec3b42752a29af22369e72d2935f36cf4c77713.tar.gz lwn-3ec3b42752a29af22369e72d2935f36cf4c77713.zip |
drm/xe/uc: Don't emit false error if running in execlist mode
When running in execlist mode (using force_execlist=1 modparam)
we incorrectly select the error path in xe_uc_init(), leading to
an unwanted error message like this:
[ ] xe 0000:00:00.0: [drm] *ERROR* GT0: Failed to initialize uC (0000000000000000)
Fix that by doing early return like we do in other similar cases.
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240521114857.712-1-michal.wajdeczko@intel.com
Diffstat (limited to 'drivers/gpu/drm/xe/xe_uc.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_uc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_uc.c b/drivers/gpu/drm/xe/xe_uc.c index 0186eafc947d..85808706d1c8 100644 --- a/drivers/gpu/drm/xe/xe_uc.c +++ b/drivers/gpu/drm/xe/xe_uc.c @@ -51,7 +51,7 @@ int xe_uc_init(struct xe_uc *uc) goto err; if (!xe_device_uc_enabled(uc_to_xe(uc))) - goto err; + return 0; ret = xe_wopcm_init(&uc->wopcm); if (ret) |