Module Name: src Committed By: martin Date: Tue May 14 11:24:33 UTC 2019
Modified Files: src/sys/arch/arm/allwinner [netbsd-8]: awin_ahcisata.c Log Message: Pull up following revision(s) (requested by bouyer in ticket #1264): sys/arch/arm/sunxi/sunxi_sata.c: revision 1.2 (applied to sys/arm/allwinner/awin_ahcisata.c) Use new magic values from linux for DMACR. While I couldn't measure any significant difference with my old, slow laptop drive, linux commiter claims a 3x write performance boost (from 40 to 120MB/s) and 200MB/s read with a ssd. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.11.30.1 src/sys/arch/arm/allwinner/awin_ahcisata.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arm/allwinner/awin_ahcisata.c diff -u src/sys/arch/arm/allwinner/awin_ahcisata.c:1.11 src/sys/arch/arm/allwinner/awin_ahcisata.c:1.11.30.1 --- src/sys/arch/arm/allwinner/awin_ahcisata.c:1.11 Mon Feb 24 16:40:29 2014 +++ src/sys/arch/arm/allwinner/awin_ahcisata.c Tue May 14 11:24:33 2019 @@ -31,7 +31,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(1, "$NetBSD: awin_ahcisata.c,v 1.11 2014/02/24 16:40:29 matt Exp $"); +__KERNEL_RCSID(1, "$NetBSD: awin_ahcisata.c,v 1.11.30.1 2019/05/14 11:24:33 martin Exp $"); #include <sys/param.h> #include <sys/bus.h> @@ -168,8 +168,8 @@ awin_ahci_channel_start(struct ahci_soft bus_size_t dma_reg = AHCI_P_AWIN_DMA(chp->ch_channel); uint32_t dma = AHCI_READ(sc, dma_reg); - dma &= ~0xff00; - dma |= 0x4400; + dma &= ~0xffff; + dma |= 0x4433; AHCI_WRITE(sc, dma_reg, dma); }