Skip to content

Commit 69ac1bb

Browse files
bnilawarlucasdemarchi
authored andcommitted
drm/xe/xe_late_bind_fw: Reload late binding fw in rpm resume
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>
1 parent 691a54a commit 69ac1bb

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

drivers/gpu/drm/xe/xe_late_bind_fw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static int xe_late_bind_fw_num_fans(struct xe_late_bind *late_bind)
8282
return 0;
8383
}
8484

85-
static void xe_late_bind_wait_for_worker_completion(struct xe_late_bind *late_bind)
85+
void xe_late_bind_wait_for_worker_completion(struct xe_late_bind *late_bind)
8686
{
8787
struct xe_device *xe = late_bind_to_xe(late_bind);
8888
struct xe_late_bind_fw *lbfw;

drivers/gpu/drm/xe/xe_late_bind_fw.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ struct xe_late_bind;
1212

1313
int xe_late_bind_init(struct xe_late_bind *late_bind);
1414
int xe_late_bind_fw_load(struct xe_late_bind *late_bind);
15+
void xe_late_bind_wait_for_worker_completion(struct xe_late_bind *late_bind);
1516

1617
#endif

drivers/gpu/drm/xe/xe_pm.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "xe_gt_idle.h"
2222
#include "xe_i2c.h"
2323
#include "xe_irq.h"
24+
#include "xe_late_bind_fw.h"
2425
#include "xe_pcode.h"
2526
#include "xe_pxp.h"
2627
#include "xe_sriov_vf_ccs.h"
@@ -601,6 +602,9 @@ int xe_pm_runtime_resume(struct xe_device *xe)
601602
if (IS_VF_CCS_READY(xe))
602603
xe_sriov_vf_ccs_register_context(xe);
603604

605+
if (xe->d3cold.allowed)
606+
xe_late_bind_fw_load(&xe->late_bind);
607+
604608
out:
605609
xe_rpm_lockmap_release(xe);
606610
xe_pm_write_callback_task(xe, NULL);

0 commit comments

Comments
 (0)