Skip to content

Commit 7293859

Browse files
committed
drm/xe/gsc: Fix FW status if the firmware is already loaded
We set the FW status to "TRANSFERRED" after the load completes and to "RUNNING"once we're done with proxy init, so do the same if we're trying to re-load the FW and it is already loaded. Note that there is no difference in driver behavior between the 2 states, but it's useful to be accurate when we dump the status for debug. Signed-off-by: Daniele Ceraolo Spurio <[email protected]> Cc: John Harrison <[email protected]> Cc: Alan Previn <[email protected]> Reviewed-by: Julia Filipchuk <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 2160f6f commit 7293859

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/gpu/drm/xe/xe_gsc.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,10 @@ void xe_gsc_load_start(struct xe_gsc *gsc)
531531

532532
/* GSC FW survives GT reset and D3Hot */
533533
if (gsc_fw_is_loaded(gt)) {
534-
xe_uc_fw_change_status(&gsc->fw, XE_UC_FIRMWARE_TRANSFERRED);
534+
if (xe_gsc_proxy_init_done(gsc))
535+
xe_uc_fw_change_status(&gsc->fw, XE_UC_FIRMWARE_RUNNING);
536+
else
537+
xe_uc_fw_change_status(&gsc->fw, XE_UC_FIRMWARE_TRANSFERRED);
535538
return;
536539
}
537540

0 commit comments

Comments
 (0)