Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jul 2011 15:07:31 -0700
From:      "Mark McConnell" <markmcconnell@iinet.com>
To:        freebsd-stable@freebsd.org
Subject:   disable 64-bit dma for one PCI slot only?
Message-ID:  <4E20BA23.13717.66C6F57@markmcconnell.iinet.com>

next in thread | raw e-mail | index | archive | help
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.: <LSILogic" /var/log/dmesg.yesterday 
amr0: <LSILogic MegaRAID 1.53> mem 0xff4f0000-0xff4fffff irq 27 at device 3.0 on pci2
amr0: <LSILogic MegaRAID SATA 150-6D> Firmware 713S, BIOS G121, 64MB RAM
amr1: <LSILogic MegaRAID 1.53> mem 0xff5f0000-0xff5fffff irq 28 at device 3.0 on pci3
amr1: <LSILogic MegaRAID SCSI 320-1> 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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E20BA23.13717.66C6F57>