[AMD Official Use Only - AMD Internal Distribution Only]

Reviewed-by: Le Ma <[email protected]>

> -----Original Message-----
> From: Zhang, Hawking <[email protected]>
> Sent: Tuesday, August 19, 2025 4:31 PM
> To: [email protected]; Ma, Le <[email protected]>
> Cc: Zhang, Hawking <[email protected]>
> Subject: [PATCH] drm/amdgpu: Allocate psp fw private buffer in vram
>
> It's not necessarily to allocate psp firmware private buffer in different 
> memory domain
> in sriov and bare metal environment
>
> Signed-off-by: Hawking Zhang <[email protected]>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
> index 04dedf38eb0d..d53700c87a5e 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
> @@ -506,8 +506,7 @@ static int psp_sw_init(struct amdgpu_ip_block *ip_block)
>       }
>
>       ret = amdgpu_bo_create_kernel(adev, PSP_1_MEG, PSP_1_MEG,
> -                                   (amdgpu_sriov_vf(adev) || adev-
> >debug_use_vram_fw_buf) ?
> -                                   AMDGPU_GEM_DOMAIN_VRAM :
> AMDGPU_GEM_DOMAIN_GTT,
> +                                   AMDGPU_GEM_DOMAIN_VRAM,
>                                     &psp->fw_pri_bo,
>                                     &psp->fw_pri_mc_addr,
>                                     &psp->fw_pri_buf);
> --
> 2.17.1

Reply via email to