]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/xe/xe_late_bind_fw: Reload late binding fw in rpm resume
authorBadal Nilawar <badal.nilawar@intel.com>
Fri, 5 Sep 2025 15:49:50 +0000 (21:19 +0530)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 18 Sep 2025 16:32:01 +0000 (09:32 -0700)
Reload late binding fw during runtime resume.

Signed-off-by: Badal Nilawar <badal.nilawar@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://lore.kernel.org/r/20250905154953.3974335-7-badal.nilawar@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_late_bind_fw.c
drivers/gpu/drm/xe/xe_late_bind_fw.h
drivers/gpu/drm/xe/xe_pm.c

index bb161d99602ecfff7cabf0d19a97d8d03d7a3a0b..d4d64677bf48b14111eb3e5b2bfb2578c1c439ee 100644 (file)
@@ -82,7 +82,7 @@ static int xe_late_bind_fw_num_fans(struct xe_late_bind *late_bind)
                return 0;
 }
 
-static void xe_late_bind_wait_for_worker_completion(struct xe_late_bind *late_bind)
+void xe_late_bind_wait_for_worker_completion(struct xe_late_bind *late_bind)
 {
        struct xe_device *xe = late_bind_to_xe(late_bind);
        struct xe_late_bind_fw *lbfw;
index 28d56ed2bfdc099c7d27003533e7a154d4f3fe04..07e437390539591dd05c442cc586d477e6bb8b23 100644 (file)
@@ -12,5 +12,6 @@ struct xe_late_bind;
 
 int xe_late_bind_init(struct xe_late_bind *late_bind);
 int xe_late_bind_fw_load(struct xe_late_bind *late_bind);
+void xe_late_bind_wait_for_worker_completion(struct xe_late_bind *late_bind);
 
 #endif
index a303ed5780b4ba9b007d6ba38fc47b62affdd991..d34e1c1be35bbad9e7b7173270b95c12b3d93afd 100644 (file)
@@ -21,6 +21,7 @@
 #include "xe_gt_idle.h"
 #include "xe_i2c.h"
 #include "xe_irq.h"
+#include "xe_late_bind_fw.h"
 #include "xe_pcode.h"
 #include "xe_pxp.h"
 #include "xe_sriov_vf_ccs.h"
@@ -601,6 +602,9 @@ int xe_pm_runtime_resume(struct xe_device *xe)
        if (IS_VF_CCS_READY(xe))
                xe_sriov_vf_ccs_register_context(xe);
 
+       if (xe->d3cold.allowed)
+               xe_late_bind_fw_load(&xe->late_bind);
+
 out:
        xe_rpm_lockmap_release(xe);
        xe_pm_write_callback_task(xe, NULL);