]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: don't try to reserve training bo for sriov (v2)
authorMonk Liu <Monk.Liu@amd.com>
Wed, 4 Mar 2020 07:21:22 +0000 (15:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 25 Mar 2020 21:04:35 +0000 (17:04 -0400)
commit04eb10c1e1a6404353cc72bb1c569884e4e995d6
tree629ccea9201f280bf3843ade02399db3028f5c06
parentf58be589f95b2afd07e27b84a8542a3aafdaae11
drm/amdgpu: don't try to reserve training bo for sriov (v2)

1) SRIOV guest KMD doesn't care training buffer
2) if we resered training buffer that will overlap with IP discovery
reservation because training buffer is at vram_size - 0x8000 and
IP discovery is at ()vram_size - 0x10000 => vram_size -1)

v2: squash in warning fix from Nirmoy

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Emily Deng <Emily.Deng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c