File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
drivers/gpu/drm/i915/gt/uc Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -329,13 +329,15 @@ int intel_huc_init(struct intel_huc *huc)
329
329
330
330
void intel_huc_fini (struct intel_huc * huc )
331
331
{
332
- if (!intel_uc_fw_is_loadable (& huc -> fw ))
333
- return ;
334
-
332
+ /*
333
+ * the fence is initialized in init_early, so we need to clean it up
334
+ * even if HuC loading is off.
335
+ */
335
336
delayed_huc_load_complete (huc );
336
-
337
337
i915_sw_fence_fini (& huc -> delayed_load .fence );
338
- intel_uc_fw_fini (& huc -> fw );
338
+
339
+ if (intel_uc_fw_is_loadable (& huc -> fw ))
340
+ intel_uc_fw_fini (& huc -> fw );
339
341
}
340
342
341
343
void intel_huc_suspend (struct intel_huc * huc )
Original file line number Diff line number Diff line change @@ -722,6 +722,7 @@ int intel_uc_runtime_resume(struct intel_uc *uc)
722
722
723
723
static const struct intel_uc_ops uc_ops_off = {
724
724
.init_hw = __uc_check_hw ,
725
+ .fini = __uc_fini , /* to clean-up the init_early initialization */
725
726
};
726
727
727
728
static const struct intel_uc_ops uc_ops_on = {
You can’t perform that action at this time.
0 commit comments