]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: skip fw pri bo alloc for SRIOV
authorYintian Tao <yttao@amd.com>
Thu, 16 May 2019 05:07:26 +0000 (13:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 20 May 2019 17:59:45 +0000 (12:59 -0500)
commit12540565ce4aba6506fadda626201c9b2b7efa7a
tree9af0b7342047f119494ef773570e16c1f2286d28
parent533ebe10c8acbcdad0c7c40289d634e7e02c4681
drm/amdgpu: skip fw pri bo alloc for SRIOV

PSP fw primary buffer is not used under SRIOV.
Under SRIOV, VBIOS or hypervisor driver will load psp
sos and psp sysdrv. Therefore, we don't need to
allocate memory for it.

v2: remove superfluous check for amdgpu_bo_free_kernel().

Signed-off-by: Yintian Tao <yttao@amd.com>
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c