From owner-freebsd-scsi@FreeBSD.ORG Tue May 4 19:42:20 2004 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03CD116A4CE; Tue, 4 May 2004 19:42:20 -0700 (PDT) Received: from mail.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE24643D45; Tue, 4 May 2004 19:42:18 -0700 (PDT) (envelope-from don@sandvine.com) Received: by mail.sandvine.com with Internet Mail Service (5.5.2657.72) id ; Tue, 4 May 2004 22:42:18 -0400 Message-ID: From: Don Bowman To: 'Scott Long' , "'freebsd-scsi@freebsd.org'" Date: Tue, 4 May 2004 22:42:16 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" Subject: RE: [PATCH] ASR driver update X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 May 2004 02:42:20 -0000 From: Scott Long [mailto:scottl@freebsd.org] > Don Bowman wrote: > > > From: Scott Long [mailto:scottl@freebsd.org] > > > >>Don Bowman wrote: > >> > >> > >>>From: Scott Long [mailto:scottl@freebsd.org] > >>> > >>> > >>>>Sent: May 4, 2004 10:24 AM > >>>>To: Don Bowman > >>>>Cc: freebsd-scsi@freebsd.org > >>>>Subject: Re: [PATCH] ASR driver update > >>>> > >>>> > >>>>Thanks for the report. This is fixed in rev 1.58 of > asr.c. I'm not > >>>>sure why I didn't see this before. Btw, do you by chance have a > >>>>2005/2015 SO-DIMM form-factor card? I'm having trouble > >> > >>with mine and > >> > >>>>can't figure out if it's because the card is from a very early > >>>>pre-production sample. > >>>> > >>> > >>> > >>>The test I did was on the 2010s, PCI form-factor. > >>>I do have 4 systems with the so-dimm 2015 card, but they're > >>>a little harder for me to get @. > >>> > >>>--don > >> > >>Ok. I'm curious if the 2010 and 2015 look similar. My > understanding > >>is that they should look identical to the driver, but the > >>2005 card that > >>I have is defying my expectations (and is crashing because > of it, even > >>with the unmodified driver). If you could a) test the 2010 with rev > >>1.58 + my bus_space patch, and b) send me the pciconf info > >>for both the > >>2010 and 2015, I'd greatly appreciate it. > > > > > > Well, the 2nd is easier than the first. > > > > asr0@pci3:3:0: class=0x010400 card=0xc0321044 > chip=0xa5111044 rev=0x01 > > hdr=0x00 > > vendor = 'Adaptec (Formerly: Distributed Processing > Technology (DPT))' > > device = 'Raptor SmartRAID Controller' > > class = mass storage > > subclass = RAID > > > > is the output of pciconf -lv for the 2015 card [SO-DIMM] > > > > asr0@pci6:1:0: class=0x010400 card=0xc0351044 > chip=0xa5111044 rev=0x01 > > hdr=0x00 > > vendor = 'Adaptec (Formerly: Distributed Processing > Technology (DPT))' > > device = 'Raptor SmartRAID Controller' > > class = mass storage > > subclass = RAID > > > > is the output for the 2010 card [PCI form factor] > > > > on the 2015, i won't be able to try the code for a while, > > the system i have access to runs 4.9, the other ones have > > been scoffed up and now run windows :) > > > > on the 2010, i'll give the 1.58 rev a try with your patches. > > > > --don > > Ok, your 2015 behaves like I would expect. Testing the 2010 > will cover > the 2015 case too. Thanks! OK, the system with the 2010 boots now. It has 1TB of disk space, 4GB of ram, and is running a bunch of postgresql databases. One thing... I had 'link rasr0 rdpti0' in /etc/devfs.conf so that the asr raidutils would work. With your changes, this no longer works. I no longer have an 'rasr0', but instead a 'asr0'. If i link this to 'rdpti0', then raidutil works again. I've done a bunch of dd to and from disk with success, and the postgres' seem to be ok. The performance is nothing to write home about, about 22MB/s on write (to filesystem from /dev/zero), and only about 10MB/s on read (from /dev/da0 to /dev/null). I don't know how to tell if i'm getting errors or anything with this driver. I'm not sure what i had before this change, i'll try and re-run the test. I have # Controller Cache FW NVRAM BIOS SMOR Serial --------------------------------------------------------------------------- d0 ADAP2010S 32MB 3B05 CHNL 1.1 1.62 1.12/79I BD0E40303FA smartmontools reports: # smartctl -a /dev/da0 smartctl version 5.26 Copyright (C) 2002-3 Bruce Allen Home page is http://smartmontools.sourceforge.net/ Device: ADAPTEC RAID-5 Version: 3B05 Device type: disk Transport protocol: Parallel SCSI (SPI-4) Local Time is: Tue May 4 22:34:47 2004 EDT Device supports SMART and is Enabled Temperature Warning Enabled SMART Health Status: OK Current Drive Temperature: 30 C Drive Trip Temperature: 68 C Vendor (Seagate) cache information Blocks sent to initiator = 2301546143 Blocks received from initiator = 2378126595 Blocks read from cache and sent to initiator = 1019731912 Number of read and write commands whose size <= segment size = 92502246 Number of read and write commands whose size > segment size = 56627 Vendor (Seagate) factory information number of hours powered up = 817.93 number of minutes until next internal SMART test = 78 Error counter log: Errors Corrected Total Total Correction Gigabytes Total delay: [rereads/ errors algorithm processed uncorrected minor | major rewrites] corrected invocations [10^9 bytes] errors read: 185234 0 0 185234 185234 4130.420 0 write: 0 0 0 0 0 710.700 0 Non-medium error count: 1252 [GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on'] SMART Self-test log Num Test Status segment LifeTime LBA_first_err [SK ASC ASQ] Description number (hours) # 1 Background short Completed - 2 - [- - -] # 2 Background short Completed - 2 - [- - -] Long (extended) Self Test duration: 3072 seconds [51.2 minutes] I tried 'raidutil -e soft -d0' as the raidutil man page suggests, but it says 'Must specify an address for this command: -e soft '