mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
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>
This commit is contained in:
committed by
Lucas De Marchi
parent
691a54ad94
commit
69ac1bb8fc
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user