From owner-freebsd-hardware@FreeBSD.ORG Tue Mar 11 15:34:40 2014 Return-Path: Delivered-To: hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 33356D0F for ; Tue, 11 Mar 2014 15:34:40 +0000 (UTC) Received: from natasha.panasas.com (natasha.panasas.com [209.166.131.148]) by mx1.freebsd.org (Postfix) with ESMTP id EAEFC618 for ; Tue, 11 Mar 2014 15:34:39 +0000 (UTC) Received: from zenyatta.panasas.com (zenyatta.int.panasas.com [172.17.28.63]) by natasha.panasas.com (8.13.1/8.13.1) with ESMTP id s2BFYRmg008615; Tue, 11 Mar 2014 11:34:27 -0400 Received: from ZENYATTA.int.panasas.com ([fe80::44ca:f0e1:b97e:bf79]) by zenyatta.int.panasas.com ([fe80::44ca:f0e1:b97e:bf79%15]) with mapi id 14.01.0438.000; Tue, 11 Mar 2014 11:34:27 -0400 From: "Pokala, Ravi" To: "wjw@digiware.nl" , "hardware@freebsd.org" Subject: Re: Differences between disk controllers Thread-Topic: Differences between disk controllers Thread-Index: AQHPPT9ifn3suwq1zkq+jCU21W53Lg== Date: Tue, 11 Mar 2014 15:34:26 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.9.131030 x-originating-ip: [172.17.28.30] Content-Type: text/plain; charset="us-ascii" Content-ID: <53DCB3EE6606A345A9546950A5795584@panasas.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Mar 2014 15:34:40 -0000 >Date: Mon, 10 Mar 2014 22:52:16 +0100 >From: Willem Jan Withagen >To: hardware@freebsd.org >Subject: Differences between disk controllers >Message-ID: <531E3410.5090602@digiware.nl> >Content-Type: text/plain; charset=3DISO-8859-1 > >Hi, > >Running: > FreeBSD 10.0-STABLE #0 r262730 > >I've build a ZFS system, with 4 disks on a regular Marvell controller, >and 4 disks on an Areca controller. Disk are 4T WD REDs. > >I noticed that there were some discrepancies when I build a raidz of 4 >"marvell" disks when compared to a raidz on the Areca controller. > >The essential difference is that on the basic controller the disks are >recognised as being 4K disks with quirks. On the Areca controller there >is no quirk that matches... > >Is this a typical problem on the Areca controller? Or does this not work? The Marvell controller is recognized as a SATA controller, so the drives attached to it are treated as SATA drives, using the ATACAM stack: ada0: ATA-9 SATA 3.x device The drive in question is listed along with the SATA quirks: sys/cam/ata/ata_da.c :: ada_quirk_table[] { /* WDC Caviar Green Advanced Format (4k) drives */ { T_DIRECT, SIP_MEDIA_FIXED, "*", "WDC WD????RX*", "*" }, /*quirks*/ADA_Q_4K }, The Areca controller appears to be acting as a *SAS* controller, so the drives attached to it are treated as SAS drives, using the SCSICAM stack: da0: Fixed Direct Access SCSI-5 device While the SCSICAM stack knows about quirks for SCSI/SAS drives, it doesn't know anything about quirks for SATA drives. There may be an argument there to create a unified quirk list, but that's a larger discussion. -Ravi >Thanx, >--WjW > >Basic: >mvs0: port 0xb800-0xb8ff mem >0xfcd00000-0xfcdfffff irq 16 at device 0.0 on pci4 >mvs0: Gen-IIe, 4 3Gbps ports, Port Multiplier supported with FBS ioapic0: >routing intpin 16 (PCI IRQ 16) to lapic 0 vector 53 > >With disk: >ada0 at mvsch0 bus 0 scbus1 target 0 lun 0 >ada0: ATA-9 SATA 3.x device >ada0: Serial Number WD-WCC4E0918074 >ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) >ada0: Command Queueing enabled >ada0: 3815447MB (7814037168 512 byte sectors: 16H 63S/T 16383C) >ada0: quirks=3D0x1<4K> > >And: >arcmsr0: arcmsr version 1.20.00.28 2013-09-13> mem >0xfcbff000-0xfcbfffff,0xfb800000-0xfbbfffff irq 18 at device 14.0 on pci3 >Areca RAID adapter0: ARC-1220 F/W version V1.49 2010-12-02 > >With disk: >da0 at arcmsr0 bus 0 scbus0 target 0 lun 0 >da0: Fixed Direct Access SCSI-5 device >da0: Serial Number WD-WCC4E0959610 >da0: 250.000MB/s transfers (125.000MHz, offset 32, 16bit) >da0: Command Queueing enabled >da0: 3815447MB (7814037168 512 byte sectors: 255H 63S/T 486401C) >da0: Delete methods: