Commit 69ac1bb8 authored by Badal Nilawar's avatar Badal Nilawar Committed by Lucas De Marchi
Browse files

drm/xe/xe_late_bind_fw: Reload late binding fw in rpm resume

parent 691a54ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −0
Original line number Diff line number Diff line
@@ -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
+4 −0
Original line number Diff line number Diff line
@@ -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);