From owner-freebsd-hardware@FreeBSD.ORG Tue Mar 11 16:10:25 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 5BA36C7A for ; Tue, 11 Mar 2014 16:10:25 +0000 (UTC) Received: from smtp.digiware.nl (smtp.digiware.nl [31.223.170.169]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1AFF598E for ; Tue, 11 Mar 2014 16:10:25 +0000 (UTC) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id BB2BD153A8A; Tue, 11 Mar 2014 17:10:16 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BoMONLxWPRkl; Tue, 11 Mar 2014 17:09:24 +0100 (CET) Received: from [192.168.101.198] (vpn.ecoracks.nl [31.223.170.173]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 3E2FC153A74; Tue, 11 Mar 2014 17:09:24 +0100 (CET) Message-ID: <531F3533.7000407@digiware.nl> Date: Tue, 11 Mar 2014 17:09:23 +0100 From: Willem Jan Withagen User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: "Pokala, Ravi" , "hardware@freebsd.org" Subject: Re: Differences between disk controllers References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 16:10:25 -0000 On 11-3-2014 16:34, Pokala, Ravi wrote: > > >> 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=ISO-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. That is probably is correct summation of my question... I more or less expected things not to be different in such extend. --WjW