aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorHorace Chen <[email protected]>2017-11-01 11:32:11 +0000
committerAlex Deucher <[email protected]>2017-12-04 21:41:42 +0000
commit3c7388936a76affe656d7ba682a33740a99b4a19 (patch)
tree039fa61bf66bdd70288339cf7b4a910d5a96735a /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentdrm/amdgpu: retry init if exclusive mode request is failed (diff)
downloadkernel-3c7388936a76affe656d7ba682a33740a99b4a19.tar.gz
kernel-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 <[email protected]> Reviewed-by: monk liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions