[PATCH] drm/etnaviv: remove BUG_ON in MMU unmap path

2016-04-29 Thread Lucas Stach
Am Donnerstag, den 28.04.2016, 15:37 +0100 schrieb Russell King - ARM Linux: > On Thu, Apr 28, 2016 at 04:04:58PM +0200, Lucas Stach wrote: > > The observation was that the common code in iommu_map() rightfully > > rejected to map things, as mapping something unaligned to the page size > > is total

[PATCH] drm/etnaviv: remove BUG_ON in MMU unmap path

2016-04-28 Thread Lucas Stach
Am Donnerstag, den 28.04.2016, 14:55 +0100 schrieb Russell King - ARM Linux: > On Wed, Apr 27, 2016 at 02:38:18PM +0200, Lucas Stach wrote: > > If the MMU map fails caused by an unaligned SG entry, the unmap path > > is called to undo all already setup SG mappings. When encountering the > > unalign

[PATCH] drm/etnaviv: remove BUG_ON in MMU unmap path

2016-04-28 Thread Russell King - ARM Linux
On Thu, Apr 28, 2016 at 04:04:58PM +0200, Lucas Stach wrote: > The observation was that the common code in iommu_map() rightfully > rejected to map things, as mapping something unaligned to the page size > is totally bogus. Shouldn't iommu_map() detect this? /* * both the virtual

[PATCH] drm/etnaviv: remove BUG_ON in MMU unmap path

2016-04-28 Thread Russell King - ARM Linux
On Wed, Apr 27, 2016 at 02:38:18PM +0200, Lucas Stach wrote: > If the MMU map fails caused by an unaligned SG entry, the unmap path > is called to undo all already setup SG mappings. When encountering the > unaligned SG the unmap path hangs the kernel with a BUG(), while the > error is recoverable

[PATCH] drm/etnaviv: remove BUG_ON in MMU unmap path

2016-04-27 Thread Lucas Stach
If the MMU map fails caused by an unaligned SG entry, the unmap path is called to undo all already setup SG mappings. When encountering the unaligned SG the unmap path hangs the kernel with a BUG(), while the error is recoverable by just failing the submit that references the faulty object. Signed