summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
diff options
context:
space:
mode:
authorHorace Chen <horace.chen@amd.com>2017-11-01 19:32:11 +0800
committerAlex Deucher <alexander.deucher@amd.com>2017-12-04 16:41:42 -0500
commit3c7388936a76affe656d7ba682a33740a99b4a19 (patch)
tree039fa61bf66bdd70288339cf7b4a910d5a96735a /drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
parent5ffa61c1bdc35895f60ef7b553b43266d3fda469 (diff)
downloadlwn-3c7388936a76affe656d7ba682a33740a99b4a19.tar.gz
lwn-3c7388936a76affe656d7ba682a33740a99b4a19.zip
drm/amdgpu: refine SR-IOV firmware VRAM reservation to protect data
The previous solution will create a zero buffer on the system domain and then move the zeroes to the VRAM. This will break the original data on the VRAM. Refine the code to create bo on VRAM domain directly and then remove and re-create mem node to the exact position before bo_pin. This can avoid breaking the data and will not cause eviction. Signed-off-by: Horace Chen <horace.chen@amd.com> Reviewed-by: monk liu <monk.liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c')
0 files changed, 0 insertions, 0 deletions