diff options
author | Lucas De Marchi <[email protected]> | 2023-08-03 16:42:09 -0700 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2023-12-21 11:39:29 -0500 |
commit | d8b4494bf184d43295b89156d7656d69f931e418 (patch) | |
tree | 49684b24cdc0a82f77a4303d81bd943380e7dbf3 | |
parent | 0c005429005228d7a82e4e8d5d8f24b6192e7aa6 (diff) |
drm/xe: Fix error path in xe_guc_pc_start()
If the forcewake failed, put xe_device_mem_access.
Reviewed-by: Matthew Brost <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lucas De Marchi <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
-rw-r--r-- | drivers/gpu/drm/xe/xe_guc_pc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_guc_pc.c b/drivers/gpu/drm/xe/xe_guc_pc.c index 19d743f92f43..c03bb58e7049 100644 --- a/drivers/gpu/drm/xe/xe_guc_pc.c +++ b/drivers/gpu/drm/xe/xe_guc_pc.c @@ -825,7 +825,7 @@ int xe_guc_pc_start(struct xe_guc_pc *pc) ret = xe_force_wake_get(gt_to_fw(gt), XE_FORCEWAKE_ALL); if (ret) - return ret; + goto out_fail_force_wake; ret = pc_action_reset(pc); if (ret) @@ -851,6 +851,7 @@ int xe_guc_pc_start(struct xe_guc_pc *pc) out: XE_WARN_ON(xe_force_wake_put(gt_to_fw(gt), XE_FORCEWAKE_ALL)); +out_fail_force_wake: xe_device_mem_access_put(pc_to_xe(pc)); return ret; } |