immortalwrt/target/linux
Daniel Golle 08ef184fc7
oxnas: reduce size of ATA DMA descriptor space
After years of trying to find the reason for random kernel crashes
while both CPU and SATA are under load it has been found.
Some odd commented-out #defines in kref's single-port driver [1] which
were copied from the vendor driver made me develop a theory:
The IO-mapped memory area for DMA descriptors apparetly got some holes
just before the alignment boundaries.
This feels like an off-by-one bug in the hardware or maybe those fields
are used internally by the SATA controller's firmware.
Whatever the cause is: they cannot be used and trying to use them
results in reading back unexpected stuff and ends up with oopsing
Unable to handle kernel paging request at virtual address d085c004

Work around the issue by reducing the area used for bmdma descriptors.
This reduces SATA performance (iops) quite a bit, but finally makes
things work reliably. Possibly one could optimize this much more by
really just skipping the holes in that memory area -- however, that
seems to be non-trivial with the driver and libata in it's current form
(suggestions are welcome).
The 'proper' way to have good SATA performance would be to make use of
the hardware RAID features (one can use the JBOD mode to access even
just a single disc transparently through the RAID controller integrated
in the SATA host instead of accessing the SATA ports 'raw' as we do
now).

[1]: https://github.com/kref/linux-oxnas/blob/master/drivers/ata/sata_oxnas.c#L25

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-08-15 09:03:36 +08:00
..
apm821xx kernel: bump 4.19 to 4.19.139 2020-08-11 22:33:49 +08:00
ar7
ar71xx ar71xx: fix ZyXEL NBG6616 wifi switch 2020-08-11 18:06:32 +08:00
arc770
archs38
armvirt
at91 at91: switch to 4.14 (#3040) 2020-02-11 17:26:30 +08:00
ath25 target: replace remaining occurrences of ifconfig with ip 2020-08-03 20:58:21 +08:00
ath79 ath79: restore support for boot console with arbitrary baud rates 2020-08-03 20:41:02 +08:00
bcm27xx kernel: bump 4.19 to 4.19.139 2020-08-11 22:33:49 +08:00
bcm53xx kernel: bump 4.19 to 4.19.132 2020-07-10 18:03:01 +08:00
brcm47xx kernel: bump to 4.9.223, 4.14.180, 4.19.122 (#4600) 2020-05-13 13:28:43 +08:00
brcm63xx kernel: bump 4.19 to 4.19.130 2020-06-26 09:03:47 +08:00
cns3xxx kernel: bump 4.19 to 4.19.130 2020-06-26 09:03:47 +08:00
gemini gemini: Add swap partition to DNS-313 2020-08-03 00:21:24 +08:00
generic kernel: add CGROUPS and IOSCHED_BFQ back to config 2020-08-13 11:56:34 +08:00
imx6 kernel: bump 4.19 to 4.19.110 2020-03-19 17:50:48 +08:00
ipq40xx ipq40xx: revert changes of some patches 2020-08-11 22:54:05 +08:00
ipq806x ipq806x: remove outdated patches 2020-08-12 10:31:07 +08:00
ipq807x ipq807x: add very basic target support 2020-02-29 22:59:08 -08:00
ixp4xx kernel: bump 4.9 to 4.9.220 2020-04-25 08:06:59 +08:00
kirkwood treewide: omit IMAGE_SIZE argument from check-size 2020-07-30 23:44:37 +08:00
lantiq treewide: omit IMAGE_SIZE argument from check-size 2020-07-30 23:44:37 +08:00
layerscape kernel: bump 4.14 to 4.14.192 2020-08-05 20:26:26 +08:00
malta
mediatek kernel: bump 4.19 to 4.19.139 2020-08-11 22:33:49 +08:00
mpc85xx kernel: bump to 4.9.214, 4.14.171, 4.19.106 (#3375) 2020-02-29 16:28:07 +08:00
mvebu kernel: bump 4.19 to 4.19.130 2020-06-26 09:03:47 +08:00
mxs kernel: bump 4.14 to 4.14.177 2020-05-03 19:32:54 +08:00
octeon
octeontx kernel: bump to 4.9.219, 4.14.176, 4.19.115 (#4350) 2020-04-17 11:50:34 +08:00
omap
orion
oxnas oxnas: reduce size of ATA DMA descriptor space 2020-08-15 09:03:36 +08:00
pistachio kernel: bump 4.14 to 4.14.186 2020-06-25 23:30:20 +08:00
ramips ramips/dir878: remove the original factory partition definition 2020-08-12 11:01:24 +08:00
rb532
samsung kernel: Update kernel 4.14 to version 4.14.187 2020-07-05 11:53:32 +08:00
sunxi sunxi: nanopi-r1: set device packages 2020-08-10 22:11:17 +08:00
tegra
uml
x86 x86: Add CONFIG_EFI_CUSTOM_SSDT_OVERLAYS 2020-08-14 03:16:00 +08:00
zynq
Makefile build: add 'make kernel_xconfig' command 2020-07-09 12:03:26 +08:00