From owner-freebsd-stable@FreeBSD.ORG Fri Jul 15 22:36:32 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D19BA106564A for ; Fri, 15 Jul 2011 22:36:32 +0000 (UTC) (envelope-from markmcconnell@iinet.com) Received: from smtp1.pacifier.net (smtp1.pacifier.net [64.255.237.171]) by mx1.freebsd.org (Postfix) with ESMTP id BC4228FC16 for ; Fri, 15 Jul 2011 22:36:32 +0000 (UTC) Received: from [192.168.1.35] (75-150-37-150-Oregon.hfc.comcastbusiness.net [75.150.37.150]) by smtp1.pacifier.net (Postfix) with ESMTP id 8575C6EF65 for ; Fri, 15 Jul 2011 15:07:31 -0700 (PDT) From: "Mark McConnell" To: freebsd-stable@freebsd.org Date: Fri, 15 Jul 2011 15:07:31 -0700 MIME-Version: 1.0 Message-ID: <4E20BA23.13717.66C6F57@markmcconnell.iinet.com> Priority: normal X-mailer: Pegasus Mail for Windows (4.52) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Subject: disable 64-bit dma for one PCI slot only? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: markmc@dataabstractsolutions.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2011 22:36:32 -0000 Dear folks, I have two LSI raid cards, one of which (SCSI 320-I) supports 64-bit DMA when 4GB+ of DDR is present and another which does not (SATA 150-D) . Consquently I've disabled 64-bit addressing for amr devices. I would like to disable 64-bit addressing for the SATA card, but permit it for the SCSI card. Is this possible? ---------------- # grep amr /boot/loader.conf hw.amr.force_sg32=1 --------------- # grep "amr.: mem 0xff4f0000-0xff4fffff irq 27 at device 3.0 on pci2 amr0: Firmware 713S, BIOS G121, 64MB RAM amr1: mem 0xff5f0000-0xff5fffff irq 28 at device 3.0 on pci3 amr1: Firmware 1L45, BIOS G121, 128MB RAM ---------------- # uname -a FreeBSD dasftp.das.local 8.2-RELEASE-p1 FreeBSD 8.2-RELEASE-p1 #0: Mon Apr 25 23:11:34 PDT 2011 root@dasftp.das.local:/usr/obj/usr/src/sys/GENERIC amd64 ---------------- # dmesg -a | grep "CPU:" CPU: AMD Opteron(tm) Processor 242 (1593.43-MHz K8-class CPU) ---------------- # sysctl hw | grep mem root@dasftp Fri Jul 15 2011 hw.physmem: 8508891136 hw.usermem: 6397407232 hw.realmem: 8589934592 -- hw.pci.host_mem_start: 2147483648 ---------------- # megarc -getxferrate -a0 -chall ********************************************************************** Transfer Rate of Adapter-0 Channel-8 is 160M ********************************************************************** # megarc -getxferrate -a1 -chall ********************************************************************** Transfer Rate of Adapter-1 Channel-8 is 320M ********************************************************************** ---------------- # pciconf -lv | grep -A 4 "amr[01]" amr0@pci0:2:3:0: class=0x010400 card=0x05231000 chip=0x19601000 rev=0x01 hdr=0x00 vendor = 'LSI Logic (Was: Symbios Logic, NCR)' device = 'MegaRAID' class = mass storage subclass = RAID -- amr1@pci0:3:3:0: class=0x010400 card=0x05201000 chip=0x19601000 rev=0x01 hdr=0x00 vendor = 'LSI Logic (Was: Symbios Logic, NCR)' device = 'MegaRAID' class = mass storage subclass = RAID Many thanks in advance. Mark -- -- Mark McConnell markmc@dataabstractsolutions.com Data Abstract Solutions - Support 12209 N.E. Fourth Plain Suite DD, Vancouver WA 98682 ph: 360-573-5131 - fax: 360 573-0907