Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/sunxi Use new magic values from linux for DMACR...



details:   https://anonhg.NetBSD.org/src/rev/56741091a046
branches:  trunk
changeset: 999040:56741091a046
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Mon May 13 16:55:17 2019 +0000

description:
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/sunxi/sunxi_sata.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 96049b289073 -r 56741091a046 sys/arch/arm/sunxi/sunxi_sata.c
--- a/sys/arch/arm/sunxi/sunxi_sata.c   Mon May 13 14:29:41 2019 +0000
+++ b/sys/arch/arm/sunxi/sunxi_sata.c   Mon May 13 16:55:17 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_sata.c,v 1.1 2017/10/07 15:12:35 jmcneill Exp $ */
+/* $NetBSD: sunxi_sata.c,v 1.2 2019/05/13 16:55:17 bouyer Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: sunxi_sata.c,v 1.1 2017/10/07 15:12:35 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_sata.c,v 1.2 2019/05/13 16:55:17 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -55,8 +55,8 @@
        uint32_t val;
 
        val = AHCI_READ(sc, dma_reg);
-       val &= ~0xff00;
-       val |= 0x4400;
+       val &= ~0xffff;
+       val |= 0x4433;
        AHCI_WRITE(sc, dma_reg, val);
 }
 



Home | Main Index | Thread Index | Old Index