Skip to content

Commit 46fbe1e

Browse files
Hawking Zhangalexdeucher
authored andcommitted
Revert "drm/amdgpu: Allocate psp fw private buffer in vram"
This reverts commit 22dcb28. Need to certain APU platforms and will proceed to rework the patch accordingly 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 0a71ceb commit 46fbe1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,8 @@ 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_GEM_DOMAIN_VRAM,
509+
(amdgpu_sriov_vf(adev) || adev->debug_use_vram_fw_buf) ?
510+
AMDGPU_GEM_DOMAIN_VRAM : AMDGPU_GEM_DOMAIN_GTT,
510511
&psp->fw_pri_bo,
511512
&psp->fw_pri_mc_addr,
512513
&psp->fw_pri_buf);

0 commit comments

Comments
 (0)