Commit 3003cbf
committed
mmc: sdhci: Fix ADMA for PAGE_SIZE >= 64KiB
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2144641
commit 3d7c194
Author: Adrian Hunter <adrian.hunter@intel.com>
Date: Mon, 15 Nov 2021 10:23:45 +0200
The block layer forces a minimum segment size of PAGE_SIZE, so a segment
can be too big for the ADMA table, if PAGE_SIZE >= 64KiB. Fix by writing
multiple descriptors, noting that the ADMA table is sized for 4KiB chunks
anyway, so it will be big enough.
Reported-and-tested-by: Bough Chen <haibo.chen@nxp.com>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20211115082345.802238-1-adrian.hunter@intel.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Mark Salter <msalter@redhat.com>1 parent 057373c commit 3003cbf
2 files changed
+21
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
774 | | - | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
775 | 787 | | |
776 | 788 | | |
777 | 789 | | |
| |||
3968 | 3980 | | |
3969 | 3981 | | |
3970 | 3982 | | |
| 3983 | + | |
3971 | 3984 | | |
3972 | 3985 | | |
3973 | 3986 | | |
| |||
4633 | 4646 | | |
4634 | 4647 | | |
4635 | 4648 | | |
4636 | | - | |
| 4649 | + | |
| 4650 | + | |
4637 | 4651 | | |
4638 | | - | |
| 4652 | + | |
4639 | 4653 | | |
| 4654 | + | |
4640 | 4655 | | |
4641 | 4656 | | |
4642 | 4657 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
| 344 | + | |
344 | 345 | | |
345 | 346 | | |
346 | 347 | | |
| |||
543 | 544 | | |
544 | 545 | | |
545 | 546 | | |
| 547 | + | |
546 | 548 | | |
547 | 549 | | |
548 | 550 | | |
| |||
0 commit comments