Re: [PATCH] mmc: sdhci: Avoid swiotlb buffer being full

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 27, 2017 at 11:28 AM, Ulf Hansson <ulf.hansson@xxxxxxxxxx> wrote:

> 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@xxxxxxx>
> Fixes: de3ee99b097d ("mmc: Delete bounce buffer handling")
> Cc: <stable@xxxxxxxxxxxxxxx> # v4.14+
> Signed-off-by: Ulf Hansson <ulf.hansson@xxxxxxxxxx>
> Tested-by: Jiri Slaby <jslaby@xxxxxxx>

Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Thank you for fixing my screwups :/

Yours,
Linus Walleij



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]