Re: MMC flash is very slow since 4.14 - "mmc: Delete bounce buffer handling" was the problem

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

 



On Wed, Jan 3, 2018 at 4:32 PM, Benjamin Beckmeyer
<beckmeyer.b@xxxxxxxxx> wrote:

> But it hangs while booting. The lines above are the last output on the serial console.
>
> So, for now, I guess the device needs the DMA.

Yeah seems like so... :/

So we need to get a bounce buffer back for bugged SDHI devices.

I see two options:

1. Put the bounce buffer into the SDHCI host (this is the only driver
    that seems to have any need for it).

2. Manage it centrally. (Like we did before, or in the block layer.)

Notice that the block core has bounce buffer support. However there,
it is used to bounce highmem buffers to lowmem buffers because of
hardware limitations.

The bounce buffers we use with SDMA are only
for copying the SG list fragments into a continous buffer so that we
do not need to shoot off a lot of individual small DMA jobs.

I hope everyone is on the same page here, that this is where
the speedup comes from?

I guess I can try to open code some stuff into the SDHCI driver
for the SDMA case (I guess it should be for that case only.)
Lemme see what I can hack up!

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux