summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_uc.c
diff options
context:
space:
mode:
authorMichał Winiarski <michal.winiarski@intel.com>2024-02-19 14:05:28 +0100
committerRodrigo Vivi <rodrigo.vivi@intel.com>2024-02-20 14:13:45 -0500
commit7606f7d0f069c0fbb033b52e898c437c3aa13f32 (patch)
tree15fff2a42610f5d9b838b6c53c75be7c1664783a /drivers/gpu/drm/xe/xe_uc.c
parenta44bbace73dfb56a83d8dd5a6f2181d9d181522b (diff)
downloadlwn-7606f7d0f069c0fbb033b52e898c437c3aa13f32.tar.gz
lwn-7606f7d0f069c0fbb033b52e898c437c3aa13f32.zip
drm/xe/huc: Realloc HuC FW in vram for post-hwconfig
Similar to GuC, we're using system memory for the initial stage, and move the image to vram when it's available for subsequent loads (e.g. after reset). Signed-off-by: Michał Winiarski <michal.winiarski@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240219130530.1406044-2-michal.winiarski@intel.com
Diffstat (limited to 'drivers/gpu/drm/xe/xe_uc.c')
-rw-r--r--drivers/gpu/drm/xe/xe_uc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_uc.c b/drivers/gpu/drm/xe/xe_uc.c
index 8f37a809525f..d62137306d28 100644
--- a/drivers/gpu/drm/xe/xe_uc.c
+++ b/drivers/gpu/drm/xe/xe_uc.c
@@ -94,6 +94,10 @@ int xe_uc_init_post_hwconfig(struct xe_uc *uc)
if (err)
return err;
+ err = xe_huc_init_post_hwconfig(&uc->huc);
+ if (err)
+ return err;
+
return xe_gsc_init_post_hwconfig(&uc->gsc);
}