]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: refuse to reserve io mem for split VRAM buffers
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 16 Feb 2017 22:49:12 +0000 (23:49 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 21 Feb 2017 22:16:28 +0000 (17:16 -0500)
commit8c2f94f8cd4649e8d4807dabd9101b9d5c57d4ab
tree7285b01bac2477e0711af9a834e2f2ee118d61d2
parent2fe8d5378d8f8e4efeacc14ab4f98c5f29e6260f
drm/amdgpu: refuse to reserve io mem for split VRAM buffers

When the fast blit path fails while attempting to move a buffer from RAM
to VRAM, we fall back to a CPU-based memcpy that cannot handle split VRAM
buffers. Instead of crashing, simply fail the buffer move.

Ideally, we would teach TTM about split buffers so that the fallback still
works in this case, but that is quite involved. So for now, apply the
simplest possible fix.

Fixes: 40361bb1704b ("drm/amdgpu: add VRAM manager v2")
Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c