drm/amdgpu: Allocate psp fw private buffer in vram
Subsystems (2)
PATCH 1/1 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
--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -2
@@ -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);
Signature · 1 line
2.17.1
[AMD Official Use Only - AMD Internal Distribution Only]
Quoted 34 lines
-----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 vramIt'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(-)drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +0
-1@@ -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-Quoted 1 line
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