iommu/dma: Remove broken huge page handling
authorRobin Murphy <robin.murphy@arm.com>
Thu, 3 Sep 2020 11:34:04 +0000 (12:34 +0100)
committerJoerg Roedel <jroedel@suse.de>
Fri, 4 Sep 2020 09:55:07 +0000 (11:55 +0200)
commit4604393ca0c6e4a73c04798c3f1d9878e70b7251
tree02fd445b4e5f95fc4ef3a7c78f6b1942f28af34c
parentaae4c8e27bd7567132bb931488e2faf1a57c66e9
iommu/dma: Remove broken huge page handling

The attempt to handle huge page allocations was originally added since
the comments around stripping __GFP_COMP in other implementations were
nonsensical, and we naively assumed that split_huge_page() could simply
be called equivalently to split_page(). It turns out that this doesn't
actually work correctly, so just get rid of it - there's little point
going to the effort of allocating huge pages if we're only going to
split them anyway.

Reported-by: Roman Gushchin <guro@fb.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/e287dbe69aa0933abafd97c80631940fd188ddd1.1599132844.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dma-iommu.c