File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 23
23
#include "xe_guc_submit.h"
24
24
#include "xe_hw_engine.h"
25
25
#include "xe_module.h"
26
+ #include "xe_pm.h"
26
27
#include "xe_sched_job.h"
27
28
#include "xe_vm.h"
28
29
@@ -158,8 +159,11 @@ static void xe_devcoredump_deferred_snap_work(struct work_struct *work)
158
159
{
159
160
struct xe_devcoredump_snapshot * ss = container_of (work , typeof (* ss ), work );
160
161
struct xe_devcoredump * coredump = container_of (ss , typeof (* coredump ), snapshot );
162
+ struct xe_device * xe = coredump_to_xe (coredump );
161
163
unsigned int fw_ref ;
162
164
165
+ xe_pm_runtime_get (xe );
166
+
163
167
/* keep going if fw fails as we still want to save the memory and SW data */
164
168
fw_ref = xe_force_wake_get (gt_to_fw (ss -> gt ), XE_FORCEWAKE_ALL );
165
169
if (!xe_force_wake_ref_has_domain (fw_ref , XE_FORCEWAKE_ALL ))
@@ -168,6 +172,8 @@ static void xe_devcoredump_deferred_snap_work(struct work_struct *work)
168
172
xe_guc_exec_queue_snapshot_capture_delayed (ss -> ge );
169
173
xe_force_wake_put (gt_to_fw (ss -> gt ), fw_ref );
170
174
175
+ xe_pm_runtime_put (xe );
176
+
171
177
/* Calculate devcoredump size */
172
178
ss -> read .size = __xe_devcoredump_read (NULL , INT_MAX , coredump );
173
179
You can’t perform that action at this time.
0 commit comments