[PATCH 1/2] fixup! drm/xe/uc: Store firmware binary in system-memory backed BO
Francois Dugast
francois.dugast at intel.com
Tue Dec 12 14:28:25 UTC 2023
On Tue, Dec 12, 2023 at 03:20:44PM +0100, Maarten Lankhorst wrote:
> From: Maarten Lankhorst <dev at lankhorst.se>
>
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
Reviewed-by: Francois Dugast <francois.dugast at intel.com>
> ---
> drivers/gpu/drm/xe/xe_uc_fw.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_uc_fw.c b/drivers/gpu/drm/xe/xe_uc_fw.c
> index 6c3f601f4c1a..73d6938c921d 100644
> --- a/drivers/gpu/drm/xe/xe_uc_fw.c
> +++ b/drivers/gpu/drm/xe/xe_uc_fw.c
> @@ -762,7 +762,7 @@ int xe_uc_fw_init(struct xe_uc_fw *uc_fw)
> if (!fw)
> return 0;
>
> - err = uc_fw_copy(uc_fw, fw->data, ALIGN(fw->size, PAGE_SIZE),
> + err = uc_fw_copy(uc_fw, fw->data, fw->size,
> XE_BO_CREATE_SYSTEM_BIT | XE_BO_CREATE_GGTT_BIT);
>
> uc_fw_release(fw);
> --
> 2.40.1
>
More information about the Intel-xe
mailing list