]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
drop broken 5.2 patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Sep 2019 12:55:56 +0000 (14:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Sep 2019 12:55:56 +0000 (14:55 +0200)
queue-5.2/dma-direct-only-limit-the-mapping-size-if-swiotlb-could-be-used.patch [deleted file]
queue-5.2/series

diff --git a/queue-5.2/dma-direct-only-limit-the-mapping-size-if-swiotlb-could-be-used.patch b/queue-5.2/dma-direct-only-limit-the-mapping-size-if-swiotlb-could-be-used.patch
deleted file mode 100644 (file)
index d89c702..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-From a5008b59cd9d8de12ab623cb5052bb4735330e5c Mon Sep 17 00:00:00 2001
-From: Christoph Hellwig <hch@lst.de>
-Date: Tue, 16 Jul 2019 22:00:54 +0200
-Subject: dma-direct: only limit the mapping size if swiotlb could be used
-
-From: Christoph Hellwig <hch@lst.de>
-
-commit a5008b59cd9d8de12ab623cb5052bb4735330e5c upstream.
-
-Don't just check for a swiotlb buffer, but also if buffering might
-be required for this particular device.
-
-Fixes: 133d624b1cee ("dma: Introduce dma_max_mapping_size()")
-Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-Signed-off-by: Christoph Hellwig <hch@lst.de>
-Tested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
----
- kernel/dma/direct.c |   10 ++++------
- 1 file changed, 4 insertions(+), 6 deletions(-)
-
---- a/kernel/dma/direct.c
-+++ b/kernel/dma/direct.c
-@@ -393,11 +393,9 @@ int dma_direct_supported(struct device *
- size_t dma_direct_max_mapping_size(struct device *dev)
- {
--      size_t size = SIZE_MAX;
--
-       /* If SWIOTLB is active, use its maximum mapping size */
--      if (is_swiotlb_active())
--              size = swiotlb_max_mapping_size(dev);
--
--      return size;
-+      if (is_swiotlb_active() &&
-+          (dma_addressing_limited(dev) || swiotlb_force == SWIOTLB_FORCE))
-+              return swiotlb_max_mapping_size(dev);
-+      return SIZE_MAX;
- }
index 5b4d5a8e125c39a05a5b544680e45ee707197293..1fc0de6ccaa46cee26319cd16059a9174c545a8e 100644 (file)
@@ -8,7 +8,6 @@ input-elan_i2c-remove-lenovo-legion-y7000-pnpid.patch
 sunrpc-handle-connection-breakages-correctly-in-call_status.patch
 media-stm32-dcmi-fix-irq-0-case.patch
 nfs-disable-client-side-deduplication.patch
-dma-direct-only-limit-the-mapping-size-if-swiotlb-could-be-used.patch
 powerpc-mm-radix-use-the-right-page-size-for-vmemmap-mapping.patch
 scripts-decode_stacktrace-match-basepath-using-shell-prefix-operator-not-regex.patch
 net-hns-fix-led-configuration-for-marvell-phy.patch