Skip to content

Commit 22dcb28

Browse files
Hawking Zhangalexdeucher
authored andcommitted
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 <Hawking.Zhang@amd.com> Reviewed-by: Le Ma <le.ma@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 7b9110f commit 22dcb28

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,7 @@ static int psp_sw_init(struct amdgpu_ip_block *ip_block)
506506
}
507507

508508
ret = amdgpu_bo_create_kernel(adev, PSP_1_MEG, PSP_1_MEG,
509-
(amdgpu_sriov_vf(adev) || adev->debug_use_vram_fw_buf) ?
510-
AMDGPU_GEM_DOMAIN_VRAM : AMDGPU_GEM_DOMAIN_GTT,
509+
AMDGPU_GEM_DOMAIN_VRAM,
511510
&psp->fw_pri_bo,
512511
&psp->fw_pri_mc_addr,
513512
&psp->fw_pri_buf);

0 commit comments

Comments
 (0)