Source-Changes-HG archive

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

[src/netbsd-8]: src/sys/arch/arm/allwinner Pull up following revision(s) (req...



details:   https://anonhg.NetBSD.org/src/rev/b1ce5802acf3
branches:  netbsd-8
changeset: 451291:b1ce5802acf3
user:      martin <martin%NetBSD.org@localhost>
date:      Tue May 14 11:24:33 2019 +0000

description:
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.

diffstat:

 sys/arch/arm/allwinner/awin_ahcisata.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r cb4c66cec712 -r b1ce5802acf3 sys/arch/arm/allwinner/awin_ahcisata.c
--- a/sys/arch/arm/allwinner/awin_ahcisata.c    Mon May 13 12:42:24 2019 +0000
+++ b/sys/arch/arm/allwinner/awin_ahcisata.c    Tue May 14 11:24:33 2019 +0000
@@ -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 @@
        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);
 }
 



Home | Main Index | Thread Index | Old Index