diff options
| author | Robin Murphy <robin.murphy@arm.com> | 2016-03-10 19:28:12 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-05-04 14:48:45 -0700 |
| commit | e05cff2aa31766746f02c932e11b6b2ae357464c (patch) | |
| tree | e4216956325304b037bb72a18ce584618e23c44d /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | 99067b8e854211316200b3d6375a664448c2fabd (diff) | |
iommu/dma: Restore scatterlist offsets correctly
commit 07b48ac4bbe527e68cfc555f2b2b206908437141 upstream.
With the change to stashing just the IOVA-page-aligned remainder of the
CPU-page offset rather than the whole thing, the failure path in
__invalidate_sg() also needs tweaking to account for that in the case of
differing page sizes where the two offsets may not be equivalent.
Similarly in __finalise_sg(), lest the architecture-specific wrappers
later get the wrong address for cache maintenance on sync or unmap.
Fixes: 164afb1d85b8 ("iommu/dma: Use correct offset in map_sg")
Reported-by: Magnus Damm <damm+renesas@opensource.se>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
0 files changed, 0 insertions, 0 deletions
