Module Name:    src
Committed By:   bouyer
Date:           Mon May 13 16:55:17 UTC 2019

Modified Files:
        src/sys/arch/arm/sunxi: sunxi_sata.c

Log Message:
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.1 -r1.2 src/sys/arch/arm/sunxi/sunxi_sata.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/sunxi/sunxi_sata.c
diff -u src/sys/arch/arm/sunxi/sunxi_sata.c:1.1 src/sys/arch/arm/sunxi/sunxi_sata.c:1.2
--- src/sys/arch/arm/sunxi/sunxi_sata.c:1.1	Sat Oct  7 15:12:35 2017
+++ src/sys/arch/arm/sunxi/sunxi_sata.c	Mon May 13 16:55:17 2019
@@ -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 <jmcne...@invisible.ca>
@@ -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 @@ sunxi_sata_channel_start(struct ahci_sof
 	uint32_t val;
 
 	val = AHCI_READ(sc, dma_reg);
-	val &= ~0xff00;
-	val |= 0x4400;
+	val &= ~0xffff;
+	val |= 0x4433;
 	AHCI_WRITE(sc, dma_reg, val);
 }
 

Reply via email to