Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Hawking Zhang and committed by
Alex Deucher
22dcb283 7b9110f2

+1 -2
+1 -2
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
··· 506 506 } 507 507 508 508 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, 511 510 &psp->fw_pri_bo, 512 511 &psp->fw_pri_mc_addr, 513 512 &psp->fw_pri_buf);