Current-Users archive

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

apu2 SATA patch





On 26/11/2018 15:16, Greg Troxel wrote:
Mike Pumford <mpumford%mudcovered.org.uk@localhost> writes:

I have one of these. The msata needs needs a small patch (needs an
entry in the quirks table to be properly recognised as an ahci
controller) but other than that it seems to work. No stability issues
using sdhc as the system disk.

Could you mail a patch, or file a PR with it?  This seems like something
that should be applied in the main tree.

Heres the patch. I've not yet verified IO yet but the patch is based on how OpenBSD and FreeBSD handle the device and the detection messages match what they report.

Index: sys/dev/pci/ahcisata_pci.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/ahcisata_pci.c,v
retrieving revision 1.38
diff -u -r1.38 ahcisata_pci.c
--- sys/dev/pci/ahcisata_pci.c	13 Oct 2016 17:11:09 -0000	1.38
+++ sys/dev/pci/ahcisata_pci.c	26 Nov 2018 21:24:56 -0000
@@ -194,6 +194,8 @@
 	    AHCI_PCI_QUIRK_FORCE },
 	{ PCI_VENDOR_ASMEDIA, PCI_PRODUCT_ASMEDIA_ASM1061_12,
 	    AHCI_PCI_QUIRK_FORCE },
+	{ PCI_VENDOR_AMD, PCI_PRODUCT_AMD_HUDSON_SATA,
+	    AHCI_PCI_QUIRK_FORCE },
 };
 
 struct ahci_pci_softc {


Home | Main Index | Thread Index | Old Index