Module Name: src Committed By: mrg Date: Tue Mar 23 03:24:53 UTC 2010
Modified Files: src/sys/dev/pci: satalink.c Log Message: only apply the satalink 3112 rev 0.1 and earlier to actual 3112 based cards, not eg, 3512 cards. should help performance for 3512 cards, derived from discussions in PR#42980: satalink DMA fails under amd64. To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/sys/dev/pci/satalink.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/dev/pci/satalink.c diff -u src/sys/dev/pci/satalink.c:1.39 src/sys/dev/pci/satalink.c:1.40 --- src/sys/dev/pci/satalink.c:1.39 Thu Nov 26 15:17:10 2009 +++ src/sys/dev/pci/satalink.c Tue Mar 23 03:24:53 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: satalink.c,v 1.39 2009/11/26 15:17:10 njoly Exp $ */ +/* $NetBSD: satalink.c,v 1.40 2010/03/23 03:24:53 mrg Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: satalink.c,v 1.39 2009/11/26 15:17:10 njoly Exp $"); +__KERNEL_RCSID(0, "$NetBSD: satalink.c,v 1.40 2010/03/23 03:24:53 mrg Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -469,7 +469,9 @@ * apparently hard to tickle, but we'll go ahead and play it * safe. */ - if (PCI_REVISION(pa->pa_class) <= 0x01) { + if ((PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_CMDTECH_3112 || + PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_CMDTECH_AAR_1210SA) && + PCI_REVISION(pa->pa_class) <= 0x01) { sc->sc_dma_maxsegsz = 8192; sc->sc_dma_boundary = 8192; }