aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <[email protected]>2018-11-01 07:54:24 +0000
committerPaul Burton <[email protected]>2018-11-05 18:08:13 +0000
commitd01501f85249848a2497968d46dd46d5c6fe32e6 (patch)
tree1220e311780a26fe3c3c69c662dc76d014c47722 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentMIPS: OCTEON: fix out of bounds array access on CN68XX (diff)
downloadkernel-d01501f85249848a2497968d46dd46d5c6fe32e6.tar.gz
kernel-d01501f85249848a2497968d46dd46d5c6fe32e6.zip
MIPS: Fix `dma_alloc_coherent' returning a non-coherent allocation
Fix a MIPS `dma_alloc_coherent' regression from commit bc3ec75de545 ("dma-mapping: merge direct and noncoherent ops") that causes a cached allocation to be returned on noncoherent cache systems. This is due to an inverted check now used in the MIPS implementation of `arch_dma_alloc' on the result from `dma_direct_alloc_pages' before doing the cached-to-uncached mapping of the allocation address obtained. The mapping has to be done for a non-NULL rather than NULL result, because a NULL result means the allocation has failed. Invert the check for correct operation then. Signed-off-by: Maciej W. Rozycki <[email protected]> Signed-off-by: Paul Burton <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Fixes: bc3ec75de545 ("dma-mapping: merge direct and noncoherent ops") Patchwork: https://patchwork.linux-mips.org/patch/20965/
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions