openwrt/target/linux/apm821xx
Christian Lamparter 8a0ad2660a apm821xx: fix sata access freezes
The original vendor's driver programmed the dma controller's
AHB HPROT values to enable bufferable, privileged mode. This
along with the "same priorty for both channels" fixes the
freezes according to @takimata, @And.short, that have been
reported on the forum by @ticerex.

Furtheremore, @takimata reported that the patch also improved
the performance of the HDDs considerably:
|<https://forum.lede-project.org/t/wd-mybook-live-duo-two-disks/16195/55>
|It seems your patch unleashed the full power of the SATA port.
|Where I was previously hitting a really hard limit at around
|82 MB/s for reading and 27 MB/s for writing, I am now getting this:
|
|root@OpenWrt:/mnt# time dd if=/dev/zero of=tempfile bs=1M count=1024
|1024+0 records in
|1024+0 records out
|real    0m 13.65s
|user    0m 0.01s
|sys     0m 11.89s
|
|root@OpenWrt:/mnt# time dd if=tempfile of=/dev/null bs=1M count=1024
|1024+0 records in
|1024+0 records out
|real    0m 8.41s
|user    0m 0.01s
|sys     0m 4.70s
|
|This means: 121 MB/s reading and 75 MB/s writing!
|
|[...]
|
|The drive is a WD Green WD10EARX taken from an older MBL Single.
|I repeated the test a few times with even larger files to rule out
|any caching, I'm still seeing the same great performance. OpenWrt is
|now completely on par with the original MBL firmware's performance.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2018-07-19 18:54:40 +02:00
..
base-files treewide: move nand_do_upgrade call to platform_do_upgrade 2018-02-16 14:44:02 +01:00
dts apm821xx: fix usb-otg on 4.14 2018-07-16 08:43:15 +02:00
files/arch/powerpc/platforms/44x apm821xx: fix atheros PCIe cards on the MR24 2016-07-25 10:38:48 +02:00
image apm821xx: don't select swconfig for the MR24 2018-05-24 17:24:30 +02:00
nand apm821xx: nand remove obsolete kernel config symbol 2018-02-23 07:54:29 +01:00
patches-4.14 apm821xx: fix sata access freezes 2018-07-19 18:54:40 +02:00
sata apm821xx: MyBook Live convert to DT PHY 2017-12-14 09:29:30 +01:00
config-4.14 kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
Makefile apm821xx: switch to 4.14.x kernel 2018-01-12 08:00:05 +01:00