This patch set is to fix a bug in amdgpu that results in a crash when dma_map_sg combines segments. There are 2 shortfalls in the current kernel.
1) AMDGPU assumes that the requested and created segments from dma_map_sg are equal
2) drm_prime does not allow for setting the segment length via the correct dma macro
Shane Francis (2): drm/prime: correct logic for mapping sg to arrays drm/amdgpu: fix scatter-gather mapping with user pages
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 7 +-- drivers/gpu/drm/drm_prime.c | 71 +++++++++++++++++++++---- include/drm/drm_prime.h | 5 ++ 3 files changed, 71 insertions(+), 12 deletions(-)