diff options
author | Neil Armstrong <narmstrong@baylibre.com> | 2020-06-08 10:44:58 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-16 08:13:33 +0200 |
commit | 47eb6b0e8e71de9eb0507014c66a89541afe185d (patch) | |
tree | f7bb24d7551fc4dcacafc67ccf0c5b45b73d3f40 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 75c19a53cf68735b42c64b50c5174310fb40ffc1 (diff) | |
download | linux-stable-47eb6b0e8e71de9eb0507014c66a89541afe185d.tar.gz linux-stable-47eb6b0e8e71de9eb0507014c66a89541afe185d.tar.bz2 linux-stable-47eb6b0e8e71de9eb0507014c66a89541afe185d.zip |
mmc: meson-gx: limit segments to 1 when dram-access-quirk is needed
commit 27a5e7d36d383970affae801d77141deafd536a8 upstream.
The actual max_segs computation leads to failure while using the broadcom
sdio brcmfmac/bcmsdh driver, since the driver tries to make usage of
scatter gather.
But with the dram-access-quirk we use a 1,5K SRAM bounce buffer, and the
max_segs current value of 3 leads to max transfers to 4,5k, which doesn't
work.
This patch sets max_segs to 1 to better describe the hardware limitation,
and fix the SDIO functionality with the brcmfmac/bcmsdh driver on Amlogic
G12A/G12B SoCs on boards like SEI510 or Khadas VIM3.
Reported-by: Art Nikpal <art@khadas.com>
Reported-by: Christian Hewitt <christianshewitt@gmail.com>
Fixes: acdc8e71d9bb ("mmc: meson-gx: add dram-access-quirk")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200608084458.32014-1-narmstrong@baylibre.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions