[Intel-xe] [PATCH] fixup! drm/xe/uc: Store firmware binary in system-memory backed BO

Michał Winiarski michal.winiarski at intel.com
Tue Dec 5 10:07:27 UTC 2023


On Tue, Dec 05, 2023 at 09:57:15AM +0000, Francois Dugast wrote:
> Signed-off-by: Francois Dugast <francois.dugast at intel.com>

Reviewed-by: Michał Winiarski <michal.winiarski at intel.com>

-Michał

> ---
>  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 9abae65c6b23..f25c920ed8af 100644
> --- a/drivers/gpu/drm/xe/xe_uc_fw.c
> +++ b/drivers/gpu/drm/xe/xe_uc_fw.c
> @@ -760,7 +760,7 @@ int xe_uc_fw_init(struct xe_uc_fw *uc_fw)
>  	if (!fw)
>  		return 0;
>  
> -	err = uc_fw_copy(uc_fw, fw->data, fw->size,
> +	err = uc_fw_copy(uc_fw, fw->data, ALIGN(fw->size, PAGE_SIZE),
>  			 XE_BO_CREATE_SYSTEM_BIT | XE_BO_CREATE_GGTT_BIT);
>  
>  	uc_fw_release(fw);
> -- 
> 2.34.1
> 


More information about the Intel-xe mailing list