Ulf Hansson
250dcd1146
mmc: sdhci: Avoid swiotlb buffer being full
...
The commit de3ee99b097d ("mmc: Delete bounce buffer handling") deletes the
bounce buffer handling, but also causes the max_req_size for sdhci to be
increased, in case when max_segs == 1. This causes errors for sdhci-pci
Ricoh variant, about the swiotlb buffer to become full.
Fix the issue, by taking IO_TLB_SEGSIZE and IO_TLB_SHIFT into account when
deciding the max_req_size for sdhci.
Reported-by: Jiri Slaby <jslaby@suse.cz>
Fixes: de3ee99b097d ("mmc: Delete bounce buffer handling")
Cc: <stable@vger.kernel.org> # v4.14+
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
2017-11-28 20:29:24 +01:00
..
2017-08-30 14:01:23 +02:00
2017-11-02 15:20:28 +01:00
2014-10-20 16:20:56 +02:00
2017-08-30 14:01:45 +02:00
2016-02-29 11:02:59 +01:00
2017-08-30 15:03:38 +02:00
2017-09-08 15:38:22 +02:00
2017-10-30 11:50:33 +01:00
2017-04-24 21:42:10 +02:00
2013-10-30 20:26:37 -04:00
2016-01-05 18:04:57 +01:00
2017-08-30 14:01:41 +02:00
2017-06-29 17:14:26 +02:00
2015-03-23 14:13:28 +01:00
2017-10-30 11:46:01 +01:00
2017-02-13 13:19:59 +01:00
2017-02-13 13:19:59 +01:00
2012-11-28 12:28:18 -08:00
2017-06-29 17:13:59 +02:00
2017-02-13 13:20:03 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 15:20:44 +01:00
2017-10-30 11:45:55 +01:00
2017-11-02 15:20:28 +01:00
2017-10-30 11:46:02 +01:00
2017-11-13 10:17:35 -08:00
2017-10-30 11:50:34 +01:00
2017-11-02 15:20:28 +01:00
2017-04-24 21:41:52 +02:00
2017-02-27 18:43:47 -08:00
2014-09-09 13:58:46 +02:00
2017-10-30 11:50:35 +01:00
2017-02-13 13:20:52 +01:00
2017-08-30 14:01:41 +02:00
2017-11-02 15:20:27 +01:00
2017-11-02 15:20:28 +01:00
2017-11-02 15:20:28 +01:00
2017-02-13 13:20:27 +01:00
2017-08-30 14:01:45 +02:00
2017-10-30 11:50:36 +01:00
2017-11-02 15:20:28 +01:00
2017-10-04 10:22:55 +02:00
2017-11-02 11:10:55 +01:00
2017-08-30 14:01:59 +02:00
2017-10-30 11:50:40 +01:00
2017-10-30 11:50:40 +01:00
2017-08-30 14:01:21 +02:00
2017-10-30 11:45:53 +01:00
2017-08-30 14:01:27 +02:00
2017-08-30 14:01:40 +02:00
2016-07-25 10:34:46 +02:00
2017-11-07 13:43:23 +01:00
2017-11-02 15:20:28 +01:00
2017-08-30 14:01:52 +02:00
2017-08-30 15:03:44 +02:00
2017-10-30 11:50:32 +01:00
2016-07-29 11:29:04 +02:00
2016-07-29 11:29:04 +02:00
2017-06-20 10:30:34 +02:00
2017-08-30 15:03:36 +02:00
2017-05-22 18:18:04 +02:00
2017-11-23 14:39:26 +01:00
2017-08-30 14:01:53 +02:00
2017-10-30 11:46:01 +01:00
2017-10-30 11:40:09 +01:00
2016-07-29 11:29:04 +02:00
2017-10-02 08:18:11 +02:00
2017-10-30 11:50:41 +01:00
2017-04-24 21:41:28 +02:00
2017-10-30 11:50:41 +01:00
2017-11-13 10:17:35 -08:00
2017-08-30 14:01:51 +02:00
2017-08-30 15:03:45 +02:00
2017-08-30 15:03:45 +02:00
2017-08-30 15:03:44 +02:00
2017-08-30 14:01:51 +02:00
2017-10-30 11:46:00 +01:00
2017-08-30 15:03:44 +02:00
2017-04-24 21:41:26 +02:00
2017-08-30 14:01:37 +02:00
2017-10-30 11:40:07 +01:00
2017-08-30 15:03:43 +02:00
2017-10-04 10:50:36 +02:00
2017-10-04 10:50:36 +02:00
2017-11-28 20:29:24 +01:00
2017-08-30 15:03:43 +02:00
2017-08-30 14:01:44 +02:00
2017-08-30 14:01:42 +02:00
2017-10-30 11:46:03 +01:00
2017-11-02 15:20:28 +01:00
2017-11-07 13:42:53 +01:00
2017-06-20 10:30:50 +02:00
2017-08-30 14:01:25 +02:00
2017-08-30 14:01:42 +02:00
2014-11-26 14:30:58 +01:00
2017-10-30 11:50:37 +01:00
2017-03-16 15:31:27 +01:00
2017-11-02 15:20:28 +01:00
2017-11-02 15:20:29 +01:00
2017-11-02 15:20:28 +01:00
2017-08-30 14:01:55 +02:00