Port-arm archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
sunxi_sata: perf. fix from linux
Hi,
i just saw something interesting[0]; write speeds *3,
and thought you'd like to have this too. :]
-Artturi
[0] https://lkml.org/lkml/2019/5/12/161
diff --git a/sys/arch/arm/sunxi/sunxi_sata.c b/sys/arch/arm/sunxi/sunxi_sata.c
index 6a0ce78d991b..632d50e4ca92 100644
--- a/sys/arch/arm/sunxi/sunxi_sata.c
+++ b/sys/arch/arm/sunxi/sunxi_sata.c
@@ -55,8 +55,8 @@ sunxi_sata_channel_start(struct ahci_softc *sc, struct ata_channel *chp)
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