drm/xe: Fix error path in xe_guc_pc_start()
If the forcewake failed, put xe_device_mem_access. Reviewed-by: Matthew Brost <matthew.brost@intel.com> Link: https://lore.kernel.org/r/20230803234209.881924-2-lucas.demarchi@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
committed by
Rodrigo Vivi
parent
0c00542900
commit
d8b4494bf1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user