From owner-freebsd-scsi@FreeBSD.ORG Mon Dec 15 11:07:00 2008 Return-Path: Delivered-To: freebsd-scsi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 710A91065673 for ; Mon, 15 Dec 2008 11:07:00 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 63BC18FC08 for ; Mon, 15 Dec 2008 11:07:00 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mBFB70b9004469 for ; Mon, 15 Dec 2008 11:07:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mBFB6xAx004465 for freebsd-scsi@FreeBSD.org; Mon, 15 Dec 2008 11:06:59 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 15 Dec 2008 11:06:59 GMT Message-Id: <200812151106.mBFB6xAx004465@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-scsi@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-scsi@FreeBSD.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 11:07:00 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/128452 scsi [sa] [panic] Accessing SCSI tape drive randomly crashe o kern/128245 scsi [scsi] "inquiry data fails comparison at DV1 step" [re o kern/127927 scsi [isp] isp(4) target driver crashes kernel when set up o kern/126866 scsi [isp] [panic] kernel panic on card initialization o kern/124667 scsi [amd] [panic] FreeBSD-7 kernel page faults at amd-scsi o kern/123674 scsi [ahc] ahc driver dumping o kern/123666 scsi [aac] attach fails with Adaptec SAS RAID 3805 controll o sparc/121676 scsi [iscsi] iscontrol do not connect iscsi-target on sparc o kern/120487 scsi [sg] scsi_sg incompatible with scanners o kern/120247 scsi [mpt] FreeBSD 6.3 and LSI Logic 1030 = only 3.300MB/s o kern/119668 scsi [cam] [patch] certain errors are too verbose comparing o kern/114597 scsi [sym] System hangs at SCSI bus reset with dual HBAs o kern/110847 scsi [ahd] Tyan U320 onboard problem with more than 3 disks o kern/99954 scsi [ahc] reading from DVD failes on 6.x [regression] o kern/94838 scsi Kernel panic while mounting SD card with lock switch o o kern/92798 scsi [ahc] SCSI problem with timeouts o kern/90282 scsi [sym] SCSI bus resets cause loss of ch device o kern/76178 scsi [ahd] Problem with ahd and large SCSI Raid system o kern/74627 scsi [ahc] [hang] Adaptec 2940U2W Can't boot 5.3 s kern/61165 scsi [panic] kernel page fault after calling cam_send_ccb o kern/60641 scsi [sym] Sporadic SCSI bus resets with 53C810 under load o kern/60598 scsi wire down of scsi devices conflicts with config s kern/57398 scsi [mly] Current fails to install on mly(4) based RAID di o kern/52638 scsi [panic] SCSI U320 on SMP server won't run faster than o kern/44587 scsi dev/dpt/dpt.h is missing defines required for DPT_HAND o kern/40895 scsi wierd kernel / device driver bug o kern/39388 scsi ncr/sym drivers fail with 53c810 and more than 256MB m o kern/38828 scsi [dpt] [request] DPT PM2012B/90 doesn't work o kern/35234 scsi World access to /dev/pass? (for scanner) requires acce 29 problems total. From owner-freebsd-scsi@FreeBSD.ORG Wed Dec 17 22:36:06 2008 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 336CB1065674 for ; Wed, 17 Dec 2008 22:36:06 +0000 (UTC) (envelope-from ptyll@nitronet.pl) Received: from web.nitronet.pl (web.nitronet.pl [195.90.106.5]) by mx1.freebsd.org (Postfix) with ESMTP id E093D8FC17 for ; Wed, 17 Dec 2008 22:36:05 +0000 (UTC) (envelope-from ptyll@nitronet.pl) Received: from mailnull by web.nitronet.pl with virscan (Exim 4.69 (FreeBSD)) (envelope-from ) id 1LD4dA-0003CF-PS for freebsd-scsi@freebsd.org; Wed, 17 Dec 2008 23:12:36 +0100 Date: Wed, 17 Dec 2008 23:12:28 +0100 From: Pawel Tyll X-Priority: 3 (Normal) Message-ID: <1048137506.20081217231228@nitronet.pl> To: freebsd-scsi@freebsd.org, freebsd-geom@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Nitronet.pl X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: ptyll@nitronet.pl X-SA-Exim-Scanned: No (on web.nitronet.pl); SAEximRunCond expanded to false Cc: Subject: Adaptec 52445 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2008 22:36:06 -0000 Hello list, I'm having problems with Adaptec 52445 controller. System doesn't detect drives connected to the controller as disks (I expect something like da0?). There are pass devices in the system, and 'camcontrol inquiry 0:0' returns: < ST3750330AS SD15> Fixed unknown SCSI-5 device, but still there is no way to use the disk and GEOM doesn't detect it. Second problem surfaced when looking for a workaround for the first one. After detaching the drive from the controller, it properly vanishes from arcconf utility, however FreeBSD is still very sure that the drive is attached. Pass device is still present and camcontrol lists the device in devlist, however accessing this device via simple volume created on it with arcconf, which is still present in the system even when it's faulty, as all components of this "volume" are gone, causes controller to crash. Has anyone had similar experience with this controller and got around them somehow? I suppose I could use RAID6 from the controller itself, but I'm hoping to give ZFS a try. Above happens on 7.0-PRERELEASE, 7.1-RC and with newest firmware and driver for the controller (build 16343) Cheers! From owner-freebsd-scsi@FreeBSD.ORG Thu Dec 18 07:53:24 2008 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC9211065676; Thu, 18 Dec 2008 07:53:24 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forwards5.yandex.ru (forwards5.yandex.ru [77.88.61.37]) by mx1.freebsd.org (Postfix) with ESMTP id EDE9C8FC23; Thu, 18 Dec 2008 07:53:23 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp17.yandex.ru (smtp17.yandex.ru [77.88.61.55]) by forwards5.yandex.ru (Yandex) with ESMTP id 246EEB0414B; Thu, 18 Dec 2008 10:42:11 +0300 (MSK) Received: from ns.kirov.so-cdu.ru ([77.72.136.145]:18887 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S13287701AbYLRHmG (ORCPT + 2 others); Thu, 18 Dec 2008 10:42:06 +0300 X-Yandex-Spam: 1 X-Yandex-Front: smtp17 X-Yandex-TimeMark: 1229586126 X-BornDate: 1137963600 X-Yandex-Karma: 0 X-Yandex-KarmaStatus: 0 X-MsgDayCount: 3 X-Comment: RFC 2476 MSA function at smtp17.yandex.ru logged sender identity as: bu7cher Message-ID: <4949FECC.80706@yandex.ru> Date: Thu, 18 Dec 2008 10:42:04 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Pawel Tyll References: <1048137506.20081217231228@nitronet.pl> In-Reply-To: <1048137506.20081217231228@nitronet.pl> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org, freebsd-geom@freebsd.org Subject: Re: Adaptec 52445 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2008 07:53:24 -0000 Pawel Tyll wrote: > I'm having problems with Adaptec 52445 controller. > > System doesn't detect drives connected to the controller as disks (I > expect something like da0?). There are pass devices in the system, and > 'camcontrol inquiry 0:0' returns: < ST3750330AS SD15> Fixed unknown > SCSI-5 device, but still there is no way to use the disk and GEOM > doesn't detect it. IMHO, you should create a logical volumes in controller BIOS. After that system will detect their as aacdX disks. -- WBR, Andrey V. Elsukov From owner-freebsd-scsi@FreeBSD.ORG Fri Dec 19 07:02:10 2008 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 42B3E1065675; Fri, 19 Dec 2008 07:02:10 +0000 (UTC) (envelope-from yohimba@mail.ru) Received: from mx44.mail.ru (mx44.mail.ru [195.239.211.10]) by mx1.freebsd.org (Postfix) with ESMTP id B811A8FC1F; Fri, 19 Dec 2008 07:02:09 +0000 (UTC) (envelope-from yohimba@mail.ru) Received: from f217.mail.ru (f217.mail.ru [194.186.55.150]) by mx44.mail.ru (mPOP.Fallback_MX) with ESMTP id CD5FB38002535; Fri, 19 Dec 2008 09:51:59 +0300 (MSK) Received: from mail by f217.mail.ru with local id 1LDZDJ-000Gxg-00; Fri, 19 Dec 2008 09:51:57 +0300 Received: from [195.208.10.252] by win.mail.ru with HTTP; Fri, 19 Dec 2008 14:51:57 +0800 From: Vyacheslav I. To: freebsd-amd64@freebsd.org Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: [195.208.10.252] Date: Fri, 19 Dec 2008 14:51:57 +0800 X-Priority: 1 (High) Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: X-Spam: Not detected X-Mras: OK Cc: freebsd-scsi@freebsd.org, freebsd-stable@freebsd.org, msmith@freebsd.org, freebsd-hardware@freebsd.org Subject: Problem with FreeBSD for AMD64 & Mylex AcceleRAID X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Vyacheslav I." List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2008 07:02:10 -0000 Hi! I used to use the FreeBSD on i386 architecture together with the controller Mylex AcceleRAID 170.There was RAID 0+1 configured on it out of 5 discs (Enhanced Mirroring). # pciconf -lvc ... mly0@pci0:6:1:0: class=0x010400 card=0x00521069 chip=0x00501069 rev=0x02 hdr=0x00 vendor = 'Mylex Corp' device = 'AcceleRAID Disk Array' class = mass storage subclass = RAID cap 01[80] = powerspec 2 supports D0 D3 current D0 I used this configuration on i386 architecture with the following versions FreeBSD: 4.x, 5.x, 6.x and 7.0. It always worked perfectly. But recently I got needed 8 GB RAM so I had to install the version FreeBSD for AMD64. First I tried the 7.0, and after all - RELENG_7_1 dated 12.12.2008. Both these systems work with the files system located on RAID unstablÅ! Meanwhile the same hardware on i386 architecture works with RELENG_7_1 perfectly. Hardware: MB INTEL DG33FB, CPU Intel(R) Core(TM)2 Quad CPU @ 2.40 GHz, RAM 8 GB. The base system is installed on a separate IDE disc. # df -h Filesystem Size Used Avail Capacity Mounted on /dev/ad4s1a 496M 111M 345M 24% / devfs 1.0K 1.0K 0B 100% /dev /dev/ad4s1d 3.9G 22K 3.6G 0% /tmp /dev/ad4s1f 333G 52G 255G 17% /usr /dev/ad4s1e 15G 41M 14G 0% /var /dev/da0s1d 70.7G 410K 70.1G 0% /mnt/da0/d I carried out the following test by creating 3 big sized files of 1 GB each, and then deleting them: # cd /mnt/da0/d # dd if=/dev/zero of=test1 bs=1024k count=1024 # dd if=/dev/zero of=test2 bs=1024k count=1024 # dd if=/dev/zero of=test5 bs=1024k count=1024 # rm test* After that I tried to unmount the files system, but I get a message of the kernel panic: # cd / # umount /mnt/da0/d ... bad block 123456789, ino 176 dev = da0s1d, block = 4, fs = /mnt/da0/d panic: ffs_blkfree: freeing free block cpuid = 3 Uptime: 34 min... The test was successful when using the i386 architecture with the same hardware Taking a piece of advice of my friend, I used a dirty patch: === [code] === diff -Nru src.orig/sys/cam/scsi/scsi_da.c src/sys/cam/scsi/scsi_da.c --- src.orig/sys/cam/scsi/scsi_da.c 2008-12-10 10:01:40.000000000 +0800 +++ src/sys/cam/scsi/scsi_da.c 2008-12-19 12:18:27.000000000 +0800 @@ -1187,7 +1187,7 @@ if (match != NULL) softc->quirks = ((struct da_quirk_entry *)match)->quirks; else - softc->quirks = DA_Q_NONE; + softc->quirks = DA_Q_NO_SYNC_CACHE; // Dirty hack for AMD64 /* Check if the SIM does not want 6 byte commands */ xpt_setup_ccb(&cpi.ccb_h, periph->path, /*priority*/1); === [/code] === This patch solved the problem and the systems stopped being panicking. But I assume that this solution is wrong as the hardware works on i386 architecture without this patch well. From owner-freebsd-scsi@FreeBSD.ORG Fri Dec 19 11:00:05 2008 Return-Path: Delivered-To: scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F250E1065670; Fri, 19 Dec 2008 11:00:04 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id 87DF88FC1C; Fri, 19 Dec 2008 11:00:04 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id mBJAnQQb029757; Fri, 19 Dec 2008 03:49:27 -0700 Message-ID: <494B7C34.7050108@semihalf.com> Date: Fri, 19 Dec 2008 11:49:24 +0100 From: Rafal Jaworowski Organization: Semihalf MIME-Version: 1.0 To: scottl@freebsd.org Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit Cc: scsi@freebsd.org Subject: Better handling of TEST UNIT READY command X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2008 11:00:05 -0000 Hi Scott, Can you have a look at this patch: http://people.freebsd.org/~raj/patches/misc/sys-cam-cam_xpt.diff Greg was trying to discuss this on scsi@ already, but there wasn't much response, so your input would be appreciated. The description of the problem and fix is included in the patch, but if you'd have any questions let me know. Rafal From owner-freebsd-scsi@FreeBSD.ORG Fri Dec 19 15:21:59 2008 Return-Path: Delivered-To: scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 806511065673 for ; Fri, 19 Dec 2008 15:21:59 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id 3B97F8FC12 for ; Fri, 19 Dec 2008 15:21:59 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.local ([192.168.254.200]) (authenticated bits=0) by pooker.samsco.org (8.14.2/8.14.2) with ESMTP id mBJFB8TK086209; Fri, 19 Dec 2008 08:11:08 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <494BB98C.3030404@samsco.org> Date: Fri, 19 Dec 2008 08:11:08 -0700 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9 MIME-Version: 1.0 To: Rafal Jaworowski References: <494B7C34.7050108@semihalf.com> In-Reply-To: <494B7C34.7050108@semihalf.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=3.8 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pooker.samsco.org Cc: scsi@freebsd.org Subject: Re: Better handling of TEST UNIT READY command X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2008 15:21:59 -0000 Rafal Jaworowski wrote: > Hi Scott, > Can you have a look at this patch: > http://people.freebsd.org/~raj/patches/misc/sys-cam-cam_xpt.diff > > Greg was trying to discuss this on scsi@ already, but there wasn't much > response, so your input would be appreciated. > > The description of the problem and fix is included in the patch, but if you'd > have any questions let me know. > > Rafal Hi, Sorry I missed the original posting on the scsi list. I'm curious what ASC/ASCQ codes are being returned by the device. This patch is good enough for now, please go ahead and commit it, but I'd like to see what the actual errors are so we can see if there's a more elegant way to handle it. Scott